Monzo.Framework
0.0.1-alpha
This is a prerelease version of Monzo.Framework.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Monzo.Framework --version 0.0.1-alpha
NuGet\Install-Package Monzo.Framework -Version 0.0.1-alpha
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Monzo.Framework" Version="0.0.1-alpha" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Monzo.Framework --version 0.0.1-alpha
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Monzo.Framework, 0.0.1-alpha"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Monzo.Framework as a Cake Addin
#addin nuget:?package=Monzo.Framework&version=0.0.1-alpha&prerelease
// Install Monzo.Framework as a Cake Tool
#tool nuget:?package=Monzo.Framework&version=0.0.1-alpha&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Monzo.Framework 🚀
Library to access the Monzo API via .NET
Setup
- TODO:
nuget install - Set up Environment variable:
export MONZO="<ACCESS_TOKEN>"
You can get your access token here if you have a Monzo Account.
Usage
All services in this library make use of the MonzoConfiguration
object. Each endpoint is also awaitable
.
Accounts
// Create configuration object.
var configuration = new MonzoConfiguration();
// Create Account service and pass config.
var accountService = new AccountService(configuration);
// Get Accounts (awaitable)
var accounts = await accountService.GetAccountsAsync();
Balance
// Create configuration object.
var configuration = new MonzoConfiguration();
// Retrieve Accounts and select one.
var accountService = new AccountService(configuration);
var accounts = await accountService.GetAccountsAsync();
var account = accounts.Result.AccountCollection.First();
// Create Balance service and retrieve.
var balanceservice = new BalanceService(configuration);
var balance = await balanceservice.GetBalanceAsync(account);
Transactions
Transactions have multiple configurations. Each function can expand merchant information. You can currently retrieve:
- Single Transaction
- Multiple Transactions
- Multiple Transactions in a particular date period
// Retrieve Accounts and select one.
var accountService = new AccountService(configuration);
var accounts = await accountService.GetAccountsAsync();
var account = accounts.Result.AccountCollection.First();
// Construct transaction service.
var transactionService = new TransactionService(configuration);
// Get Transactions for an account.
var transactions = await transactionService.GetTransactionsAsync(account, false);
// Get all transactions for an account.
var transactions = await transactionService.GetTransactionAsync("transaction_id", false);
// Get all transactions between 05/01/18 and 10/01/18 for an account.
var transactions = await transactionService.GetTransactionsByDateAsync(
account,
new DateTime(2018, 01, 05),
new DateTime(2018, 01, 10), false);
Pots
var potservice = new PotService(configuration);
var pots = potservice.GetPotsAsync()
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net47 is compatible. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
- log4net (>= 2.0.8)
- Newtonsoft.Json (>= 10.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.0.7 | 1,048 | 2/10/2018 |
0.0.7-alpha | 793 | 2/10/2018 |
0.0.6-alpha | 768 | 2/10/2018 |
0.0.5 | 897 | 2/10/2018 |
0.0.5-alpha | 749 | 2/9/2018 |
0.0.4 | 916 | 2/5/2018 |
0.0.4-alpha | 755 | 2/5/2018 |
0.0.3 | 1,065 | 2/4/2018 |
0.0.3-alpha | 759 | 2/4/2018 |
0.0.2 | 927 | 2/4/2018 |
0.0.2-alpha | 814 | 2/4/2018 |
0.0.1-alpha | 792 | 2/4/2018 |