A netstandard2.0
library for calling the SaltEdge Global Data Aggregation API.
dotnet test
dotnet build
dotnet add <PROJECT> package Spectre.Client
The client uses Refit, so initialize the client by:
var client = RestService.For<ISaltEdgeClient>("https://www.saltedge.com/api/v5/");
If you're using ASP.NET, you might want to add it as a service in ConfigureServices
:
services.AddScoped(_ => RestService.For<ISaltEdgeClient>(
new HttpClient(
new SaltEdgeHttpClientHandler(
Configuration["SaltEdge:AppId"],
Configuration["SaltEdge:Secret"])
)
{
BaseAddress = new Uri("https://www.saltedge.com/api/v5/"),
}));
- Create a customer:
ISaltEdgeClient.CreateCustomer
- Request a connect session:
ISaltEdgeClient.CreateConnectSession
- Fetch customer connections:
ISaltEdgeClient.GetConnections
- Fetch connection accounts:
ISaltEdgeClient.GetAccounts
- Fetch transactions:
ISaltEdgeClient.GetTransactions
Licenced under an MIT licence. Maintainer: Jānis Kiršteins @jkirsteins
Copyright © 2019 Jānis Kiršteins