bokbasen/php-sdk-periscopedata

PHP Client for working with periscopedata

v1.0.1 2019-06-05 13:21 UTC

This package is not auto-updated.

Last update: 2020-10-23 06:49:49 UTC


README

PHP client for working with periscopedata API.

Simple client to work with periscopedata.com embed API. See https://doc.periscopedata.com/docv2/embed-api for details.

Code example showing same example as link above implemented in this client

<?php
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();
?>