Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > Wrapper libraries >

How can I send JSON in POST request Xero API PHP

Started by Wasimamjad Wasimamjad -   in Wrapper libraries


I am using this library for xero projects api https://github.com/XeroAPI/XeroOAuth-PHP.
This library is fine for me for GET request.
The issue is Xero Projects API support only json for POST request. But this wrapper does not support json as request.
XML: request data (for PUT and POST operations)

I also checked this wrapper https://github.com/calcinai/xero-php
The problem is this wrapper has not implementation for Xero Projects API.

Can you please help me ASAP.