If you need to future information about API document Please visit RESTful Document
First of all, You need to make an account on Kavenegar from Here
After that you just need to pick API-KEY up from My Account section. You can download the C# SDK Here or just pull it and use this in your projects. Anyway there is good tutorial about Pull request
Also you can get pakage from nuget :
Install-Package kavenegar -Version 1.2.4
dotnet add package kavenegar --version 1.2.4
Well, There is an example to Send SMS by C#.
try
{
Kavenegar.KavenegarApi api = new Kavenegar.KavenegarApi("Your Api Key");
var result = api.Send("SenderLine", "Your Receptor", "خدمات پیام کوتاه کاوه نگار");
foreach (var r in result){
Console.Write("r.Messageid.ToString()");
}
}
catch (Kavenegar.Exceptions.ApiException ex)
{
// در صورتی که خروجی وب سرویس 200 نباشد این خطارخ می دهد.
Console.Write("Message : " + ex.Message);
}
catch (Kavenegar.Exceptions.HttpException ex)
{
// در زمانی که مشکلی در برقرای ارتباط با وب سرویس وجود داشته باشد این خطا رخ می دهد
Console.Write("Message : " + ex.Message);
}
Bug fixes, docs, and enhancements welcome! Please let us know support@kavenegar.com