Get all the bonuses you issued in Toloka.
Connect the Toloka-Kit library to your script.
import toloka.client as toloka
Replace the sample API key with your own one.
toloka_client = toloka.TolokaClient('PlaceYourRealApiKey_Here', 'PRODUCTION');
Iterate through all the bonuses calling the get_user_bonuses()
method.
for bonus in toloka_client.get_user_bonuses():
print(bonus.id, bonus.public_title.get('EN'), bonus.amount)
You should get an output with the bonus IDs, public titles, and amount which looks like this.
3139 Perfect job! 0.5003258 Completed much faster than others 1.000
import toloka.client as tolokatoloka_client = toloka.TolokaClient('PlaceYourRealApiKey_Here', 'PRODUCTION')for bonus in toloka_client.get_user_bonuses(): print(bonus.id, bonus.public_title.get('EN'), bonus.amount)
Last updated: February 7, 2023