Get all the rewards you issued in Toloka.
Connect the Toloka-Kit library to your script.
import toloka.client as toloka
Replace the sample OAuth token with your own one.
toloka_client = toloka.('AQC2AGAJgyNSA8CtpdO9MWy_QEB6s6kDjHUoElE', 'PRODUCTION');
Iterate through all the rewards calling the get_user_bonuses()
method.
for bonus in toloka_client.():
print(bonus.id, bonus.public_title.get('EN'), bonus.amount)
You should get an output with the reward 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('AQC2AGAJgyNSA8CtpdO9MWy_QEB6s6kDjHUoElE', 'PRODUCTION')for bonus in toloka_client.get_user_bonuses(): print(bonus.id, bonus.public_title.get('EN'), bonus.amount)