mturk function

Amazon Mechanical Turk

Amazon Mechanical Turk

Amazon Mechanical Turk API Reference

mturk(config = list(), credentials = list(), endpoint = NULL, region = NULL)

Arguments

  • config: Optional configuration of credentials, endpoint, and/or region.

    • credentials :

      • creds :

        • access_key_id : AWS access key ID
        • secret_access_key : AWS secret access key
        • session_token : AWS temporary session token
      • profile : The name of a profile to use. If not given, then the default profile is used.

      • anonymous : Set anonymous credentials.

    • endpoint : The complete URL to use for the constructed client.

    • region : The AWS Region used in instantiating the client.

    • close_connection : Immediately close all HTTP connections.

    • timeout : The time in seconds till a timeout exception is thrown when attempting to make a connection. The default is 60 seconds.

    • s3_force_path_style : Set this to true to force the request to use path-style addressing, i.e. http://s3.amazonaws.com/BUCKET/KEY.

    • sts_regional_endpoint : Set sts regional endpoint resolver to regional or legacy https://docs.aws.amazon.com/sdkref/latest/guide/feature-sts-regionalized-endpoints.html

  • credentials: Optional credentials shorthand for the config parameter

    • creds :

      • access_key_id : AWS access key ID
      • secret_access_key : AWS secret access key
      • session_token : AWS temporary session token
    • profile : The name of a profile to use. If not given, then the default profile is used.

    • anonymous : Set anonymous credentials.

  • endpoint: Optional shorthand for complete URL to use for the constructed client.

  • region: Optional shorthand for AWS Region used in instantiating the client.

Returns

A client for the service. You can call the service's operations using syntax like svc$operation(...), where svc is the name you've assigned to the client. The available operations are listed in the Operations section.

Service syntax

svc <- mturk(
  config = list(
    credentials = list(
 creds = list(
   access_key_id = "string",
   secret_access_key = "string",
   session_token = "string"
 ),
 profile = "string",
 anonymous = "logical"
    ),
    endpoint = "string",
    region = "string",
    close_connection = "logical",
    timeout = "numeric",
    s3_force_path_style = "logical",
    sts_regional_endpoint = "string"
  ),
  credentials = list(
    creds = list(
 access_key_id = "string",
 secret_access_key = "string",
 session_token = "string"
    ),
    profile = "string",
    anonymous = "logical"
  ),
  endpoint = "string",
  region = "string"
)

Operations

accept_qualification_requestThe AcceptQualificationRequest operation approves a Worker's request for a Qualification
approve_assignmentThe ApproveAssignment operation approves the results of a completed assignment
associate_qualification_with_workerThe AssociateQualificationWithWorker operation gives a Worker a Qualification
create_additional_assignments_for_hitThe CreateAdditionalAssignmentsForHIT operation increases the maximum number of assignments of an existing HIT
create_hitThe CreateHIT operation creates a new Human Intelligence Task (HIT)
create_hit_typeThe CreateHITType operation creates a new HIT type
create_hit_with_hit_typeThe CreateHITWithHITType operation creates a new Human Intelligence Task (HIT) using an existing HITTypeID generated by the CreateHITType operation
create_qualification_typeThe CreateQualificationType operation creates a new Qualification type, which is represented by a QualificationType data structure
create_worker_blockThe CreateWorkerBlock operation allows you to prevent a Worker from working on your HITs
delete_hitThe DeleteHIT operation is used to delete HIT that is no longer needed
delete_qualification_typeThe DeleteQualificationType deletes a Qualification type and deletes any HIT types that are associated with the Qualification type
delete_worker_blockThe DeleteWorkerBlock operation allows you to reinstate a blocked Worker to work on your HITs
disassociate_qualification_from_workerThe DisassociateQualificationFromWorker revokes a previously granted Qualification from a user
get_account_balanceThe GetAccountBalance operation retrieves the Prepaid HITs balance in your Amazon Mechanical Turk account if you are a Prepaid Requester
get_assignmentThe GetAssignment operation retrieves the details of the specified Assignment
get_file_upload_urlThe GetFileUploadURL operation generates and returns a temporary URL
get_hitThe GetHIT operation retrieves the details of the specified HIT
get_qualification_scoreThe GetQualificationScore operation returns the value of a Worker's Qualification for a given Qualification type
get_qualification_typeThe GetQualificationTypeoperation retrieves information about a Qualification type using its ID
list_assignments_for_hitThe ListAssignmentsForHIT operation retrieves completed assignments for a HIT
list_bonus_paymentsThe ListBonusPayments operation retrieves the amounts of bonuses you have paid to Workers for a given HIT or assignment
list_hi_tsThe ListHITs operation returns all of a Requester's HITs
list_hi_ts_for_qualification_typeThe ListHITsForQualificationType operation returns the HITs that use the given Qualification type for a Qualification requirement
list_qualification_requestsThe ListQualificationRequests operation retrieves requests for Qualifications of a particular Qualification type
list_qualification_typesThe ListQualificationTypes operation returns a list of Qualification types, filtered by an optional search term
list_reviewable_hi_tsThe ListReviewableHITs operation retrieves the HITs with Status equal to Reviewable or Status equal to Reviewing that belong to the Requester calling the operation
list_review_policy_results_for_hitThe ListReviewPolicyResultsForHIT operation retrieves the computed results and the actions taken in the course of executing your Review Policies for a given HIT
list_worker_blocksThe ListWorkersBlocks operation retrieves a list of Workers who are blocked from working on your HITs
list_workers_with_qualification_typeThe ListWorkersWithQualificationType operation returns all of the Workers that have been associated with a given Qualification type
notify_workersThe NotifyWorkers operation sends an email to one or more Workers that you specify with the Worker ID
reject_assignmentThe RejectAssignment operation rejects the results of a completed assignment
reject_qualification_requestThe RejectQualificationRequest operation rejects a user's request for a Qualification
send_bonusThe SendBonus operation issues a payment of money from your account to a Worker
send_test_event_notificationThe SendTestEventNotification operation causes Amazon Mechanical Turk to send a notification message as if a HIT event occurred, according to the provided notification specification
update_expiration_for_hitThe UpdateExpirationForHIT operation allows you update the expiration time of a HIT
update_hit_review_statusThe UpdateHITReviewStatus operation updates the status of a HIT
update_hit_type_of_hitThe UpdateHITTypeOfHIT operation allows you to change the HITType properties of a HIT
update_notification_settingsThe UpdateNotificationSettings operation creates, updates, disables or re-enables notifications for a HIT type
update_qualification_typeThe UpdateQualificationType operation modifies the attributes of an existing Qualification type, which is represented by a QualificationType data structure

Examples

## Not run: svc <- mturk() svc$accept_qualification_request( Foo = 123 ) ## End(Not run)
  • Maintainer: Dyfan Jones
  • License: Apache License (>= 2.0)
  • Last published: 2025-03-17