用于访问Sage Intacct api的Python SDK
sageintacctsdk的Python项目详细描述
Sage Intacct SDK
访问Sage Intacct web服务的pythonsdk
安装
此项目需要Python 3+和{a2}库(pip安装请求)。在
- 在
下载并使用此项目(复制到您的项目中,等等)。在
在 - 在
从pip安装它。在
在$ pip install sageintacctsdk
使用
要使用此SDK,您需要以下用于身份验证的Sage Intacct凭据:sender ID,sender password,user ID,company ID和user password。在
这个SDK非常容易使用。在
- 首先,您需要使用主类sagintacctsdk创建一个连接。在
- 之后,您就可以访问13个API类中的任何一个:账户、附件、账单、收费卡账户、收费卡交易、联系人、部门、员工、费用报告、费用类型、地点、项目、供应商。在
"""USAGE: <SageIntacctSDK INSTANCE>.<API_NAME>.<API_METHOD>(<PARAMETERS>)"""# Create a new Expense Report of 3800 USD, spent at 2019-28-11 and from employee with employee id E101data={'employeeid':'E101','datecreated':{'year':2019,'month':11,'day':28},'state':'Approved','description':'Team lunch','expenses':{'expense':[{'expensetype':'Food','amount':3800,'expensedate':{'year':2019,'month':11,'day':28}}]}}response=connection.employees.post(data)# Use get_all methods to get all objects of certain typesresponse=connection.accounts.get_all()# Get details of Employee with EMPLOYEEID E101response=connection.employees.get(field='EMPLOYEEID',value='E101')
在该项目的wiki页面中查看有关用法的更多详细信息。在
许可证
这个项目是在MIT许可下授权的-请参阅LICENSE文件了解详细信息
- 项目
标签: