PHP code example of msgly-official / msgly-sdk-php
1. Go to this page and download the library: Download msgly-official/msgly-sdk-php library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
msgly-official / msgly-sdk-php example snippets
use Msgly\MsglyClient;
use Msgly\Exceptions\MsglyException;
$msgly = new MsglyClient([
'base_url' => 'https://api.msgly.id', // Optional, defaults to https://api.msgly.id
'client_id' => 'YOUR_CLIENT_ID',
'client_secret' => 'YOUR_CLIENT_SECRET',
]);