The Users client allows you to access your Users on your Catalytic team.

getGets a specific User by id, email or username
findSearch for Users by name, or get all users.

Quickstart Example


 * This example demonstrates listing all users

require_once(__DIR__ . '/vendor/autoload.php');

use Catalytic\SDK\CatalyticClient;
use Catalytic\SDK\Search\Where;

$catalytic = new CatalyticClient();

$where = (new Where())->text()->matches('alice');
$results = $catalytic->users()->find($where);
$users = $results->getUsers();

// Fetch all pages and push the users into $users
while (!empty($results->getNextPageToken())) {
    $results = $catalytic->users()->find($where, $results->getNextPageToken());
    $users = array_merge($users, $results->getUsers());