Retrieve a 3D file

async AsyncCogniteClient.three_d.files.retrieve(id: int) bytes

Retrieve the contents of a 3d file by id.

Parameters:

id (int) – The id of the file to retrieve.

Returns:

The contents of the file.

Return type:

bytes

Example

Retrieve the contents of a 3d file by id:

>>> from cognite.client import CogniteClient, AsyncCogniteClient
>>> client = CogniteClient()
>>> # async_client = AsyncCogniteClient()  # another option
>>> res = client.three_d.files.retrieve(1)