Get Access Token
Get a specific Access Token by ID. Note that the returned Access Token will include other metadata but will not include the secret, and therefore cannot be used to authenticate SDK requests. The secret is only available when you first create a new Access Token because Catalytic does not store the Access Token's secret. As a security measure, only a hash of the secret is stored.
Permissions Required
You can only get metadata for Access Tokens that you created, unless you are a team administrator. Team admins can get metadata for all Access Tokens on your Catalytic team.
Method Signature
get(string $id): AccessToken
Parameters
Parameter | Type | Description |
---|---|---|
$id | string | The id of the Access Token to get |
_returns | AccessToken | The requested Access Token |
Example
<?php
/*
* This example demonstrates getting an Access Token by ID
*/
require_once(__DIR__ . '/vendor/autoload.php');
use Catalytic\SDK\CatalyticClient;
$catalytic = new CatalyticClient();
$accessToken = $catalytic->accessTokens()->get('114c0d7d-c291-4ad2-a10d-68c5dd532af3');
Updated over 2 years ago