Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 463 Bytes

README.md

File metadata and controls

12 lines (9 loc) · 463 Bytes

This is a public repository don't put secrets or confidential information in here.

In order to run example.py use poetry run uvicorn xero-api.example:app --reload

Example code

import asyncio

client = XeroClient(ID, SECRET, scopes)
s = asyncio.run(await client.authenticate()) # asyncio.run() only required for the example. If using an async event loop already
e.g fastapi then it's not needed.
accounting_client = AccountingAPI(client)