“无效的服务参数”来自亚马逊产品广告 API
我正在开发一个与亚马逊产品广告 API 高度相关的网站。我们使用 CartCreate
操作将用户发送到 Amazon,将他们在我们网站上找到的图书添加到 Amazon.com 完成购买。
在过去两个小时左右的时间里,CartCreate
操作已停止对我们起作用。这是一个请求示例。
GET ecs.amazonaws.com/onca/xml?
AWSAccessKeyId=XXXXX
&AssociateTag=XXXXX
&Item.1.OfferListingId=ZtjdY2eWnf3lmAPcG%252FvpjeLlkWjkvzIx%252F83ChfeC%252Bb%252FKBTIH2o6A%252FAiDT6LFHA%252BgIge9llxK7AnvmFtz6qlpXqFBC2%252FHN09XTMbhXaBRdEDrxfL0znQIHj8BlJN%252B1%252F%252BQ634mTrEZCao%253D
&Item.1.Quantity=1
&MerchantId=All
&Operation=CartCreate
&Service=AWSECommerceService
&Timestamp=2011-01-11T23%3A58%3A05Z
&Version=2010-11-01
&Signature=DCNKITwBIvJHJiPFTFWTjJTPY763iM5v9J2FgJmnVaU%3D
直到太平洋标准时间下午 3:00 左右,此方法都运行良好。我将获得带有 Cart.PurchaseURL 参数的 XML 响应,以指导用户完成结帐。
现在,我得到了这样的信息:
<Errors>
<Error>
<Code>AWS.InvalidServiceParameter</Code>
<Message>The Service parameter is invalid. Please modify the Service parameter and retry.</Message>
</Error>
</Errors>
您可以看到 Service
参数包含在我的请求中。亚马逊在过去一小时内是否更改了 API,或者是否有一些我没有考虑到的新文档?非常感谢帮助,谢谢!
担
I'm working on a website that is highly tied to Amazon's Product Advertising API. We're using the CartCreate
operation to send our users over to Amazon to add books that they've found on our site over to Amazon.com to complete their purchase.
Over the last two hours or so, the CartCreate
operation has ceased to function for us. Here's an example request.
GET ecs.amazonaws.com/onca/xml?
AWSAccessKeyId=XXXXX
&AssociateTag=XXXXX
&Item.1.OfferListingId=ZtjdY2eWnf3lmAPcG%252FvpjeLlkWjkvzIx%252F83ChfeC%252Bb%252FKBTIH2o6A%252FAiDT6LFHA%252BgIge9llxK7AnvmFtz6qlpXqFBC2%252FHN09XTMbhXaBRdEDrxfL0znQIHj8BlJN%252B1%252F%252BQ634mTrEZCao%253D
&Item.1.Quantity=1
&MerchantId=All
&Operation=CartCreate
&Service=AWSECommerceService
&Timestamp=2011-01-11T23%3A58%3A05Z
&Version=2010-11-01
&Signature=DCNKITwBIvJHJiPFTFWTjJTPY763iM5v9J2FgJmnVaU%3D
This worked perfectly up until about 3:00pm PST. I would get an XML response with a Cart.PurchaseURL parameter to direct the user's to complete the checkout.
Now, I'm getting this:
<Errors>
<Error>
<Code>AWS.InvalidServiceParameter</Code>
<Message>The Service parameter is invalid. Please modify the Service parameter and retry.</Message>
</Error>
</Errors>
You can see that the Service
parameter is included in my request. Has Amazon changed the API over the last hour, or is there some new documentation that I'm not taking into account? Help is much appreciated, thanks!
Dan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论