PHP code example of loevgaard / linkmobility-php-sdk
1. Go to this page and download the library: Download loevgaard/linkmobility-php-sdk 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/ */
loevgaard / linkmobility-php-sdk example snippets
Loevgaard\Linkmobility\Client;
use Loevgaard\Linkmobility\Request\PostMessageRequest;
use Loevgaard\Linkmobility\Response\BatchStatusResponse;
use Loevgaard\Linkmobility\ValueObject\Sender;
use Loevgaard\Linkmobility\ValueObject\Message;
use Loevgaard\Linkmobility\ValueObject\Recipient;
$request = new PostMessageRequest(new Sender('Sender'), new Message('Message'), [new Recipient('+4511223344')]);
$client = new Client('insert api key');
/** @var BatchStatusResponse $response */
$response = $client->request($request);
print_r($response);
bash
$ composer