Edit Article

This article explain you steps to send text messages using txtimpact sms API. SMS API lets you make a simple HTTP request and send a text message. Here is how you use it.

EditSteps

  1. Send Text Messages Using TxtImpact SMS API Using PHP Step 1.jpg
    1
    Signup for your txtimpact developer account
  2. Send Text Messages Using TxtImpact SMS API Using PHP Step 2.jpg
    2
    Once your account is ready, retrieve your user Id, Password, VASId from dashboard.
    • Sample code to SMS Text message from PHP;
      • <?php
      • $ch = curl_init(http://smsapi.TxtImpact.com/smsadmin/submitsm.aspx');
      • curl_setopt($ch, CURLOPT_POST, 1);
      • curl_setopt($ch, CURLOPT_POSTFIELDS, "VERSION=2.0&userid=[username]&password=[userpassword]&VASId=[VASId]&FROM=27126&TO=[Mobile Number]&Text=[Text Message]);
      • curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
      • $data = curl_exec($ch);
      • Print($data); /* result of API call*/
      •  ?>
  3. Send Text Messages Using TxtImpact SMS API Using PHP Step 3.jpg
    3
    Wait for the return message. The API will return a string message to the calling application. The response from Send SMS APIs or Text Messaging API:
    • Successful submission:
    • JOBID: [MOBILENUMBER]:[SMSID]
    • Failed submission:
    • ERR: 301: Failed authentication
    • ERR: 305: Not enough credits
    • ...
      • This completes your call to TxtImpact SMS API using PHP.


We could really use your help!

Can you tell us about
glue removal?
Yes
No
glue removal
how to get Gorilla Glue off hands
Can you tell us about
Adobe Photoshop?
Yes
No
Adobe Photoshop
how to swap faces in Photoshop
Can you tell us about
married life?
Yes
No
married life
how to deal with a narcissistic husband
Can you tell us about
sabbaticals?
Yes
No
sabbaticals
how to plan a sabbatical
Thanks for helping! Please tell us everything you know about
...
Tell us everything you know here. Remember, more detail is better.
Tips
Provide Details.
Please be as detailed as possible in your explanation. Don't worry about formatting! We'll take care of it. For example:
Don't say: Eat more fats.
Do say: Add fats with some nutritional value to the foods you already eat. Try olive oil, butter, avocado, and mayonnaise.

EditSources and Citations

Article Info

Categories: Stub | Website Application Instructions

Thanks to all authors for creating a page that has been read 462 times.

Did this article help you?
Yes No