File "message-view.php"

Full Path: /home/trinadezambia/public_html/gambling/vendor/messagebird/php-rest-api/examples/message-view.php
File size: 491 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

require_once(__DIR__ . '/../autoload.php');

$messageBird = new \MessageBird\Client('YOUR_ACCESS_KEY'); // Set your own API access key here.

try {
    $messageResult = $messageBird->messages->read('ad86c8c0153a194a59a17e2b71578856'); // Set a message id here
    var_dump($messageResult);
} catch (\MessageBird\Exceptions\AuthenticateException $e) {
    // That means that your accessKey is unknown
    echo 'wrong login';
} catch (\Exception $e) {
    var_dump($e->getMessage());
}