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泛型重写抽象方法并具有子类的返回类型   Java中的字符串反转字符,同时保留一些字符   java将系统时间与我获取它的时间进行比较   java解析ODATA URL以在准备entityset之前读取ID值   java中的有界通配符下界泛型即使在传递超类时也不会编译   c#Java的JVM和Java的内部工作方式有什么不同。NET的CLR?   java如何在windows7上指定JDK的版本?   Java:列出单个目录中的所有文件(1020000+)   java使用Logback和Lombok   安卓谷歌玩java。lang.NullPointerException   使用RSA的解密结果在普通Java和Android中有所不同   具有默认连接池的java Spring引导   java我如何在一个坏的测试环境中前进?