Learn R Programming

MTurkR (version 0.5.1)

GenerateExternalQuestion: Generate ExternalQuestion

Description

Generate an ExternalQuestion data structure for use in the Question parameter of the CreateHIT operation.

Usage

GenerateExternalQuestion(url, frame.height)

Arguments

url
A character string containing the URL (served over HTTPS) of a HIT file stored anywhere other than the MTurk server.
frame.height
A character string containing the integer value (in pixels) of the frame height for the ExternalQuestion iframe.

Value

  • A character string containing a URL query parameter-formatted ExternalQuestion data structure.

Details

An ExternalQuestion is a HIT stored anywhere other than the MTurk server that is displayed to workers within an HTML iframe of the specified height. The URL should point to a page --- likely an HTML form --- that can retrieve several URL GET parameters for AssignmentId and WorkerId, which are attached by MTurk when opening the URL. The page should also be able to submit those parameters plus any assignment data to https://www.mturk.com/mturk/externalSubmit using either the HTTP GET or POST methods. Note: url must be HTTPS. See http://en.wikipedia.org/wiki/HTTP_Secure{Wikipedia:HTTP Secure} for details.

References

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

See Also

CreateHIT GenerateHITLayoutParameter

Examples

Run this code
GenerateExternalQuestion(url="http://www.example.com/myhit.html",frame.height="400")

Run the code above in your browser using DataLab