【发布时间】:2014-07-05 14:49:17
【问题描述】:
我正在尝试使用 GCM 在我的移动应用程序中实施 AWS 推送通知。作为向 AWS 注册 GCM 令牌的一部分,我正在尝试使用 API [CreatePlatformEndpoint] http://docs.aws.amazon.com/sns/latest/api/API_CreatePlatformEndpoint.html 使用 AWS 创建端点。作为计算签名的一部分,我关注以下网站
http://docs.aws.amazon.com/general/latest/gr/signature-version-2.html#API_SignatureSampleCode
我使用以下代码为 AWS 创建签名版本
http://docs.aws.amazon.com/AWSECommerceService/latest/DG/AuthJavaSampleSig2.html
我可以创建以下网址
这是我得到的回复。
<ErrorResponse xmlns="http://sns.amazonaws.com/doc/2010-03-31/">
<Error>
<Type>Sender</Type>
<Code>SignatureDoesNotMatch</Code>
<Message>
The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.
</Message>
</Error>
<RequestId>f00722e6-d9cb-5747-ab51-6ed62f2d6b75</RequestId>
</ErrorResponse>
有人可以指导错误是什么吗?
【问题讨论】:
标签: amazon-web-services amazon-sns