Get all the Toloker responses present in the pool with the ID specified in the request.
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 Toloker responses present in the pool with the ID specified in the request calling the get_assignments()
method.
for assignment in toloka_client.get_assignments(pool_id='1085757'):
print(assignment.id, assignment.status)
You should get an output with the response IDs and statuses which looks like this.
000015fccc--63bfc4c358d7a46c32a7b233 Status.ACCEPTED000015fccc--63bfc4e0ed43982367a5ad46 Status.REJECTED000015fccc--63bfc4ea99e537000bac4015 Status.SUBMITTED
import toloka.client as tolokatoloka_client = toloka.TolokaClient('PlaceYourRealApiKey_Here', 'PRODUCTION')for assignment in toloka_client.get_assignments(pool_id='1085757'): print(assignment.id, assignment.status)
Last updated: February 7, 2023