Home > Services > Send SMS / TXT Services > APIs for send SMS / TXT

APIs for send SMS / TXT

Does your business have an application that needs to send SMS messages?

Do you think hosting an in-house SMS Messaging Server would be too costly?

With SMS4U these problems are solved... SMS4U provides different methods to send SMS messages over the Internet.

SMS4U supports APIs to send SMS messages over the internet using both HTTP and HTTPS protocols as well as a SOAP interface.

Feel free to contact SMS4U to discuss any other transfer methods you may require!

How do I use the HTTP/HTTPS API?

Using your web server or browser you can send SMS/TXT messages using HTTP POST or GET.
The required fields are: sender, token, number and message

An example of this is as follows:

http://www.tnz.co.nz/xxx/xxxxxxx/xxxapi.php?sender=xxx&token=xxx&number=xxx&message=xxx

Download the SMS HTTP API Guide for more information.
The true URLs have been hidden for security purposes. Please contact us for the complete API documentation.

How do I use the SOAP API?

Using your SOAP application, you can send SMS messages.
The required fields are: sender, token, number and message

An example of this is as follows (PHP):

$request = array(
  'sender' => '[EmailAddress]',
  'token' => '[Your Token]',
  'number' => '[Destination Mobile Number]',
  'message' => '[SMS Message]',
  'smsemailreply' => '', //optional
  'messageid' => '', //optional
);

$client = new SoapClient('http://www.tnz.co.nz/xxx/xxxxxxx/xxxSOAP.wsdl');
$result = $client->__soapCall('send_sms', array($request));
printf("Result = %s\n", $result->smsReturn);

Download the SMS SOAP API Guide for more information.
The true URLs have been hidden for security purposes. Please contact us for the complete API documentation.