SMS API Documentation

PHP

Send SMS using our PHP wrapper. We’ve done all the hard work creating the XML and making the HTTP request, you just need to write a few lines of code.

Download the PHP wrapper

Example

<?php
// Include the mediaburstSMS class library
include('mediaburstSMS.class.php');

try
{
    // Create a mediaburstSMS object using your username and password
    $sms = new mediaburstSMS('username', 'password');

    // Send a text message
    $result = $sms->Send('441234567890', 'Hello World');

    // Check if the send was successful
    if($result[0]['success']) {
        echo 'Message sent - ID: '.$result[0]['id'];
    } else {
        echo 'Message failed - Error: '.$result[0]['error_desc'];
    }
}
catch (mediaburstException $e)
{
    echo 'Exception sending SMS: '.$e->getMessage();
}
?>

Full documentation can be found on the GitHub page. If you have any questions get in touch.