Get a File
Get metadata for a File by ID.
Permissions Required
You must have View permissions to the field this file was uploaded to for this request to succeed
Method Signature
get(string $id): File
Parameters
Parameter | Type | Description |
---|---|---|
$id | string | The id of the File to get |
returns | File | The requested File |
Example
<?php
/*
* This example demonstrates getting a File's metadata by ID
*/
require_once(__DIR__ . '/vendor/autoload.php');
use Catalytic\SDK\CatalyticClient;
$catalytic = new CatalyticClient();
$file = $catalytic->files()->get('924cd388-addb-42f7-913e-24c9beb17635');
Updated almost 3 years ago