You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SDK you're using (please complete the following information):
xeroapi/xero-php-oauth2 sdk version 1.6.2
Php version 5.6
Is your feature request related to a problem? Please describe.
When we send request into XERO API server using the XERO OAuth2.0 SDK to access Reports like -> Trial Balance, Profit and Loss and Balance Sheet. Our application needed the response for the Report request in XML format.
Does XeroAPI/xero-php-oauth2 support XML response? If “YES”, could you please suggest how would we include the “Accept” header parameter to “XML” during request using OAuth2.0 SDK.
Describe the solution you'd like
We needed XERO API to return XML response when "accept header" is set to XML using OAuth2.0 SDK.
Describe alternatives you've considered
We tried using PHP cURL instead to get XML response but could not get the token response in the first place. This issue is similar to the issue raised here
Could you please suggest a solution.
Thank you.
The text was updated successfully, but these errors were encountered:
xero-php-oauth2 only support JSON requests/responses. But you can use the league oauth2 client we bundle with our sdk to construct your own API call and parse the xml response.
SDK you're using (please complete the following information):
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Describe alternatives you've considered
Could you please suggest a solution.
Thank you.
The text was updated successfully, but these errors were encountered: