CreateHIT( hit.type = NULL, question = NULL, expiration, assignments = "1",
assignment.review.policy = NULL, hit.review.policy = NULL,
annotation = NULL, unique.request.token = NULL,
title = NULL, description = NULL, reward = NULL, duration = NULL, keywords = NULL,
auto.approval.delay = NULL, qual.req = NULL,
hitlayoutid = NULL, hitlayoutparameters = NULL,
response.group = NULL, keypair = credentials(), print = TRUE,
browser = FALSE, log.requests = TRUE, sandbox = FALSE)hitlayoutid and, optionally, hitlayoutparameters can be sseconds). Minimum of 30 seconds and maximum of 365 dseconds), before a submitted assignment is automatically granted. Maximum of 30 days.GenerateQualificationRequirement.GenerateHITLayoutParameter. Must be specified along with a hitlaycredentials.TRUE.FALSE.TRUE. See readlogfile for details.FALSE.ResponseGroup option.question parameter or, if a HIT template created in the Requester User Interface (RUI) is being used, the appropriate hitlayoutid can be specified. If the HIT template contains variable placeholders, then the hitlayoutparameters should also be specified.
When creating a ExternalQuestion HITs, the GenerateHITsFromTemplate function can emulate the HIT template functionality by converting a template .html file into a set of individual HIT .html files (that would also have to be uploaded to a web server) and executing CreateHIT for each of these external files with an appropriate ExternalQuestion data structure specified for the question parameter.
createhit() and create() are aliases.ExtendHIT
ExpireHIT
DisableHIT
DisposeHITa <- GenerateLayoutParameter("message","Text to display in HIT")
CreateHIT(hit.type="2FFNCWYB49F9BBJWA4SJUNST5OFSOW",
hitlayoutid="23ZGOOGQSCM61T1H5H9U0U00OQWFFU",
hitlayoutparameters=a)
b <- GenerateExternalQuestion("http://www.example.com/myhit.html","400")
CreateHIT(hit.type="2FFNCWYB49F9BBJWA4SJUNST5OFSOW", question=b)
CreateHIT(title="Survey",description="5 question survey",reward=".10",
duration=seconds(days=4),keywords="survey, questionnaire", question=b)Run the code above in your browser using DataLab