cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

The Sinch .NET SDK was designed for developers. The SDK components are built with the specific language first and foremost in mind. After that, our focus was to keep the design simple for users that only want to leverage specific API calls they use but ensure customizability and future-proof access to other parts of our infrastructure. 

 

The .NET SDK has added common capabilities to further streamline the interaction with our platform:

  • We’ve provided a simple HTTP component but allow users to override that with their own custom version if needed. 
  • There is asynchronous support for all API calls, regardless of the original endpoint functionality. 
  • We’ve provided automated token management/refresh code, so developers can use the system without micromanaging their authorization/authentication.

With all these common items, we hope to build out consistent frameworks with functionality all users require.

 

Another goal of ours while designing this new .NET SDK was to mimic our REST APIs as much as possible, while still providing .NET developer experience.  We also use IDE type hints which, along with the REST API specification, allows the user to perform most API interactions without the need to use reference documentation.

 

Discoverability is one of the key components of great DX, hence .NET SDK namespaces are small and specific yet descriptive.

 

For example:

var response = await sinchClient.Numbers.Available.List(new ListAvailableNumbersRequest()
{
    Type = Types.Mobile,
    RegionCode = "US"B
});

 

The main client class organizes the Sinch product portfolio (called domains within SDK) and its features into hierarchy that produces an API that is easy to read and discover.

 

dotNetSDK.jpg

 

No third-party libraries are used by the NET SDK.

Currently, supported .NET versions: NET 6, NET 7, NET 8. New stable versions will be added in the future, while older/EOL versions will be deprecated.

 

For now, SMS, Numbers, Voice, and Verification APIs are supported, with other public Sinch APIs to be added soon.

 

For further details and to download our SDK, please refer to:

GitHub: https://github.com/sinch/sinch-sdk-dotnet

NuGet: https://www.nuget.org/packages/Sinch/

Featured Article
Version history
Last update:
‎03-28-2024 04:14 AM
Updated by: