How to convert the Laravel Passport rest API package authorization access token response in XML format.
Laravel Version: 5.4 Laravel/Passport version: 4.0.3
e.g. Suppose when calling the API url https://ift.tt/2Q7ZIrL using the postman getting response in JSON format like
{
"token_type": "Bearer",
"expires_in": 31536000,
"access_token": "xxxxxxxxxxxxxxxxxxxxxxxx",
"refresh_token": "xxxxxxxxxxxxxxxxxxxxxxxx"
}
I want to change this output response in XML format like
<?xml version="1.0" encoding="UTF-8"?>
<root>
<access_token>xxxxxxxxxxxxxxxxxxxxxxxx</access_token>
<expires_in>31536000</expires_in>
<refresh_token>xxxxxxxxxxxxxxxxxxxxxxxx</refresh_token>
<token_type>Bearer</token_type>
</root>
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire