Get an Integration
Get an Integration and its associated Connections by ID.
Permissions Required
Only Connections for which you have View permissions will be included on the response.
Method Signature
get(string $id): Integration
Parameters
Parameter | Type | Description |
---|---|---|
$id | string | The id of the Integration to get |
returns | Integration | The requested Integration |
Example
<?php
/*
* This example demonstrates getting an Integration by ID
* and printing out the Integration's Connections
*/
require_once(__DIR__ . './vendor/autoload.php');
use Catalytic\SDK\CatalyticClient;
$catalytic = new CatalyticClient();
$integration = $catalytic->integrations()->get('dropbox/oauth2/v1');
echo $integration->getName() . ":" . PHP_EOL;
foreach ($integration->getConnections() as $connection) {
echo $connection->getName() . PHP_EOL;
}
Updated almost 4 years ago