Get the detailed information about 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 OAuth token with your own one.
toloka_client = toloka.('AQC2AGAJgyNSA8CtpdO9MWy_QEB6s6kDjHUoElE', 'PRODUCTION');
Find out the ID of the pool for which you want to get the detailed information. Then get this info calling the get_pool()
method.
pool = toloka_client.('36545959')
The get_pool()
request will return the Pool class object. You can use its attributes to print the information you need.
print(pool.private_name, pool.status, pool.last_close_reason)
You should get an output with the pool private name, status, and last close reason which looks like this.
Image classification Status.CLOSED CloseReason.NOT_ENOUGH_BALANCE
import toloka.client as tolokatoloka_client = toloka.TolokaClient('AQC2AGAJgyNSA8CtpdO9MWy_QEB6s6kDjHUoElE', 'PRODUCTION')pool = toloka_client.get_pool('36545959')print(pool.private_name, pool.status, pool.last_close_reason)