File: /home/bdedition/www/core/vendor/messagebird/php-rest-api/examples/message-list.php
<?php
require_once(__DIR__ . '/../autoload.php');
$messageBird = new \MessageBird\Client('YOUR_ACCESS_KEY'); // Set your own API access key here.
try {
$messageList = $messageBird->messages->getList(['offset' => 100, 'limit' => 30]);
var_dump($messageList);
} catch (\MessageBird\Exceptions\AuthenticateException $e) {
// That means that your accessKey is unknown
echo 'wrong login';
} catch (\Exception $e) {
var_dump($e->getMessage());
}