Skip to content

voximplant/apiclient-dotnet

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Voximplant API client library

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.
  2. A private API key. There are 2 options to obtain it:
    1. Either generate it in the Voximplant Control panel
    2. Or call the CreateKey HTTP API method with the specified authentication 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:

     nuget install Voximplant.API
  • Next, specify the path to the JSON service account file either with the ClientConfig file or using the environment.

    ClientConfig:

    var config = new ClientConfiguration
    {
        KeyFile = "/path/to/credentials.json"
    };
    var api = new VoximplantAPI(config);

    Environment:

    export VOXIMPLANT_CREDENTIALS=/path/to/credentials.json

Example

This example shows how you can use the API client.

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}");
            }
        }
    }
}

About

Voximplant Management API .NET client library

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •  

Languages