get_attachment

toloka.async_client.client.AsyncTolokaClient.get_attachment | Source code

async get_attachment(self, attachment_id: str)

Gets attachment metadata without downloading it

To download attachments as a file use "TolokaClient.download_attachment" method.

Parameters Description

ParametersTypeDescription
attachment_idstr

ID of attachment.

  • Returns:

    The attachment metadata read as a result.

  • Return type:

    Attachment

Examples:

Specify an attachment_id to get the information about any attachment object.

toloka_client.get_attachment(attachment_id='1')
Toloka-Kit
OverviewGetting OAuth tokenQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming