Find Integrations
Finds Integrations matching your criteria. The Integrations->find()
method supports a fluent style where you can chain together your search criteria.
Method Signature
find(Filter $filter = null, string $pageToken = null, int $pageSize = null): IntegrationsPage
Parameters
Parameter | Type | Description |
---|---|---|
$filter | Filter | The filter criteria to search by, or null to fetch all Integrations. |
$pageToken | string | The token of the page to fetch |
$pageSize | int | The number of Integrations to return per page |
returns | IntegrationsPage | The requested page of Integrations |
You can search for matches among the following attributes of the Where
class.
Name | Type | Description |
---|---|---|
text | string | Match against the Integration's Name |
returns | IntegrationsPage | The requested page of Integrations |
Example
<?php
/*
* This example demonstrates listing all Integrations
*/
require_once(__DIR__ . '/vendor/autoload.php');
use Catalytic\SDK\CatalyticClient;
$catalytic = new CatalyticClient();
$results = $catalytic->integrations()->find();
$integrations = $results->getIntegrations();
// Loop through all the pages of results
while (!empty($results->getNextPageToken())) {
$results = $catalytic->integrations()->find(null, $results->getNextPageToken());
$workflows = array_merge($integrations, $results->getIntegrations());
}
// $integrations now contains all integrations
foreach ($integrations as $integration) {
echo "integration " . $integration->getName() . PHP_EOL;
}
Updated almost 4 years ago