using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Net; public partial class SendSMSHttP : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void BtnSend_Click(object sender, EventArgs e) { try { HttpWebRequest myReq = (System.Net.HttpWebRequest)WebRequest.Create("https://msg.msgclub.net/rest/services/sendSMS/sendGroupSms?AUTH_KEY=YourAuthKey&message="+ txtmsg.Text + "&senderId=DEMOOS&routeId=1&mobileNos="+ txtMobile.Text +"&smsContentType=English"); HttpWebResponse myResp = (HttpWebResponse)myReq.GetResponse(); System.IO.StreamReader respStreamReader = new System.IO.StreamReader(myResp.GetResponseStream()); string responseString = respStreamReader.ReadToEnd(); respStreamReader.Close(); myResp.Close(); } catch (Exception ex) { } } }
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.
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.
You will get account with some demo credit to test API that help you write applications and interact with MsgClub C# APIs
All you need to create an account at our interface to get send SMS API of C# language in developer tool.
Select our best OTP route via integration our send SMS API to send OTP messages with high delivery.
We have two different types of API; XML and JSON for sending SMS messages in bulk to people.
Use our ready to use script in your system for sending bulk SMS regarding registrations & verification
We have ready code in C# programming language with all details that help you to integrate our SMS gateway.
Just call or hit our bulk SMS API in a click of a action to integrate our all SMS marketing services.
Send Schedule SMS
Delete Scheduled SMS
Reschedule SMS
Add Group
Delete Group
List Group
Add Contact
Edit Contact
List Contact
Add Draft
Delete Draft
List Draft
Add Client
Edit Client
Delete Client
Client List
Disable / Enable
Forgot Password
Transaction Log
Client Balance
Fund Transfer