pyxero
pyxero copied to clipboard
Python API for accessing the REST API of the Xero accounting tool.
How can I prevent duplicate requests? Most APIs support idempotency keys - does Xero support this? Can't find any reference on that
I've finally gotten around to cleaning this up and adding some documentation, tests etc. Fixes: #316
When attaching files, xero may expect to receive the Content-Type of the file being attached. However the wrapper always overwrites it to "application/xml". In practice, this has not real impact...
For issue #318
I have added: - xero/report_wrapper.py, which contains the class to wrap and clean up the returned value of the reports calls - examples/xero_report_sample.ipynb, an iPython notebook which demonstrates the wrapper...
The new argument should enable Xero API methods utilizing Resource ID URI parameter in POST requests. Such as deletion of payments and bank transactions: https://developer.xero.com/documentation/api/payments#POST https://developer.xero.com/documentation/api/banktransactions#POST
Found that this was blowing up because the Xero API returns JSON here, not XML. Fixed to parse the JSON instead.
``` Traceback (most recent call last): File "payroll.py", line 11, in print xero.payrollAPI.payruns.filter(raw='PayRunStatus = POSTED') File "/usr/local/lib/python2.7/site-packages/xero/basemanager.py", line 195, in wrapper raise XeroBadRequest(response) File "/usr/local/lib/python2.7/site-packages/xero/exceptions.py", line 33, in __init__ self.errors...
I've written a PoC PKCE implementation. This works with my small use case, but is there any demand to get this tidied up and integrated into the rest of the...