PHP code example of usedatabrew / stream-sdk-php

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

    

usedatabrew / stream-sdk-php example snippets




ataBrew\Sdk;
use DataBrew\Options;

$opts = new Options();
$opts->setApiKey("api-key");


$sdk = new Sdk($opts);
foreach ($sdk->subscribe("pipelineid")->responses() as $response) {
    echo "Response external PK: " . $response->getExternalPk() . "\n";
}



ataBrew\Sdk;
use DataBrew\Options;

$opts = new Options();
$opts->setApiKey("api-key");

$catalogId = 1;
$accounts = ["test"];


$sdk = new Sdk($opts);
$response = $sdk->addStripeConnectedAccounts($catalogId, $accounts);
var_dump($response);
bash
composer install usedatabrew/stream-sdk-php