This API is the way you connect your server with ours. It is a very simple integration, essentially it calls our web service, which will send the message and will keep reporting in your account.
Implementing the API:
Login with you user name and password of your advertiser account > click edit profile > next to API ID click “Generate”
Embed the following parameters:
user = the user name of your advertiser account
api_id = the code you have generated under edit profile
mobile = the mobile phone number to send to
message – the message to send to the recipient
shortcode (optional) - supply the short code to use i.e. 71441-US / 40691 as it's showing on your keywords
format (optional) - set as xml if you want to supply the parameters by XML file, if present then parameters from xml will be used.
Use this example to test the API:
Replace USER_NAME with advertiser user name
Replace API_ID with the code generated
Replace MOBILE_NUMBER with the phone number must include the 1 prefix
Replace TEXT with the message to be send
https://mcpn.us/sendsmsapi?user=USER_NAME&api_id=API_ID&mobile=MOBILE_NUMBER&message=TEXT
All parameters must be supply and they are case sensitive.
For xml use:
https://mcpn.us/sendsmsapi?format=xml
XML File:
<?xml version="1.0" ?>
<Data>
<User>user</User>
<ApiId>api key</ApiId>
<Message>message</Message>
<Mobiles>
<Mobile>mobile1</Mobile>
<Mobile>mobile2</Mobile>
.
.
.
</Mobiles>
<Shortcode>71441-US</Shortcode>
</Data>
Mobile element is limited to 1000 numbers per call.
Comments
0 comments
Article is closed for comments.