Get a User

Gets a User by ID, Email or Username.

Method Signature

get(string $identifier): User

Parameters

ParameterTypeDescription
$identifierstringThe ID, Email or Username of the User to get
returnsUserThe requested User
<?php

/*
 * This example demonstrates getting a User by Email
 */

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

use Catalytic\SDK\CatalyticClient;

$catalytic = new CatalyticClient();
$user = $catalytic->users()->get('[email protected]');