Permalink
Switch branches/tags
Find file Copy path
829a26f Nov 6, 2017
3 contributors

Users who have contributed to this file

@leggetter @mheap @adambutler
15 lines (11 sloc) 407 Bytes
<?php
require_once __DIR__ . '/../config.php';
require_once __DIR__ . '/../vendor/autoload.php';
$basic = new \Nexmo\Client\Credentials\Basic(NEXMO_API_KEY, NEXMO_API_SECRET);
$client = new \Nexmo\Client($basic);
$message = $client->message()->send([
'to' => TO_NUMBER,
'from' => 'Acme Inc',
'text' => 'A text message sent using the Nexmo SMS API'
]);
var_dump($message->getResponseData());