For Documents, DocumentRevisions and Notes you can get information about attached file using Files::info() method.
Information about Document
$files = $client->files();
$result = $files->info('Document', '2f5d6dec-e1c5-e7c1-33f9-5a9119971946');
echo json_encode($result, JSON_PRETTY_PRINT);
4 "mimetype": "text\/plain",
- Note
- When getting information about a document, data for latest revision is returned
Information about Document revision
$files = $client->files();
$result = $files->info('DocumentRevision', 'e9a27ddb-8240-c9b5-83d6-5a911acc7334');
echo json_encode($result, JSON_PRETTY_PRINT);
4 "mimetype": "text\/plain",
Information about Note
$files = $client->files();
$result = $files->info('Note', 'a6821be0-5467-a2d8-8a55-5a911bcfc186');
echo json_encode($result, JSON_PRETTY_PRINT);
4 "mimetype": "text\/plain",