SMS Broadcast

Developers

if ($user == "Developer"){ echo "Welcome!"; }

The SMS Broadcast API allows you to integrate SMS messaging into your systems. Our API is a simple, yet powerful way to connect to our SMS gateway. There is no extra cost to use this service.

SMS Broadcast have two separate SMS gateways for adding SMS capability to software: a full feature HTTP API and an easy to use email API.

HTTP API

The HTTP API lets you send and receive messages, check credit balances, and receive updates to the the status of sent messages. It is ideal for sending bulk SMS messages and single messages.

You need the facility to make a HTTP or HTTPS connection to our URL. Our documentation contains all the required information and examples.

It doesn't matter which programming language you use, as long as it can make a HTTP connection. We have example code for PHP and .NET, and the documentation provides language agnostic examples if you want to implement into another language like Ruby or Java.

HTTP API Documentation PHP SDK

Email API

Many software packages with SMS capabilities can use the email-to-sms gateway to send messages.

Before working with the email API you need to setup an account and register your sending email address in your account settings.

Then it is as simple as emailing <mobilenumber>@send.smsbroadcast.com.au. The first 160 characters of your message will then be sent in the SMS message

Our technical support staff can provide additional assistance implementing the email-to-sms service and configuring your software with the email API.

Code examples

Type Language Language
Send outgoing SMS [php] [C#]
Receive inbound SMS [php]
Receive message status [php]
Fetch credit balance [php]
<?php
    
function sendSMS($content) {
        
$ch curl_init('https://api.smsbroadcast.com.au/api-adv.php');
        
curl_setopt($chCURLOPT_POSTtrue);
        
curl_setopt($chCURLOPT_POSTFIELDS$content);
        
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
        
$output curl_exec ($ch);
        
curl_close ($ch);
        return 
$output;    
    }

    
$username 'USERNAME';
    
$password 'PASSWORD';
    
$destination '0400000000'//Multiple numbers can be entered, separated by a comma
    
$source    'MyCompany';
    
$text 'This is our test message.';
    
$ref 'abc123';
        
    
$content =  'username='.rawurlencode($username).
                
'&password='.rawurlencode($password).
                
'&to='.rawurlencode($destination).
                
'&from='.rawurlencode($source).
                
'&message='.rawurlencode($text).
                
'&ref='.rawurlencode($ref);
  
    
$smsbroadcast_response sendSMS($content);
    
$response_lines explode("\n"$smsbroadcast_response);
    
     foreach( 
$response_lines as $data_line){
        
$message_data "";
        
$message_data explode(':',$data_line);
        if(
$message_data[0] == "OK"){
            echo 
"The message to ".$message_data[1]." was successful, with reference ".$message_data[2]."\n";
        }elseif( 
$message_data[0] == "BAD" ){
            echo 
"The message to ".$message_data[1]." was NOT successful. Reason: ".$message_data[2]."\n";
        }elseif( 
$message_data[0] == "ERROR" ){
            echo 
"There was an error with this request. Reason: ".$message_data[1]."\n";
        }
    }
?>
<?php
    
function sendSMS($content) {
        
$ch curl_init('https://api.smsbroadcast.com.au/api-adv.php');
        
curl_setopt($chCURLOPT_POSTtrue);
        
curl_setopt($chCURLOPT_POSTFIELDS$content);
        
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
        
$output curl_exec ($ch);
        
curl_close ($ch);
        return 
$output;    
    }

    
$username 'USERNAME';
    
$password 'PASSWORD';
    
$action    'balance';
        
    
$content =  'username='.rawurlencode($username).
                
'&password='.rawurlencode($password).
                
'&action='.rawurlencode($action);
                  
    
$smsbroadcast_response sendSMS($content);
    
$smsbroadcast_response explode(':'$smsbroadcast_response);
    
    if(
$smsbroadcast_response[0] == "OK"){
        echo 
"SMS Broadcast balance is ".$smsbroadcast_response[1];
    }elseif( 
$smsbroadcast_response[0] == "ERROR" ){
        echo 
"There was an error with this request. Reason: ".$smsbroadcast_response[1]."\n";
    }
?>
<?php

$to 
$_GET["to"]; //The receiving mobile number
$from $_GET["from"]; //The sending mobile number
$message urldecode($_GET["message"]); //SMS content


// You may wish to log this information in a database

// Lets send an email with the message data
$email_message "Inbound SMS sent to $to.\nSent From: $from\nMessage: $message";
mail("email@example.com""Inbound SMS"$message"From: email@example.com");

?>
<?php

$mobile 
$_GET["to"]; //The receiving mobile number
$ref $_GET["ref"]; // Your reference number, if provided when sending
$smsref $_GET["smsref"]; // SMS Broadcast reference number
$status $_GET["status"]; // Message status

// You may wish to log this information in a database

// Lets send an email with the updated data
$message "Status update for SMS sent to $mobile.\nOur reference: $ref\nSMS Broadcast Reference: $smsref\nThe message status is now $status.";
mail("email@example.com""SMS Status Update"$message"From: email@example.com");

?>
using System.Net;
using System.IO;
WebClient client = new WebClient ();
client.Headers.Add ("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)");
client.QueryString.Add("username", "xxxx");
client.QueryString.Add("password", "xxxx");
client.QueryString.Add("to", "xxxx");
client.QueryString.Add("from", "xxxx");
client.QueryString.Add("message", "Hello World!");
client.QueryString.Add("ref", "123");
client.QueryString.Add("maxsplit", "1");
string baseurl ="http://api.smsbroadcast.com.au/api-adv.php";
Stream data = client.OpenRead(baseurl);
StreamReader reader = new StreamReader (data);
string s = reader.ReadToEnd ();
data.Close ();
reader.Close ();
return (s);

Fabian K

Very efficient service and syncs well with our app. Fantastic! Love it!

Troy M

API is easy to use, the Reporting function is helpful for diagnosing if the messages were sent.

Jenny P

Haven't fully integrated SMS Broadcast into our system yet but from what I heard, it sounds like it will help our business immensely! Thank you!

Gareth D

Simple to integrate, support is super fast. Works great in our situation using 2 way email to sms. Sms broadcast has features other providers don't have.

Matty a

This is the best and most reliable sms engine on the internet by far....

James S

Easy to use! Gets the job done! Integrates well with other platforms I use for my church. Worth checking out!

Sam S

easy to use and simple integration

Sunil B

Gr8 way to connect with customers. We have integrated it in our software and it works seamlessly.

Greg B

Integrated easily with super fast send rates. Very cost efficient with much better service than our previous supplier. A+

Jessica R

I use SMS Broadcast to integrate with my Infusionsoft campaigns, although it isn't the prettiest interface to work with and find your way around, support has been good and my integration worked on the first try. I'm now able to set and forget. (until it's time to buy more credits)

Hay c

I have been a software developer for MANAY years and I always hated COMPLEXITY!. Right now, I am in love with SMS Broadcast. Plain, simple & supportive. No high tech here is required as long as you know on how to invoke web service and that is all what you need. Good on you, SMS Broadcast and keep up a good work. Hay

Wayne M

Support has been super responsive with quick replies, good price, easy to use API to integrate into my existing scripts and appears to work well to date. So far no issues.

Will S

Integrates well with crm and streamlines some of our processes

Han Y

I found this company on Google, I chose to work with them because everything is straightforward. It's not fancy but VERY practical which is exactly what I need because I'm sick of dealing with companies that's all show no go. My app developers had been playing with the API side of things and they have wasted credits from my account. I was advised of this by the SMS Broadcast staff and they kindly refunded my credits without even me asking. You don't get this type of initiatives anywhere and I have been telling my friends about this company. Highly recommended.

Leigh A

The php setup was very straight forward and worked like a dream. The low rate of first purchase was also very much appreciated.

Darren S

SMS Broadcast was very easy to setup and integrates perfectly with my CRM. I have no hesitation recommending this service to others.

Sri C

Awesome Service. Very simple to use and you can implement it with in minutes.

Anonymous

Nearly nothing to setup, simple interface, almost instant delivery to 6000 users.

Chris H

Great Price. Easy to use API.

Anonymous

Easy to use and fit in perfectly with my CRM

Andrew B

Seamless integration & very easy to setup.

SMS broadcast

delivers to all Australian mobiles through on-shore connections