Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > SDKs >

Python API and working with JSON

Started by Bellave Jayaram -   in SDKs

Hi folks,

I came across a similar question to mine here https://community.xero.com/developer/discussion/38473513/

Does anyone have pointers/advise for me on the best way to convert the response from an API call such as:

api_response = payroll_api.get_pay_items(tenantid, if_modified_since, where, order, 1)

into JSON or maybe even a flattened Pandas dataframe? I think working with these formats would make for better code.

Thanks in advance,
Jayaram