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

ParameterTypeDescription
$idstringThe id of the File to get
returnsFileThe 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');