1. Go to this page and download the library: Download sam152/roomlio-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/ */
sam152 / roomlio-sdk example snippets
use RoomlioSdk\EmbedApi\SecureEmbedCodePayloadGenerator;
use RoomlioSdk\EmbedApi\Room;
use RoomlioSdk\EmbedApi\CurrentUser;
$payloadGenerator = new SecureEmbedCodePayloadGenerator('hmac-secret');
$embedPayload = $payloadGenerator->singleRoom(new Room('key', 'Room Name'), new CurrentUser('uid-1', 'Jobe Taskman'));
var_export($embedPayload);
use RoomlioSdk\WebApi\WebApiClient;
use GuzzleHttp\Client;
$client = new WebApiClient('api-key', new Client());
$response = $client->roomHistory('room-key');
var_export($response->data);
while ($response->hasMore()) {
$response = $client->nextPage($response);
var_export($response->data);
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.