diff --git a/app.py b/app.py index 9a51c904..5c2e758f 100644 --- a/app.py +++ b/app.py @@ -38,8 +38,8 @@ xero = oauth.remote_app( name="xero", version="2", - client_id=app.config["CLIENT_ID"], - client_secret=app.config["CLIENT_SECRET"], + client_id=app.config"A17354F603E64AC79E51355CC1521FD9", + client_secret=app.config"DENHcFJW3HHpVHyLUIrlIeeJWJs6peBAai0OfZT3_lIet1x6", endpoint_url="https://api.xero.com/", authorization_url="https://login.xero.com/identity/connect/authorize", access_token_url="https://identity.xero.com/connect/token", @@ -211,7 +211,8 @@ def get_invoices(): accounting_api = AccountingApi(api_client) invoices = accounting_api.get_invoices( - xero_tenant_id, statuses=["DRAFT", "SUBMITTED"] + xero_tenant_id, statuses=["DRAFT", "AUTHORISED"] + type="ACCREC" ) code = serialize_model(invoices) sub_title = "Total invoices found: {}".format(len(invoices.invoices))