PHP code example of symplur / sdk

1. Go to this page and download the library: Download symplur/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/ */

    

symplur / sdk example snippets



Symplur\Api\Client;

$client = new Client($clientId, $clientSecret);

$data = $client->get('twitter/analytics/people/influencers', [
    'databases' => '#hcsm, #bcsm',
    'start' => '1 week ago',
    'end' => 'yesterday'
]);

$data = $client->get('foo/zat', [
	'offset' => 10,
	'limit' => 20
]);

$data = $client->patch('/foo/zat/12345', [
	'description' => 'Lorem ipsum dolor...'
]);