Skip to content
This repository has been archived by the owner on May 24, 2019. It is now read-only.

APIs are being deprecated #131

Open
leeper opened this issue Apr 3, 2019 · 1 comment
Open

APIs are being deprecated #131

leeper opened this issue Apr 3, 2019 · 1 comment

Comments

@leeper
Copy link
Member

leeper commented Apr 3, 2019

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 leeper mentioned this issue Apr 3, 2019
@matthewryansisco
Copy link

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
2 participants