Learn R Programming

MTurkR (version 0.6.17)

credentials: Specify MTurk/AWS Credentials

Description

Specify your Amazon Web Services (including MTurk) access credentials: (1) Access Key ID and (2) Secret Access Key. These are used to authenticate requests to the MTurk API and must be specified before any operations can be successfully performed by MTurkR.

Usage

credentials(keypair = NULL)

Arguments

keypair
A two-item character vector containing the AWS Access Key ID and AWS Secret Access Key, in that order

Value

  • 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.

Details

This is the first operation that needs to be performed before any MTurK API requests can be successfully performed in a given MTurkR session. The function simply stores the Access Key ID and the Secret Access Key as a two-item character vector in getOption('MTurkR.keypair'), which is called by default by all MTurkR operations. This operation can also be performed by loading MTurkR.Wizard, which prompts for the keypair the first time it loads in a given R session. A keypair can be generated via the AWS IAM management console (https://console.aws.amazon.com/iam/home?#security_credential). Note that previously generated secret keys cannot be retrieved.

Examples

Run this code
credentials(keypair=c("AKIAJFYYWO3EEXAMPLE","Bpyq5ZqpQGshEKfcfd8CwUXEXAMPLE/tD0oqYGvI"))

Run the code above in your browser using DataLab