An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# Spectre.Client

[![Build Status](https://dev.azure.com/jkirsteins/Spectre.Client/_apis/build/status/kirsis.Spectre.Client?branchName=master)](https://dev.azure.com/jkirsteins/Spectre.Client/_build/latest?definitionId=1&branchName=master) [![Nuget](https://img.shields.io/nuget/v/Spectre.Client?color=blue&style=flat)](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