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
File get(String id);
Parameters
Parameter | Type | Description |
---|---|---|
id | String | The id of the File to get |
returns | File | The requested File |
Example
/*
* This example demonstrates getting a File by ID
*/
import org.catalytic.sdk.CatalyticClient;
import org.catalytic.sdk.entities.File;
public class Program {
public static void main(String[] args) throws Exception {
// Create and initialize the Catalytic SDK Client
CatalyticClient catalytic = new CatalyticClient();
// Get a specific File by id
File file = catalytic.files().get("e6df431b-1041-4326-89e5-1e14caa6a08f");
}
}
Updated almost 3 years ago