MTurkR icon indicating copy to clipboard operation
MTurkR copied to clipboard

APIs are being deprecated

Open leeper opened this issue 6 years ago • 1 comments

Looks like AWS finally deprecated all the APIs. Everything will break irreparably. If anyone wants to fix, it’s probably best to start from scratch on top of aws.signature given the current API version requires signature v4. https://blog.mturk.com/older-versions-of-the-mturk-requester-api-to-be-deprecated-beginning-june-1st-2019-9fcc9791fa18

leeper avatar Apr 03 '19 15:04 leeper

Hi,

With the legacy API being deprecated in about a week, does anyone have example code of how to do basic mturk calls in R with aws.signature package? (e.g. createhit, getassignments)

I'm trying to form a canonical request and send it somehow but I'm not getting anywhere:

library(aws.signature) hdrs <- list( Host = "mturk-requester.us-east-1.amazonaws.com", x-amz-date = "20110909T233600Z" ) hdrs

r <- canonical_request(verb = "POST", canonical_uri="/", query_args=list(), canonical_headers=hdrs, request_body=' { "AssignmentId": "3ZURAPD288NZQKK965W2FVL02P6F17" }') r

I just need to get a few API calls running from R so a template of how to do that in R would be great if anyone has that to share. Thanks!

matthewryansisco avatar May 22 '19 17:05 matthewryansisco