我尝试使用Postman提供的API来获取我的Amazon Mechanical Turk沙盒帐户的帐户余额,但每次都会出现异常。
我尝试了各种可能的方式来获得响应。
POST HTTP / 1.1主机:mturk-requester-sandbox.us-east-1.amazonaws.com? 内容类型:application / json X-Amz-Target: MTurkRequesterServiceV20170117.GetAccountBalance操作: GetAccountBalance接受:application / hal + json X-Amz-Content-Sha256: 257c1be96ae69f4b01c2c69bdb6d78605f59175819fb007d0bf245bf48444c4a主机: mturk-requester-sandbox.us-east-1.amazonaws.com X-Amz-Date: 20190612T053022Z授权书:AWS4-HMAC-SHA256 凭证= AKIAIIT2JKB5H7NSAWDQ / 20190612 / us-east-1 / mturk-requester / aws4_request,SignedHeaders = accept; content-type; host; operation; x-amz-content-sha256; x-amz-date; x-amz-target, 签名= dc380b3192ee228f2b9f93e78739c4c7ff140546a5802143107174321fb38d2f 用户代理:PostmanRuntime / 7.13.0缓存控制:无缓存 邮递员令牌: 9a642aa6-8b86-4855-957c-fdb5a7b8b4d5,27c339fb-91e6-41f6-afeb-b7cc46536250 接受编码:gzip,压缩内容长度:3连接: 保持活动状态的缓存控制:无缓存
{}
这是我得到的例外,我应该收到包含帐户余额信息的回复。