Skip to content
Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

IO.Swagger - the C# library for the SMS Fusion API

This is the SMS Fusion API

This C# SDK is automatically generated by the Swagger Codegen project:

  • API version: 1.0.0
  • SDK version: 1.0.0
  • Build package: io.swagger.codegen.languages.CSharpClientCodegen For more information, please visit

Frameworks supported

  • .NET 4.0 or later
  • Windows Phone 7.1 (Mango)


The DLLs included in the package may not be the latest version. We recommend using [NuGet] ( to obtain the latest version of the packages:

Install-Package RestSharp
Install-Package Newtonsoft.Json

NOTE: RestSharp versions greater than 105.1.0 have a bug which causes file uploads to fail. See RestSharp#742


Run the following command to generate the DLL

  • [Mac/Linux] /bin/sh
  • [Windows] build.bat

Then include the DLL (under the bin folder) in the C# project, and use the namespaces:

using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;


A .nuspec is included with the project. You can follow the Nuget quickstart to create and publish packages.

This .nuspec uses placeholders from the .csproj, so build the .csproj directly:

nuget pack -Build -OutputDirectory out IO.Swagger.csproj

Then, publish to a local feed or other host and consume the new package via Nuget as usual.

Getting Started

using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;

namespace Example
    public class Example
        public void main()
            // Configure API key authorization: api_key
            Configuration.Default.ApiKey.Add("key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("key", "Bearer");

            var apiInstance = new HLRApi();
            var key = key_example;  // string | API Key as generated from the <a href=''>admin panel</a>
            var num = num_example;  // string | A single phone number or <a href=''>MSDISDN</a>
            var cc = cc_example;  // string | 2 character country code <a href=''>ISO 3166-2</a> for formatting local numbers internationally (optional) 

                // HLR number lookup
                HLRCallback result = apiInstance.GetHLR(key, num, cc);
            catch (Exception e)
                Debug.Print("Exception when calling HLRApi.GetHLR: " + e.Message );

Documentation for API Endpoints

All URIs are relative to

Class Method HTTP request Description
HLRApi GetHLR GET /hlr/ HLR number lookup
HLRApi GetHLRCallback GET /hlr-callback/ HLR number lookup with results going to a callback URL
SMSApi SendSMS GET /sms/ Send an SMS

Documentation for Models

Documentation for Authorization


  • Type: API key
  • API key parameter name: key
  • Location: URL query string


No description, website, or topics provided.



No releases published


No packages published