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 ASP.NET APIs
We provide you ready codes in ASP.net language with all details that helps you to integrate our SMS gateway.
Just create a request to our server to call or hit our bulk SMS API in a single click of action and send SMS directly from your website.
Just sign up your account on our panel, go to developer tool to get multiple send SMS API for your application/software.
MsgClub offers you two different types of API; XML and JSON for sending SMS in bulk and it's also very easy to download.
Send OTPs to your customers using our send SMS API. Choose our best OTP route and Banking route for its better delivery.
Our developers provide you various ready script for sending SMS in high-volume. You can also use send SMS API for verification.
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