PHP code example of bureaupieper / storee-php-client

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

    

bureaupieper / storee-php-client example snippets


$config = new Config(['apikey' => '1234', 'platform' => 'yourplatform']);

$client = new Client($config, \GuzzleHttp\Client $client = null, AbstractDriver $cacheDriver = null, Logger $logger = null);

$req = Client\Request\Factory::create('profile');
$result = $client->request($req);

$req = Client\Request\Factory::create('content/list', [
    'hotspot' => 'my-hotspot'
    'page' => 'my-page',
]);
$result = $client->request($req);

$stack = GuzzleHttp\HandlerStack::create();
$effectiveUrlMiddleware = new Bureaupieper\StoreeClientEffectiveUrlMiddleware();
$stack->push(GuzzleHttp\Middleware::mapRequest($effectiveUrlMiddleware));
$client = new GuzzleHttp\Client([
    'handler' => $stack
]);