A dotnet SDK for the Amphora platform.
AmphoraData.Client is a Net Standard 2.0 compatible library.
dotnet add package AmphoraData.Client
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);The code in /client was produced via NSwag. View the OpenAPI document here
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.
Check out the sample here.