我需要调用aws移动分析KIP的api(http://docs.aws.amazon.com/mobileanalytics/latest/ug/drs-querying-kpis-lifetime-count.html)但我仍然坚持应该如何传递此请求的标头。 我已经完成了他们的api参考。
调用此api的标头格式是什么?
答案 0 :(得分:1)
以下是我的一个请求的原始标题示例:
Host: mobileanalytics.us-east-1.amazonaws.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Firefox/45.0
Accept: application/hal+json
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
X-Amz-Date: 20161024T192952Z
X-Amz-Security-Token: INSERT_SECURITY_TOKEN
Authorization: AWS4-HMAC-SHA256 Credential=INSERT_CREDENTIAL/20161024/us-east-1/mobileanalytics/aws4_request, SignedHeaders=accept;host;x-amz-date;x-amz-security-token, Signature=INSERT_SIGNATURE
Connection: keep-alive
请务必加入Accept
标题:
Accept: application/hal+json