API Client files for Textplode
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
PHP Client
LICENSE
README.md

README.md

Textplode API v3

API Client files for Textplode

You first need to create an account at http://www.textplode.com and generate an API key in your user settings.

Documentation can be found at http://api.textplode.com/docs

Examples

Send to a Single Recipient

$textplode = new Textplode('API_KEY');

$textplode->messages->set_from("Textplode");
$textplode->messages->set_message("Hello and welcome to Textplode");

$textplode->messages->add_recipient('440000000000');

$textplode->messages->send();

Send to Multiple Recipients with Merge Data

```php $textplode = new Textplode('API_KEY');

$textplode->messages->set_from("Textplode"); $textplode->messages->set_message("Hello {FNAME} {LNAME}. Welcome to Textplode");

$merge_data1 = array( array('{FNAME}', 'Contact'), array('{LNAME}', 'One') ); $merge_data2 = array( array('{FNAME}', 'Contact'), array('{LNAME}', 'Two') );

$textplode->messages->add_recipient('440000000000', $merge_data1); $textplode->messages->add_recipient('440000000001', $merge_data2);

$textplode->messages->send();