Celitech.SDK.ReadmeTest
1.3.48
dotnet add package Celitech.SDK.ReadmeTest --version 1.3.48
NuGet\Install-Package Celitech.SDK.ReadmeTest -Version 1.3.48
<PackageReference Include="Celitech.SDK.ReadmeTest" Version="1.3.48" />
<PackageVersion Include="Celitech.SDK.ReadmeTest" Version="1.3.48" />
<PackageReference Include="Celitech.SDK.ReadmeTest" />
paket add Celitech.SDK.ReadmeTest --version 1.3.48
#r "nuget: Celitech.SDK.ReadmeTest, 1.3.48"
#:package Celitech.SDK.ReadmeTest@1.3.48
#addin nuget:?package=Celitech.SDK.ReadmeTest&version=1.3.48
#tool nuget:?package=Celitech.SDK.ReadmeTest&version=1.3.48
TestApi C# SDK 1.0.0
Welcome to the TestApi SDK documentation. This guide will help you get started with integrating and using the TestApi SDK in your project.
Versions
- API version:
1.0.0 - SDK version:
1.0.0
About the API
Welcome to the CELITECH API documentation!
Useful links: Homepage | Support email | Blog
Table of Contents
Setup & Configuration
Supported Language Versions
This SDK is compatible with the following versions: C# >= .NET 6
Installation
To get started with the SDK, we recommend installing using nuget:
dotnet add package TestApi
Authentication
OAuth Authentication
The TestApi API uses OAuth for authentication.
You need to provide the OAuth parameters when initializing the SDK.
using TestApi;
using TestApi.Config;
var config = new TestApiConfig()
{
ClientId = "CLIENTID",
ClientSecret = "CLIENTSECRET"
};
var client = new TestApiClient(config);
If you need to set or update the OAuth parameters after the SDK initialization, you can use:
sdk.SetClientId("CLIENTID")
sdk.SetClientSecret("CLIENTSECRET")
Environments
The SDK supports different environments for various stages of development and deployment.
Here are the available environments:
Default = "https://api.liblab.com"
Production = "https://api.liblab.com"
Staging = "https://api-staging.liblab.com"
Development = "https://api-dev.liblab.com"
Setting an Environment
To configure the SDK to use a specific environment, you can set the base URL as follows:
client.SetEnvironment(Environment.Development);
Sample Usage
Below is a comprehensive example demonstrating how to authenticate and call a simple endpoint:
using TestApi;
using TestApi.Config;
using Environment = TestApi.Http.Environment;
var config = new TestApiConfig
{
Environment = Environment.Default,
ClientId = "CLIENTID",
ClientSecret = "CLIENTSECRET"
};
var client = new TestApiClient(config);
var response = await client.Destinations.ListDestinationsAsync();
Console.WriteLine(response);
Services
The SDK provides various services to interact with the API.
Below is a list of all available services:
| Name |
|---|
| OAuthService |
| DestinationsService |
| PackagesService |
| PurchasesService |
| ESimService |
| IFrameService |
Models
The SDK includes several models that represent the data structures used in API requests and responses. These models help in organizing and managing the data efficiently.
Below is a list of all available models:
| Name | Description |
|---|---|
| GetAccessTokenRequest | |
| GetAccessTokenOkResponse | |
| ListDestinationsOkResponse | |
| ListPackagesOkResponse | |
| CreatePurchaseV2Request | |
| CreatePurchaseV2OkResponse | |
| ListPurchasesOkResponse | |
| CreatePurchaseRequest | |
| CreatePurchaseOkResponse | |
| TopUpEsimRequest | |
| TopUpEsimOkResponse | |
| EditPurchaseRequest | |
| EditPurchaseOkResponse | |
| GetPurchaseConsumptionOkResponse | |
| GetEsimOkResponse | |
| GetEsimDeviceOkResponse | |
| GetEsimHistoryOkResponse | |
| GetEsimMacOkResponse | |
| TokenOkResponse | |
| GrantType | |
| Destinations | |
| Packages | |
| CreatePurchaseV2OkResponsePurchase | |
| CreatePurchaseV2OkResponseProfile | |
| Purchases | |
| Package | |
| PurchasesEsim | |
| CreatePurchaseOkResponsePurchase | |
| CreatePurchaseOkResponseProfile | |
| TopUpEsimOkResponsePurchase | |
| TopUpEsimOkResponseProfile | |
| GetEsimOkResponseEsim | |
| Device | |
| GetEsimHistoryOkResponseEsim | |
| History | |
| GetEsimMacOkResponseEsim |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- FluentValidation (>= 11.5.0)
- Polly (>= 8.2.1)
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 |
|---|