https://github.com/jkirsteins/spectre.client
SaltEdge Spectre API Client
https://github.com/jkirsteins/spectre.client
Last synced: about 1 month ago
JSON representation
SaltEdge Spectre API Client
- Host: GitHub
- URL: https://github.com/jkirsteins/spectre.client
- Owner: jkirsteins
- License: mit
- Created: 2019-11-14T11:57:16.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-11-08T15:21:25.000Z (6 months ago)
- Last Synced: 2025-04-09T20:58:10.467Z (about 1 month ago)
- Language: C#
- Size: 40 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Spectre.Client
[](https://dev.azure.com/jkirsteins/Spectre.Client/_build/latest?definitionId=1&branchName=master) [](https://www.nuget.org/packages/Spectre.Client/)
A `netstandard2.0` library for calling the SaltEdge Global Data Aggregation API.
## Testing and Building
dotnet test
dotnet build## Installation
dotnet add package Spectre.Client
## Getting Started
The client uses [Refit](https://github.com/reactiveui/refit), so initialize the client by:
```csharp
var client = RestService.For("https://www.saltedge.com/api/v5/");
```If you're using ASP.NET, you might want to add it as a service in `ConfigureServices`:
```csharp
services.AddScoped(_ => RestService.For(
new HttpClient(
new SaltEdgeHttpClientHandler(
Configuration["SaltEdge:AppId"],
Configuration["SaltEdge:Secret"])
)
{
BaseAddress = new Uri("https://www.saltedge.com/api/v5/"),
}));
```## Implemented functionality
- 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](https://twitter.com/jkirsteins)
Copyright © 2019 Jānis Kiršteins