get_requester

toloka.client.TolokaClient.get_requester | Source code

get_requester(self)

Reads information about the customer and the account balance

  • Returns:

    Object that contains all information about customer.

  • Return type:

    Requester

Examples:

Make sure that you've entered a valid OAuth token.

toloka_client.get_requester()

You can also estimate approximate pipeline costs and check if there is enough money on your account.

requester = toloka_client.get_requester()
if requester.balance >= approx_pipeline_price:
print('You have enough money on your account!')
else:
print("You haven't got enough money on your account!")
Toloka-Kit
OverviewGetting OAuth tokenQuick start
Recipes
Reference
toloka.client
toloka.async_client
toloka.autoquality [autoquality]
toloka.metrics
toloka.streaming