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

ParameterTypeDescription
$filterFilterThe filter criteria to search by, or null to fetch all Integrations.
$pageTokenstringThe token of the page to fetch
$pageSizeintThe number of Integrations to return per page
returnsIntegrationsPageThe requested page of Integrations

You can search for matches among the following attributes of the Where class.

NameTypeDescription
textstringMatch against the Integration's Name
returnsIntegrationsPageThe 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;
}