Untitled Page

Send SMS Gateway API – C#

This command can be used to send text messages to either individual numbers or entire contact groups.

Sample Request

                    
                    
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace ConsoleApplication8
  6. {
  7. class Program
  8. {
  9. static void Main(string[] args)
  10. string serverURL1 = "Provider.net";//eg provider name
  11. string url1 = "Sample provider service"; //eg url path get and post URL = "Sample" 'eg-- www.abc.com
  12. //string url1 = "Sample provider service"; //eg url path for xml
  13. string authkey1 = "sample auth key" // "Sample Auth key" 'eg -- 16 digits alphanumeric;
  14. string message1 = "Sample message"; //eg "message hello ";
  15. string senderId1 = "Sample sender id";//eg -- Testin'
  16. string routeId1 = "sample route id";// eg 1;
  17. string mobileNos1 = "Samplemobile no1, Samplemobile no2";//eg '99999999xx,99999998xx
  18. string smsContentType1 = "english";//or Unicode
  19. string groupId1 = "Sample Group";// eg 1
  20. string scheduledate1 = " "; //optional if(scheduledate eg “26/08/2015 17:00”);
  21. string signature1 =" "; //optional if(signature available eg “1”);
  22. string groupName =" ";//optional if(groupName available eg “1”);
  23. ClassLibrary2.HitApi hitAPI = new ClassLibrary2.HitApi();
  24. Console.WriteLine("POSTAPI Return Value ::" + hitAPI.hitPostApi(serverURL1 + url, authkey1, message1, senderId1, routeId1, mobileNos1,
  25. smsContentType1, scheduleddate1,signature1, signature1));
  26. Console.ReadLine();
  27. }
  28. }
  29. }
                    
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace ConsoleApplication8
  6. {
  7. class Program
  8. {
  9. static void Main(string[] args)
  10. string serverURL1 = "Provider.net";//eg provider name
  11. string url1 = "Sample provider service"; //eg url path get and post URL = "Sample" 'eg-- www.abc.com
  12. //string url1 = "Sample provider service"; //eg url path for xml
  13. string authkey1 = "sample auth key" // "Sample Auth key" 'eg -- 16 digits alphanumeric;
  14. string message1 = "Sample message"; //eg "message hello ";
  15. string senderId1 = "Sample sender id";//eg -- Testin'
  16. string routeId1 = "sample route id";// eg 1;
  17. string mobileNos1 = "Samplemobile no1, Samplemobile no2";//eg '99999999xx,99999998xx
  18. string smsContentType1 = "english";//or Unicode
  19. string groupId1 = "Sample Group";// eg 1
  20. string scheduledate1 = " "; //optional if(scheduledate eg “26/08/2015 17:00”);
  21. string signature1 =" "; //optional if(signature available eg “1”);
  22. string groupName =" ";//optional if(groupName available eg “1”);
  23. ClassLibrary2.HitApi hitAPI = new ClassLibrary2.HitApi();
  24. Console.WriteLine("GetAPI Return Value ::"+hitAPI.hitGetApi(serverURL1, url, authkey1, message1, senderId1, routeId1, mobileNos1,
  25. smsContentType1, groupId1, scheduleddate1, signature1, groupName));
  26. Console.ReadLine();
  27. }
  28. }
  29. }
                    
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. namespace ConsoleApplication8
  6. {
  7. class Program
  8. {
  9. static void Main(string[] args)
  10. string serverURL1 = "Provider.net";//eg provider name
  11. string url = "Sample provider service"; //eg url path get and post URL = "Sample" 'eg-- www.abc.com
  12. //string url1 = "Sample provider service"; //eg url path for xml
  13. string authkey1 = "sample auth key" // "Sample Auth key" 'eg -- 16 digits alphanumeric;
  14. string message1 = "Sample message"; //eg "message hello ";
  15. string senderId1 = "Sample sender id";//eg -- Testin'
  16. string routeId1 = "sample route id";// eg 1;
  17. string mobileNos1 = "Samplemobile no1, Samplemobile no2";//eg '99999999xx,99999998xx
  18. string smsContentType1 = "english";//or Unicode
  19. string groupId1 = "Sample Group";// eg 1
  20. string scheduledate1 = ""M; //optional if(scheduledate eg “26/08/2015 17:00”);
  21. string signature1 =""; //optional if(signature available eg “1”);
  22. string groupName ="";//optional if(groupName available eg “1”);
  23. ClassLibrary2.HitApi hitAPI = new ClassLibrary2.HitApi();
  24. Console.WriteLine("XML API Return Value ::" + hitAPI.hitXmlApi(serverURL1, url1, authkey1, message1, senderId1, routeId1, mobileNos1,
  25. smsContentType1, groupId1, scheduleddate1, signature1, groupName));
  26. Console.ReadLine();
  27. }
  28. }
  29. }
Caution: Some users opt to place their request inside a code loop, while testing we highly recommend setting the test parameter to true , as occasionally an infinite loop can occur and users can consume all their credits very quickly.

We provide you Bulk SMS API India with sample code in C# so that, it saves your time because you can directly integrate our ready to use Bulk SMS API in your software (developed in C# language), application, website or custom application to sending SMS in minutes. Our SMS APIs with sample code in C# is a simple way to send text message in single click with C# desktop application.

