Learn R Programming

MTurkR (version 0.2)

GrantQualification: Grant Qualification Request

Description

Grant a Worker's request for a Qualification.

Usage

GrantQualification(	qual.requests, values, 
					keypair = credentials(), print = TRUE, browser = FALSE, 
					log.requests = TRUE, sandbox = FALSE)

Arguments

qual.requests
A character string containing a QualificationRequestId (for example, returned by GetQualificationRequests), or a vector of QualificationRequestIds.
values
A character string containing the value of the Qualification to be assigned to the worker, or a vector of values of length equal ot hte number of QualificationRequests.
keypair
A two-item character vector containing an AWS Access Key ID in the first position and the corresponding Secret Access Key in the second position. Set default with credentials.
print
Optionally print the results of the API request to the standard output. Default is TRUE.
browser
Optionally open the request in the default web browser, rather than opening in R. Default is FALSE.
log.requests
A logical specifying whether API requests should be logged. Default is TRUE. See readlogfile for details.
sandbox
Optionally execute the request in the MTurk sandbox rather than the live server. Default is FALSE.

Value

  • A dataframe containing the QualificationRequestId and whether each request was valid.

Details

Qualifications are publicly visible to workers on the MTurk website and workers can request Qualifications (e.g., when a HIT requires a QualificationType that they have not been assigned). QualificationRequests can be retrieved via GetQualificationRequests. This function grants specified qualification requests. Requests can be rejected with RejectQualifications. GrantQualifications() and grantqual() are aliases.

References

http://docs.amazonwebservices.com/AWSMechTurk/latest/AWSMturkAPI/ApiReference_GrantQualificationOperation.html{API Reference}

See Also

GetQualificationRequests RejectQualification

Examples

Run this code
GrantQualification("2YCIA0RYNJ9262B1D82MPTUEXAMPLE","100")

Run the code above in your browser using DataLab