https://github.com/voximplant/apiclient-dotnet
Voximplant Management API .NET client library
https://github.com/voximplant/apiclient-dotnet
management-api voximplant
Last synced: 13 days ago
JSON representation
Voximplant Management API .NET client library
- Host: GitHub
- URL: https://github.com/voximplant/apiclient-dotnet
- Owner: voximplant
- License: apache-2.0
- Created: 2019-12-16T11:40:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-04-21T09:52:12.000Z (about 1 month ago)
- Last Synced: 2025-05-08T22:57:11.474Z (13 days ago)
- Topics: management-api, voximplant
- Language: C#
- Homepage:
- Size: 1.01 MB
- Stars: 3
- Watchers: 9
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Voximplant API client library
#### Version 3.1.0
## Prerequisites
In order to use Voximplant SDK for the .NET, you need the following:
1. A developer account. If you don't have one, [sign up here](https://voximplant.com/sign-up/).
2. A private API key. There are 2 options to obtain it:
1. Either generate it in the [Voximplant Control panel](https://manage.voximplant.com/settings/service_accounts)
1. Or call the [CreateKey](https://voximplant.com/docs/references/httpapi/managing_role_system#createkey) HTTP API
method with the
specified [authentication parameters](https://voximplant.com/docs/references/httpapi/auth_parameters). You'll
receive a response with the __result__ field in it. Save the __result__ value in a file (since we don't store the
keys, save it securely on your side).## Getting started
* The best way to start is to use `NuGet` to add the SDK to your Solution:
```powershell
nuget install Voximplant.API
```* Next, specify the path to the JSON service account file either with the ClientConfig file or using the environment.
**ClientConfig:**
```csharp
var config = new ClientConfiguration
{
KeyFile = "/path/to/credentials.json"
};
var api = new VoximplantAPI(config);
```**Environment:**
```bash
export VOXIMPLANT_CREDENTIALS=/path/to/credentials.json
```### Example
This example shows how you can use the API client.
```csharp
using System;
using Voximplant.API;namespace example
{
class Program
{
private static void Main(string[] args)
{
try {
var voximplant = new VoximplantAPI();
var result = voximplant.GetSubscriptionPrice().Result;
Console.WriteLine($"Response: {result.ToString()}");
} catch (Exception e) {
Console.WriteLine($"Error: {e.Message}");
}
}
}
}
```