如何使用 boto3 连接到 mturk 沙箱
How to connect to mturk sandbox with boto3
如何指定 mTurk 沙箱主机。在 boto 中,这是通过连接完成的,但我在 boto3 API.
中没有看到
这是博托
connection = MTurkConnection(aws_access_key_id=AWS_ACCESS_KEY_ID,
aws_secret_access_key=AWS_SECRET_ACCESS_KEY,
host='mechanicalturk.sandbox.amazonaws.com')
来自 scottlobdell
我想通了
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
)
如何指定 mTurk 沙箱主机。在 boto 中,这是通过连接完成的,但我在 boto3 API.
中没有看到这是博托
connection = MTurkConnection(aws_access_key_id=AWS_ACCESS_KEY_ID,
aws_secret_access_key=AWS_SECRET_ACCESS_KEY,
host='mechanicalturk.sandbox.amazonaws.com')
来自 scottlobdell
我想通了
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
)