The GetQualificationScore operation returns the value of a Worker's Qualification for a given Qualification type.
To get a Worker's Qualification, you must know the Worker's ID. The Worker's ID is included in the assignment data returned by the ListAssignmentsForHIT operation.
Only the owner of a Qualification type can query the value of a Worker's Qualification of that type.
Parameters:
-
qualification_type_id
(EntityId)
–
The ID of the QualificationType.
-
worker_id
(CustomerId)
–
The ID of the Worker whose Qualification is being updated.
Raises:
Source code in docs_src/capo_mturk/_services/async_m_turk.py
| async def get_qualification_score(
self,
qualification_type_id: "capo_mturk.types.entity_id.EntityId",
worker_id: "capo_mturk.types.customer_id.CustomerId",
*,
config_overrides: Optional[AsyncMTurkClientConfig] = None,
) -> "capo_mturk.types.get_qualification_score_response.GetQualificationScoreResponse":
"""<p> The <code>GetQualificationScore</code> operation returns the value of a Worker's Qualification for a given Qualification type. </p> <p> To get a Worker's Qualification, you must know the Worker's ID. The Worker's ID is included in the assignment data returned by the <code>ListAssignmentsForHIT</code> operation. </p> <p>Only the owner of a Qualification type can query the value of a Worker's Qualification of that type.</p>
Args:
qualification_type_id: <p>The ID of the QualificationType.</p>
worker_id: <p>The ID of the Worker whose Qualification is being updated.</p>
Raises:
capo_mturk.errors.request_error.RequestError: <p>Your request is invalid.</p>
capo_mturk.errors.service_fault.ServiceFault: <p>Amazon Mechanical Turk is temporarily unable to process your request. Try your call again.</p>
capo_mturk.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_mturk.types.get_qualification_score_request.GetQualificationScoreRequest]",
) -> AsyncOperationResponse[
"capo_mturk.types.get_qualification_score_response.GetQualificationScoreResponse"
]:
import capo_mturk._operations.m_turk_requester_service_v20170117.get_qualification_score
(
output,
http_response,
) = await capo_mturk._operations.m_turk_requester_service_v20170117.get_qualification_score.async_get_qualification_score(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetQualificationScore")
)
input_: capo_mturk.types.get_qualification_score_request.GetQualificationScoreRequest = {
"qualification_type_id": qualification_type_id,
"worker_id": worker_id,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|