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: 2024-04-05 23:10:53 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();
?>