AmperApiClient.NET
1.1.18
.NET 5.0
Install-Package AmperApiClient.NET -Version 1.1.18
dotnet add package AmperApiClient.NET --version 1.1.18
<PackageReference Include="AmperApiClient.NET" Version="1.1.18" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AmperApiClient.NET --version 1.1.18
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AmperApiClient.NET, 1.1.18"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install AmperApiClient.NET as a Cake Addin
#addin nuget:?package=AmperApiClient.NET&version=1.1.18
// Install AmperApiClient.NET as a Cake Tool
#tool nuget:?package=AmperApiClient.NET&version=1.1.18
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
AmperApiClient.NET
Nuget Package for communicating with Amplifier API.
Requirements
.net core version 5
Install
You can add this package to your project by using:
Package Manager Console in Visual Studio
Install-Package AmperApiClient.NET
.NET CLI
dotnet add package AmperApiClient.NET
add it directly to your .csproj file
<ItemGroup> <PackageReference Include="AmperApiClient.NET" Version="1.1.15" /> </ItemGroup>
Getting Started
Example Project
using Amplifier;
You need to configure Sentry before any usage. First add package
dotnet add package Sentry
init Sentry connection before any other Amplifier object initiation
Amplifier.Sentry.SentryDsn = "https://xxxxxxxxxxxxxxxxxxx@xxxxxxx.ingest.sentry.io/xxxxxxxx";
- Create
AmplifierJWTAuth
object with your username and password and url (url of your endpoint)
AmplifierJWTAuth amplifierJWTAuth = new AmplifierJWTAuth(USERNAME, PASSWORD, URL);
- use it's
getToken()
method to authenticate and get your JWT Token
b2BWSConfig.JWTToken = await amplifierJWTAuth.getToken();
- add AMPER WS URL
b2BWSConfig.b2BWSUrl = "https://example-amper-b2b-ws.com"
- create an import class where you can:
- fetch data you want to send
- map it to Amplifier classes (
Product
,Settlement
...) - use
Backend
methods to send it
- when creating
Backend
passWSConfig
with your JWTToken and B2BWSUrl you wish to communicate with
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows |
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
-
net5.0
- Newtonsoft.Json (>= 12.0.3)
- Sentry (>= 3.12.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.1.18 | 36 | 6/30/2022 |
1.1.17 | 55 | 6/21/2022 |
1.1.16 | 48 | 6/15/2022 |
1.1.15 | 50 | 6/15/2022 |
1.1.14 | 67 | 5/25/2022 |
1.1.13 | 63 | 5/24/2022 |
1.1.12 | 58 | 5/22/2022 |
1.1.11 | 56 | 5/22/2022 |
1.1.10 | 77 | 4/30/2022 |
1.1.9 | 71 | 4/7/2022 |
1.1.8 | 65 | 4/4/2022 |
1.1.7 | 67 | 4/2/2022 |
1.1.6 | 60 | 4/2/2022 |
1.1.5 | 92 | 2/14/2022 |
1.1.4 | 67 | 2/14/2022 |
1.1.3 | 105 | 1/2/2022 |
1.1.2 | 109 | 1/2/2022 |
1.1.1 | 108 | 1/2/2022 |
1.1.0 | 139 | 12/19/2021 |
1.0.2 | 163 | 8/2/2021 |
1.0.1 | 212 | 2/24/2021 |