![]() |
VOOZH | about |
dotnet add package Amilon.MyGate.API.Client --version 3.0.23
NuGet\Install-Package Amilon.MyGate.API.Client -Version 3.0.23
<PackageReference Include="Amilon.MyGate.API.Client" Version="3.0.23" />
<PackageVersion Include="Amilon.MyGate.API.Client" Version="3.0.23" />Directory.Packages.props
<PackageReference Include="Amilon.MyGate.API.Client" />Project file
paket add Amilon.MyGate.API.Client --version 3.0.23
#r "nuget: Amilon.MyGate.API.Client, 3.0.23"
#:package Amilon.MyGate.API.Client@3.0.23
#addin nuget:?package=Amilon.MyGate.API.Client&version=3.0.23Install as a Cake Addin
#tool nuget:?package=Amilon.MyGate.API.Client&version=3.0.23Install as a Cake Tool
This client allows you to connect and use Amilon's My Gate API Client.
You can configure the authentication parameters in the appsettings.json. Depending on your authentication type, you can configure
or/and optionally
"MyGate_API_Client": {
"Environment": "STG",
"ClientId": "your-client-id",
"ClientSecret": "your-client-secret",
"UserName": "your-username",
"Password": "your-password",
"Version": "2",
"GrantType": "password",
"Timeout": 60000
}
You can configure the client in your app through Dependency Injection
public IConfiguration Configuration { get; }
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public void ConfigureServices(IServiceCollection services)
{
services.AddMyGateClient(Configuration);
}
var builder = Host.CreateApplicationBuilder(args);
builder.Services.AddMyGateClient(builder.Configuration);
You can configure the authentication parameters in the appsettings.json. Depending on your authentication type, you can configure
or/and optionally
In this Multi Tenant mode, you can customize the appSettings to your own needs, it does not have to use a specific structure as the client will be initialized manually using the needed parameters in the AddMyGateClient method call.
"MyGate_API_Client": {
"Environment": "STG",
"Version": "2",
"GrantType": "password",
"Timeout": 60000
},
"MultiTenant": [
{
"ClientId": "your-client-id_1",
"ClientSecret": "your-client-secret_1",
"MyGateCredentials": {
"UserName": "your-user-name_1",
"Password": "your-password_1"
}
},
{
"ClientId": "your-client-id_2",
"ClientSecret": "your-client-secret_2",
"MyGateCredentials": {
"UserName": "your-user-name_2",
"Password": "your-password_2"
}
},
]
You can configure the client in your app through Dependency Injection. MultiTenantHelper is a placeholder for a class you can make in order to get the specific credentials for a specific ClientId.
public IConfiguration Configuration { get; }
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public void ConfigureServices(IServiceCollection services)
{
var GateConfig = Configuration.GetSection("MyGate_API_Client").Get<MyGateConfig>();
services.AddMyGateClient(_ =>
{
var config = new GateConfig();
var mygateCredentials = MultiTenantHelper.GetMyGateCredentials();
config.ClientId = mygateCredentials.ClientId;
config.ClientSecret = mygateCredentials.ClientSecret;
config.GrantType = GateConfig.GrantType;
config.Version = GateConfig.Version;
config.Password = mygateCredentials.Password;
config.UserName = mygateCredentials.UserName;
return config;
}, GateConfig.Environment, GateConfig.Timeout);
}
var builder = Host.CreateApplicationBuilder(args);
var GateConfig = Configuration.GetSection("MyGate_API_Client").Get<MyGateConfig>();
builder.Services.AddMyGateClient(_ =>
{
var config = new GateConfig();
var mygateCredentials = MultiTenantHelper.GetMyGateCredentials();
config.ClientId = mygateCredentials.ClientId;
config.ClientSecret = mygateCredentials.ClientSecret;
config.GrantType = GateConfig.GrantType;
config.Version = GateConfig.Version;
config.Password = mygateCredentials.Password;
config.UserName = mygateCredentials.UserName;
return config;
}, GateConfig.Environment, GateConfig.Timeout);
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 is compatible. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 netstandard2.1 is compatible. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 3.0.23 | 293 | 11/6/2024 |
| 3.0.21 | 219 | 10/29/2024 |
| 3.0.20 | 214 | 10/25/2024 |
| 3.0.19 | 197 | 10/23/2024 |
| 3.0.18 | 211 | 10/10/2024 |
| 3.0.17 | 233 | 9/13/2024 |
| 3.0.16 | 223 | 9/9/2024 |
| 3.0.15 | 229 | 9/3/2024 |
| 3.0.13 | 255 | 5/13/2024 |
| 3.0.12 | 228 | 5/8/2024 |
| 3.0.11 | 237 | 4/18/2024 |
| 3.0.4 | 233 | 4/18/2024 |
| 3.0.3 | 220 | 4/18/2024 |
| 3.0.2 | 229 | 4/18/2024 |
| 3.0.1 | 235 | 4/18/2024 |
| 2.3.1 | 353 | 3/4/2024 |
| 2.2.3 | 865 | 6/7/2023 |
| 2.2.2 | 787 | 6/7/2023 |
| 2.2.1 | 782 | 6/6/2023 |
| 1.0.1 | 215 | 5/15/2024 |