toloka.client.TolokaClient.find_user_skills
| Source code
Finds Toloker's skills that match certain criteria.
The number of returned Toloker's skills is limited. To find remaining skills call find_user_skills
with updated search criteria.
To iterate over all matching skills you may use the get_user_skills method.
Parameters | Type | Description |
---|---|---|
user_id | Optional[str] | The ID of a Toloker. |
skill_id | Optional[str] | The ID of a skill. |
id_lt | Optional[str] | Skills with IDs less than the specified value. |
id_lte | Optional[str] | Skills with IDs less than or equal to the specified value. |
id_gt | Optional[str] | Skills with IDs greater than the specified value. |
id_gte | Optional[str] | Skills with IDs greater than or equal to the specified value. |
created_lt | Optional[datetime] | Skills created before the specified date. |
created_lte | Optional[datetime] | Skills created before or on the specified date. |
created_gt | Optional[datetime] | Skills created after the specified date. |
created_gte | Optional[datetime] | Skills created on or after the specified date. |
modified_lt | Optional[datetime] | Skills that changed before the specified date. |
modified_lte | Optional[datetime] | Skills that changed before the specified date. |
modified_gt | Optional[datetime] | Skills changed after the specified date. |
modified_gte | Optional[datetime] | Skills created on or after the specified date. |
sort | Union[List[str], UserSkillSortItems, None] | Sorting options. Default: |
limit | Optional[int] | Returned skills limit. The maximum allowed value: 1000. |
Returns:
Found Toloker's skills and a flag showing whether there are more matching skills exceeding the limit.
Return type:
Examples:
Getting a list of skills that a Toloker has.
find_result = toloka_client.find_user_skills(user_id='fac97860c7929add8048ed2ef63b66fd')skills = find_result.items
Getting a list of Tolokers who have a certain skill.
find_result = toloka_client.find_user_skills(skill_id='11294')skills = find_result.items
If there are skills exceeding the limit
, then find_result.has_more
is set to True
.
Last updated: August 28, 2023