Whether your software serve the purpose of Customer relationship management (CRM), Billing, accounting, Reports /content management, HR management, Marketing,Order management, Product life cycle (PLC) management, warehouse management or any other. The developed API and ready made scripts in C# by technical team of msgclub, it is easy to integrate in any software developed in C#.

You can also integrate our BULK SMS API India into these CRM (Customer relationship software) softwares to send SMS inorder to greet, inform, promote via CRM softwares like splendid , Post books CRM, dynamics CRM, microsoft dynamic CRM, Salesforce CRM etc.

Send SMS from your accounting softwares using C# API for sending dues information, billing information, Invoice, renewal of service, total business, to send Tax related, Inventory Management, HR & Payroll information etc and from any of your accounting software like postbooks.

Use Our SMS API India in C# to integrate into HR software like Gotwell HRMS.

How to integrate bulk sms gateway api in C# ?

    • Sign up with Msgclub and go to developer tool for C# Api and follow the simple steps to integrate bulk SMS API in your website. You will get POST and GET both type of send sms C# API which are ready to use and source code for sms gateway. Our Send bulk sms C# script is used by many software companies and startups as sms verification api in India.Our Bulk SMS API documentation is the best for sms api for C# developers.

      We are sms api providers for sms notification system, signup messages, alert message and verification code using C# code. Our developer guide helps our clients to integrate sms gateway api in C# into their websites or softwares.

      We too provide ready wordpress sms api and drupal sms api.

How to send verification code to mobile using C# ?

    • To send the verification code to mobile through SMS using C# is possible only with the API Integration.


How can I send bulk sms from my website by integrating sms gateway api in C# .

    • API is the best way to send SMS directly from your website. As it allows you to integrate SMS services into your own System/application/Website for better functionality.

      A request to the Bulk SMS API is done by calling a URL with some required parameters (User Name, Password, Sender ID, Mobile Number, Message).When a request is made, the API along with all the parameters send to SMS Gateway server and it process the request and generate response for the particular request immediately. Msgclub gives the Best Bulk SMS Gateway with HTTP API (HTTP) to be integrated in different programming language like C# ,php,Java, ASP.net.

Parameter Name with Description

Parameter Name Data Type Description
AUTH_KEY * Alphanumeric Login Authentication Key(This key is unique for every user)
message * Text Enter your message
senderId * Text Enter senderId it should be less then 6 character
routeId * Integer Which route you want use for sending sms enter routeId for particular route.use given Id for route. Transactional Route=1, Promotinal=2, Promotional SenderId=3
mobileNos * Integer Mobile number can be entered with country code or without country code Multiple mobile no. should be separated by comma
groupId * Integer To send sms to particular group enter group name created in MsgClub phone book.
smsContentType* Text "English" for text sms and "Unicode" for Unicode sms

Parameters with( * ) are mandatory.

Note: While both numbers and group_id are optional parameters, one or the other must be included in the request for the message to be sent.

Errors

Error Codes Description
3001 * for Success
3002 * Invalid URL
3003 * Invalid User/Password
3004 * Invalid Message Type
3005 * Invalid Message
3006 * Invalid Destination
3007 * Invalid Source
3008 * Invalid DLR Field
3009 * Authentication Failed
3010 * Internal Error
3011 * Insufficient Balance
3012 * Responce Time Out
3013 * Invalid Request Content Type
3014 * Missing Mobile Number
3015 * SMs Content for Approval
3016 * Missing Required Parameter
3017 * FAIL
3018 * Expired Account
3019 * Null Pointer Exception code
3020 * Empty User Name
3021 * Empty Password
3022 * User Name not Available
3023 * Session Expired
3024 * Already Exist
3025 * Empty Group Name
3026 * Empty Contact Name
3027 * Empty Mobile Number
3028 * Empty Group Id
3029 * Empty City Name
3030 * Empty Occupation
3041 * Empty E-Mail Id
3042 * Group not Exist
3043 * Empty Message
3044 * Empty Route Id
3045 * Empty Sender Id
3047 * Empty Draft Id
3048 * Empty First Name
3049 * Empty Last Name
3050 * Empty Balance
3051 * Empty Role Id
3052 * For User Name Length
3053 * Empty Expiry Date/td>
3054 * Invalid Date
3055 * Empty Client Id
3056 * Invalid Status
3057 * Empty Country Name
3058 * Empty State Name
3059 * Session Expired
3060 * Empty Date
3061 * Access Denied
3062 * Empty Old Password
3063 * Password not Maching
3064 * Empty SMS
3065 * Empty Amount
3066 * Empty Address
3067 * Empty RequestId
3068 * Empty Group and MobileNo
3069 * Empty Description
3070 * Fail to Change RoleId
3071 * Empty CallerId
3072 * Empty File URL and Draft
3073 * Empty Duration
3074 * Invalid Request
3075 * Invalid Aoudio file
3076 * Missing Upload File

Warnings

Warning Codes
3 Invalid number.
For Any Help Call Us Anywhere Anytime On   +91-94068-11127