# configure token persistence and exchange point between flask-oauthlib and xero-python xero. ) # type: OAuth2Application # configure xero-python sdk client api_client = ApiClient(Ĭlient_id = app. Scope = "offline_access openid profile email ansactions " " " " ttings " "ntacts accounting.attachments " " assets projects " "files " "payroll.employees payroll.payruns payroll.payslip payroll.timesheets ttings", # configure flask-oauthlib application oauth = OAuth( app)Ĭlient_secret = app. environ = "1" # configure persistent session cache Session( app) # allow oauth2 loop to run over http (used for local testing only) os. # configure main flask application app = Flask( _name_)Īpp. utils import getvalue import logging_settings from utils import jsonify, serialize_model dictConfig( logging_settings. identity import IdentityApi from xero_python. exceptions import AccountingBadRequestException, PayrollUkBadRequestException from xero_python. oauth2 import OAuth2Token from xero_python. configuration import Configuration from xero_python. api_client import ApiClient, serialize from xero_python. payrollnz import PayrollNzApi from xero_python. payrolluk import PayrollUkApi from xero_python. payrollau import PayrollAuApi from xero_python. project import ProjectApi from xero_python. accounting import AccountingApi from xero_python. client import OAuth, OAuth2Application from flask_session import Session from xero_python. config import dictConfig from flask import Flask, session from flask_oauthlib. # -*- coding: utf-8 -*- import os from functools import wraps from io import BytesIO from logging.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |