PHP code example of bokbasen / php-sdk-periscopedata
1. Go to this page and download the library: Download bokbasen/php-sdk-periscopedata 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/ */
bokbasen / php-sdk-periscopedata example snippets
use Bokbasen\PeriscopeData\EmbedUrl;
$data = [
'dashboard' => 7863,
'embed' => 'v2',
'filters' => [
[
'name' => 'Filter1',
'value' => 'value1'
],
[
'name' => 'Filter2',
'value' => '1234'
]
]
];
$client = new EmbedUrl('e179017a-62b0-4996-8a38-e91aa9f1', $data);
$url = $client->getLink();