How to connect to mturk sandbox using boto3

How to specify the host sandbox mTurk. In boto it was done with a connection, but I don't see it in the boto3 API.

this is boto

connection = MTurkConnection(aws_access_key_id=AWS_ACCESS_KEY_ID,
                         aws_secret_access_key=AWS_SECRET_ACCESS_KEY,
                         host='mechanicalturk.sandbox.amazonaws.com')

      

from scottlobdell

+3


source to share


1 answer


I understood that



endpoint_url = 'https://mturk-requester-sandbox.us-east-1.amazonaws.com'

# Uncomment this line to use in production
# endpoint_url = 'https://mturk-requester.us-east-1.amazonaws.com'

client = boto3.client('mturk',
    endpoint_url = endpoint_url
)

      

+7


source







All Articles