Skip to content

Repository files navigation

Nuget BadgeBuild Status

Amphora Data DotNet SDK

A dotnet SDK for the Amphora platform.

Installation

AmphoraData.Client is a Net Standard 2.0 compatible library.

dotnet add package AmphoraData.Client

Usage

Authenticate with your username and password

varauthClient=newAuthenticationClient(httpClient);// choose your own HTTP clientvaruser=newLoginRequest{Username="YOUR USERNAME",Password="YOUR PASSWORD"};vartoken=awaitauthClient.RequestTokenAsync(user);httpClient.DefaultRequestHeaders.Authorization=newAuthenticationHeaderValue("Bearer",token);

Open API

The code in /client was produced via NSwag. View the OpenAPI document here

How to generate the client

Simply run ./generate.sh to generate the client. The generated code will be in /client/AmphoraClient.cs

Update the version in client.csproj before publishing a nuget package.

Sample

Check out the sample here.

About

A dotnet SDK for Amphora Data.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages