HUp.NET
1.5.0
dotnet add package HUp.NET --version 1.5.0
NuGet\Install-Package HUp.NET -Version 1.5.0
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="HUp.NET" Version="1.5.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HUp.NET" Version="1.5.0" />
<PackageReference Include="HUp.NET" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add HUp.NET --version 1.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: HUp.NET, 1.5.0"
#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.
#:package HUp.NET@1.5.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=HUp.NET&version=1.5.0
#tool nuget:?package=HUp.NET&version=1.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
<div align="center">
Up.NET
<img alt="Up API" src="https://github.com/up-banking/api/raw/master/assets/up-api.jpg" />
.NET API wrapper for Up Bank
</div>
Installation
dotnet add package HUp.NET
Quick Start
using Up.NET.Api;
var upApi = new UpApi("your-personal-access-token");
// Verify your token
var ping = await upApi.GetPingAsync();
Console.WriteLine($"Authenticated as: {ping.Data.Meta.Id}");
// List accounts
var accounts = await upApi.GetAccountsAsync();
foreach (var account in accounts.Data.Data)
{
Console.WriteLine($"{account.Attributes.DisplayName}: {account.Attributes.Balance.Value}");
}
// Get recent transactions
var transactions = await upApi.GetTransactionsAsync(pageSize: 10);
foreach (var tx in transactions.Data.Data)
{
Console.WriteLine($"{tx.Attributes.Description}: {tx.Attributes.Amount.Value}");
}
API Coverage
Full coverage of the Up API (v1).
| Endpoint | Method |
|---|---|
| Accounts | GetAccountsAsync(), GetAccountAsync(id) |
| Transactions | GetTransactionsAsync(), GetTransactionAsync(id), GetTransactionsAsync(accountId) |
| Categories | GetCategoriesAsync(), GetCategoryAsync(id), CategorizeTransactionAsync() |
| Tags | GetTagsAsync(), AddTagsToTransactionAsync(), RemoveTagsFromTransactionAsync() |
| Attachments | GetAttachmentsAsync(), GetAttachmentAsync(id) |
| Webhooks | GetWebhooksAsync(), GetWebhookAsync(id), CreateWebhookAsync(), DeleteWebhookAsync(), PingWebhookAsync(), GetWebhookLogsAsync() |
| Utility | GetPingAsync() |
Pagination
All paginated responses include a GetNextPageAsync() helper:
var transactions = await upApi.GetTransactionsAsync(pageSize: 50);
while (transactions.Data?.Links?.Next != null)
{
// Process current page
foreach (var tx in transactions.Data.Data)
{
Console.WriteLine(tx.Attributes.Description);
}
// Fetch next page
transactions = await transactions.Data.GetNextPageAsync(upApi);
}
Filtering
// Filter accounts by type
var savers = await upApi.GetAccountsAsync(accountType: AccountType.Saver);
// Filter transactions by date range and status
var settled = await upApi.GetTransactionsAsync(
status: TransactionStatus.Settled,
since: DateTime.Now.AddDays(-30),
until: DateTime.Now
);
// Filter by category or tag
var groceries = await upApi.GetTransactionsAsync(category: "groceries");
var tagged = await upApi.GetTransactionsAsync(tag: "holiday");
Getting Your API Token
- Download the Up app and create an account
- Get your Personal Access Token at https://api.up.com.au
Links
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.