Get list of all rewards issued

Get all the rewards you issued in Toloka.

Steps to follow

1. Import Toloka-Kit

Connect the Toloka-Kit library to your script.

import toloka.client as toloka

2. Instantiate TolokaClient

Replace the sample OAuth token with your own one.

toloka_client = toloka.

3. Print reward IDs, public titles, and amount

Iterate through all the rewards calling the get_user_bonuses() method.

for bonus in toloka_client.

print(, 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.500
3258 Completed much faster than others 1.000

Complete code: Get list of all rewards issued

import toloka.client as toloka
toloka_client = toloka.TolokaClient('AQC2AGAJgyNSA8CtpdO9MWy_QEB6s6kDjHUoElE', 'PRODUCTION')
for bonus in toloka_client.get_user_bonuses():
print(, bonus.public_title.get('EN'), bonus.amount)
List of classes and methods used in this recipe

See also

OverviewGetting OAuth tokenQuick start
toloka.autoquality [autoquality]