Find your pipeline public ID from the DataBrew platform. Go to https://app.databrew.tech/pipelines and find the pipeline you want to connect to. Open the details and press the “Connect to stream” button. You will find the public ID there
3
Third Step
Use the following code snippet to connect to the pipeline using the SDK:
Copy
composer install usedatabrew/stream-sdk-php
Copy
<?phprequire 'vendor/autoload.php';use DataBrew\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";}