In previous post Code – Sonus in C# – Part 01 of 05 we made a basis for using Sonus API in C#.
In this post we will extend our prototype with logon and logout, providing the basics for our first GET. In the staring sample we just want to retrieve the serial number of our Sonus session border controller.
This post is part 1 of a series of 5 on writing C# applications using Sonus API.
I used Microsoft Visual Studio Community 2015 running Windows 10 and targeted Windows Desktop Application to .NET Framework 4.6.1.
The REST APIs are provided for developers who want to programmatically integrate the Sonus SBC 1000/2000 into their application, and for administrators who want to script interactions with the Sonus SBC 1000/2000 gateway.
Sonus SBC 1000/2000’s REST APIs provide access to resources via URI paths. To use a REST API, your application makes HTTPs requests and parses the responses. Currently, the only supported response format is XML. Methods used by developers are standard HTTP methods such as GET, PUT, POST, and DELETE to communication resources.
In the App.config nothing special, just reference to .NET Framework 4.6.1.
<?xml version="1.0" encoding="utf-8"?>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>