Class: AWS.MTurk
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.MTurk
- Identifier:
- mturk
- API Version:
- 2017-01-17
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Sending a Request Using MTurk
var mturk = new AWS.MTurk();
mturk.acceptQualificationRequest(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the MTurk object uses this specific API, you can
construct the object by passing the apiVersion option to the constructor:
var mturk = new AWS.MTurk({apiVersion: '2017-01-17'});
You can also set the API version globally in AWS.config.apiVersions using
the mturk service identifier:
AWS.config.apiVersions = {
mturk: '2017-01-17',
// other service API versions
};
var mturk = new AWS.MTurk();
Constructor Summary collapse
-
new AWS.MTurk(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
acceptQualificationRequest(params = {}, callback) ⇒ AWS.Request
The
AcceptQualificationRequestoperation approves a Worker's request for a Qualification. -
approveAssignment(params = {}, callback) ⇒ AWS.Request
The
ApproveAssignmentoperation approves the results of a completed assignment. -
associateQualificationWithWorker(params = {}, callback) ⇒ AWS.Request
The
AssociateQualificationWithWorkeroperation gives a Worker a Qualification. -
createAdditionalAssignmentsForHIT(params = {}, callback) ⇒ AWS.Request
The
CreateAdditionalAssignmentsForHIToperation increases the maximum number of assignments of an existing HIT. -
createHIT(params = {}, callback) ⇒ AWS.Request
The
CreateHIToperation creates a new Human Intelligence Task (HIT). -
createHITType(params = {}, callback) ⇒ AWS.Request
The
CreateHITTypeoperation creates a new HIT type. -
createHITWithHITType(params = {}, callback) ⇒ AWS.Request
The
CreateHITWithHITTypeoperation creates a new Human Intelligence Task (HIT) using an existing HITTypeID generated by theCreateHITTypeoperation. -
createQualificationType(params = {}, callback) ⇒ AWS.Request
The
CreateQualificationTypeoperation creates a new Qualification type, which is represented by aQualificationTypedata structure. -
createWorkerBlock(params = {}, callback) ⇒ AWS.Request
The
CreateWorkerBlockoperation allows you to prevent a Worker from working on your HITs. -
deleteHIT(params = {}, callback) ⇒ AWS.Request
The
DeleteHIToperation is used to delete HIT that is no longer needed. -
deleteQualificationType(params = {}, callback) ⇒ AWS.Request
The
DeleteQualificationTypedeletes a Qualification type and deletes any HIT types that are associated with the Qualification type. -
deleteWorkerBlock(params = {}, callback) ⇒ AWS.Request
The
DeleteWorkerBlockoperation allows you to reinstate a blocked Worker to work on your HITs. -
disassociateQualificationFromWorker(params = {}, callback) ⇒ AWS.Request
The
DisassociateQualificationFromWorkerrevokes a previously granted Qualification from a user. -
getAccountBalance(params = {}, callback) ⇒ AWS.Request
The
GetAccountBalanceoperation retrieves the Prepaid HITs balance in your Amazon Mechanical Turk account if you are a Prepaid Requester. -
getAssignment(params = {}, callback) ⇒ AWS.Request
The
GetAssignmentoperation retrieves the details of the specified Assignment. -
getFileUploadURL(params = {}, callback) ⇒ AWS.Request
The
GetFileUploadURLoperation generates and returns a temporary URL. -
getHIT(params = {}, callback) ⇒ AWS.Request
The
GetHIToperation retrieves the details of the specified HIT. -
getQualificationScore(params = {}, callback) ⇒ AWS.Request
The
GetQualificationScoreoperation returns the value of a Worker's Qualification for a given Qualification type. -
getQualificationType(params = {}, callback) ⇒ AWS.Request
The
GetQualificationTypeoperation retrieves information about a Qualification type using its ID. -
listAssignmentsForHIT(params = {}, callback) ⇒ AWS.Request
The
ListAssignmentsForHIToperation retrieves completed assignments for a HIT. -
listBonusPayments(params = {}, callback) ⇒ AWS.Request
The
ListBonusPaymentsoperation retrieves the amounts of bonuses you have paid to Workers for a given HIT or assignment. -
listHITs(params = {}, callback) ⇒ AWS.Request
The
ListHITsoperation returns all of a Requester's HITs. -
listHITsForQualificationType(params = {}, callback) ⇒ AWS.Request
The
ListHITsForQualificationTypeoperation returns the HITs that use the given Qualification type for a Qualification requirement. -
listQualificationRequests(params = {}, callback) ⇒ AWS.Request
The
ListQualificationRequestsoperation retrieves requests for Qualifications of a particular Qualification type. -
listQualificationTypes(params = {}, callback) ⇒ AWS.Request
The
ListQualificationTypesoperation returns a list of Qualification types, filtered by an optional search term. -
listReviewableHITs(params = {}, callback) ⇒ AWS.Request
The
ListReviewableHITsoperation retrieves the HITs with Status equal to Reviewable or Status equal to Reviewing that belong to the Requester calling the operation. -
listReviewPolicyResultsForHIT(params = {}, callback) ⇒ AWS.Request
The
ListReviewPolicyResultsForHIToperation retrieves the computed results and the actions taken in the course of executing your Review Policies for a given HIT. -
listWorkerBlocks(params = {}, callback) ⇒ AWS.Request
The
ListWorkersBlocksoperation retrieves a list of Workers who are blocked from working on your HITs..
-
listWorkersWithQualificationType(params = {}, callback) ⇒ AWS.Request
The
ListWorkersWithQualificationTypeoperation returns all of the Workers that have been associated with a given Qualification type. -
notifyWorkers(params = {}, callback) ⇒ AWS.Request
The
NotifyWorkersoperation sends an email to one or more Workers that you specify with the Worker ID. -
rejectAssignment(params = {}, callback) ⇒ AWS.Request
The
RejectAssignmentoperation rejects the results of a completed assignment. -
rejectQualificationRequest(params = {}, callback) ⇒ AWS.Request
The
RejectQualificationRequestoperation rejects a user's request for a Qualification. -
sendBonus(params = {}, callback) ⇒ AWS.Request
The
SendBonusoperation issues a payment of money from your account to a Worker. -
sendTestEventNotification(params = {}, callback) ⇒ AWS.Request
The
SendTestEventNotificationoperation causes Amazon Mechanical Turk to send a notification message as if a HIT event occurred, according to the provided notification specification. -
updateExpirationForHIT(params = {}, callback) ⇒ AWS.Request
The
UpdateExpirationForHIToperation allows you update the expiration time of a HIT. -
updateHITReviewStatus(params = {}, callback) ⇒ AWS.Request
The
UpdateHITReviewStatusoperation updates the status of a HIT. -
updateHITTypeOfHIT(params = {}, callback) ⇒ AWS.Request
The
UpdateHITTypeOfHIToperation allows you to change the HITType properties of a HIT. -
updateNotificationSettings(params = {}, callback) ⇒ AWS.Request
The
UpdateNotificationSettingsoperation creates, updates, disables or re-enables notifications for a HIT type. -
updateQualificationType(params = {}, callback) ⇒ AWS.Request
The
UpdateQualificationTypeoperation modifies the attributes of an existing Qualification type, which is represented by a QualificationType data structure.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, waitFor, setupRequestListeners, defineService
Constructor Details
new AWS.MTurk(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.
Property Details
Method Details
acceptQualificationRequest(params = {}, callback) ⇒ AWS.Request
The AcceptQualificationRequest operation approves a Worker's request for a Qualification.
Only the owner of the Qualification type can grant a Qualification request for that type.
A successful request for the AcceptQualificationRequest operation returns with no errors and an empty body.
approveAssignment(params = {}, callback) ⇒ AWS.Request
The ApproveAssignment operation approves the results of a completed assignment.
Approving an assignment initiates two payments from the Requester's Amazon.com account
-
The Worker who submitted the results is paid the reward specified in the HIT.
-
Amazon Mechanical Turk fees are debited.
If the Requester's account does not have adequate funds for these payments, the call to ApproveAssignment returns an exception, and the approval is not processed. You can include an optional feedback message with the approval, which the Worker can see in the Status section of the web site.
You can also call this operation for assignments that were previous rejected and approve them by explicitly overriding the previous rejection. This only works on rejected assignments that were submitted within the previous 30 days and only if the assignment's related HIT has not been deleted.
associateQualificationWithWorker(params = {}, callback) ⇒ AWS.Request
The AssociateQualificationWithWorker operation gives a Worker a Qualification. AssociateQualificationWithWorker does not require that the Worker submit a Qualification request. It gives the Qualification directly to the Worker.
You can only assign a Qualification of a Qualification type that you created (using the CreateQualificationType operation).
AssociateQualificationWithWorker does not affect any pending Qualification requests for the Qualification by the Worker. If you assign a Qualification to a Worker, then later grant a Qualification request made by the Worker, the granting of the request may modify the Qualification score. To resolve a pending Qualification request without affecting the Qualification the Worker already has, reject the request with the RejectQualificationRequest operation. createAdditionalAssignmentsForHIT(params = {}, callback) ⇒ AWS.Request
The CreateAdditionalAssignmentsForHIT operation increases the maximum number of assignments of an existing HIT.
To extend the maximum number of assignments, specify the number of additional assignments.
- HITs created with fewer than 10 assignments cannot be extended to have 10 or more assignments. Attempting to add assignments in a way that brings the total number of assignments for a HIT from fewer than 10 assignments to 10 or more assignments will result in an
AWS.MechanicalTurk.InvalidMaximumAssignmentsIncreaseexception. - HITs that were created before July 22, 2015 cannot be extended. Attempting to extend HITs that were created before July 22, 2015 will result in an
AWS.MechanicalTurk.HITTooOldForExtensionexception.
createHIT(params = {}, callback) ⇒ AWS.Request
The CreateHIT operation creates a new Human Intelligence Task (HIT). The new HIT is made available for Workers to find and accept on the Amazon Mechanical Turk website.
This operation allows you to specify a new HIT by passing in values for the properties of the HIT, such as its title, reward amount and number of assignments. When you pass these values to CreateHIT, a new HIT is created for you, with a new HITTypeID. The HITTypeID can be used to create additional HITs in the future without needing to specify common parameters such as the title, description and reward amount each time.
An alternative way to create HITs is to first generate a HITTypeID using the CreateHITType operation and then call the CreateHITWithHITType operation. This is the recommended best practice for Requesters who are creating large numbers of HITs.
CreateHIT also supports several ways to provide question data: by providing a value for the Question parameter that fully specifies the contents of the HIT, or by providing a HitLayoutId and associated HitLayoutParameters.
createHITType(params = {}, callback) ⇒ AWS.Request
The CreateHITType operation creates a new HIT type. This operation allows you to define a standard set of HIT properties to use when creating HITs. If you register a HIT type with values that match an existing HIT type, the HIT type ID of the existing type will be returned.
createHITWithHITType(params = {}, callback) ⇒ AWS.Request
The CreateHITWithHITType operation creates a new Human Intelligence Task (HIT) using an existing HITTypeID generated by the CreateHITType operation.
This is an alternative way to create HITs from the CreateHIT operation. This is the recommended best practice for Requesters who are creating large numbers of HITs.
CreateHITWithHITType also supports several ways to provide question data: by providing a value for the Question parameter that fully specifies the contents of the HIT, or by providing a HitLayoutId and associated HitLayoutParameters.