Skip to content

A .NET client for the YNAB REST API, using the Refit REST library.

License

Notifications You must be signed in to change notification settings

jsmarble/YNAB.Rest

Repository files navigation

YNAB.Rest Contributor Covenant

YNAB.Rest

A cross-platform .NET client for the YNAB REST API, using the Refit REST library. All REST methods are asynchronous and awaitable.

See the source on GitHub.

Getting Started

  1. Install the Nuget package or compile the code.
  2. Import the namespace YNAB.Rest.
  3. Create an IApiClient by calling ApiClientFactory.Create([accessToken]).
  4. Start coding!

Example Code

string accessToken = "secret_api_access_token";
var api = ApiClientFactory.Create(accessToken);
var budgetsResponse = await api.GetBudgets();
var budgets = budgetsResponse.Data.Budgets;

Response Objects

All methods return a response object that has a Data property containing the data from the REST API call. In this example, the response object contains a Data property that has a Budgets property with a list of Budgets.

This structure follows the convention of the YNAB REST API.

Project Status

This is a new project. There are plenty of opportunities for improvement.

What Works

GET Budgets, Accounts, Categories, Transactions, Payees, Payee Locations POST/PUT Transactions

What Needs To Be Done

GET Months, Scheduled Transactions

License

This code is licensed under the MIT License. Use of this code requires consent to the terms of the license.

About

A .NET client for the YNAB REST API, using the Refit REST library.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages