YNAB API终结点

ynab-sdk的Python项目详细描述


ynab sdk python

PyPI versionMaintainabilitycodecov

YNAB API的Python实现(https://api.youneedabudget.com/

警告

这几乎是一个正在进行的工作,基本的东西是工作,但没有任何保证。 请参见下面实施的内容和未实施的内容

安装

使用包管理器pip安装ynab-sdk-python

pip install ynab-sdk

用法

fromynab_sdkimportYNABynab=YNAB('some-key')print(ynab.budgets.get_budgets())

端点

请参阅下面实现的内容(尚未完全更新)

EndpointVerbDescriptionWorkingObs
/userGETReturns authenticated user informationNO
/budgetsGETReturns budgets list with summary informationYES
/budgets/{budget_id}GETReturns a single budget with all related entities. This resource is effectively a full budget export.YES
/budgets/{budget_id}/settingsGETReturns settings for a budgetYES
/budgets/{budget_id}/accountsGETReturns all accountsYES
/budgets/{budget_id}/accounts/{account_id}GETReturns a single accountYES
/budgets/{budget_id}/categoriesGETReturns all categories grouped by category group. Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC).
/budgets/{budget_id}/categories/{category_id}GETReturns a single category. Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC).
/budgets/{budget_id}/months/{month}/categories/{category_id}GETReturns a single category for a specific budget month. Amounts (budgeted, activity, balance, etc.) are specific to the current budget month (UTC).
/budgets/{budget_id}/months/{month}/categories/{category_id}PATCHUpdate a category for a specific month
/budgets/{budget_id}/payeesGETReturns all payeesYES
/budgets/{budget_id}/payees/{payee_id}GETReturns single payeeYES
/budgets/{budget_id}/payee_locationsGETReturns all payee locationsNO
/budgets/{budget_id}/payee_locations/{payee_location_id}GETReturns a single payee locationNO
/budgets/{budget_id}/payees/{payee_id}/payee_locationsGETReturns all payee locations for the specified payeeNO
/budgets/{budget_id}/monthsGETReturns all budget monthsNO
/budgets/{budget_id}/months/{month}GETReturns a single budget monthNO
/budgets/{budget_id}/transactionsGETReturns budget transactionsYES
/budgets/{budget_id}/transactionsPOSTCreates a single transaction or multiple transactions. If you provide a body containing a 'transaction' object, a single transaction will be created and if you provide a body containing a 'transactions' array, multiple transactions will be created.YES
/budgets/{budget_id}/transactionsPATCHUpdates multiple transactions, by 'id' or 'import_id'.NO
/budgets/{budget_id}/transactions/{transaction_id}GETReturns a single transactionYES
/budgets/{budget_id}/transactions/{transaction_id}PUTUpdates a transactionNO
/budgets/{budget_id}/transactions/bulkPOSTCreates multiple transactions. Although this endpoint is still supported, it is recommended to use 'POST /budgets/{budget_id}/transactions' to create multiple transactions.NO
/budgets/{budget_id}/accounts/{account_id}/transactionsGETReturns all transactions for a specified accountNO
/budgets/{budget_id}/categories/{category_id}/transactionsGETReturns all transactions for a specified categoryNO
/budgets/{budget_id}/payees/{payee_id}/transactionsGETReturns all transactions for a specified payeeNO
/budgets/{budget_id}/scheduled_transactionsGETReturns all scheduled transactionsNO
/budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id}GETReturns a single scheduled transactionNO

贡献

欢迎拉取请求。对于重大变更,请先打开一个问题来讨论您希望更改的内容。

请确保根据需要更新测试。

许可证

Apache License 2.0

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java关闭应用程序按钮Listener   Java中的多线程同步在Java示例中的思考   java如何查看Tomcat正在使用/访问的JAR?   java My代码在调用垃圾收集器后不会终止   多线程Java连接线程池和connectionfactory?   java在运行时修改JAR文件   java Android:使用光标时引发IllegaleException   在Netbeans中测试不可执行库的java?   泛型在参数上强制子类Java类型   spring Java:继承与依赖注入“自动连线”   javascript如何解析这个xml元素   java打印特定序列中的数组   带有ProcessingTimeSessionWindow的java Apache Flink自定义触发器   java如何配置消息驱动的Bean应用程序和Glassfish来使用来自远程MessageBroker的消息?