带有 13 位 ISBN 的 Amazon AWS ItemLookup
我以前可以进行 13 位 ISBN 查找,但现在不能了。
以下是 13 位 ISBN 的查询:9780073380957。
http://ecs.amazonaws。 com/onca/xml?AWSAccessKeyId=&ItemId=9780073380957&Operation=ItemLookup&ResponseGroup=Images%2CItemAttributes&Service=AWSECommerceService&Timestamp=2009-12-16T14%3A30%3A02Z&Version=2009-06- 01&签名=
返回: f6770ab1-9b3e-48d3-9492-750e8d773c1b0.0053760000000000TrueNewShipASINAmazon19780073380957ImagesItemAttributes1-SubmissionDateAllAWS.InvalidParameterValue9780073380957 不是 ItemId 的有效值。请更改此值并重试您的请求。
但是,同一本书的 10 位 ISBN 有效:
http://ecs.amazonaws。 com/onca/xml?AWSAccessKeyId=&ItemId=0073380954&Operation=ItemLookup&ResponseGroup=Images%2CItemAttributes&Service=AWSECommerceService&Timestamp=2009-12-16T14%3A44%3A10Z&Version=2009-06- 01&Signature=
我正在使用 pyaws,如果这有什么区别的话。
I used to be able to do 13 digit ISBN lookups, but now I can't.
Here is the query for the 13-digit ISBN: 9780073380957.
http://ecs.amazonaws.com/onca/xml?AWSAccessKeyId=&ItemId=9780073380957&Operation=ItemLookup&ResponseGroup=Images%2CItemAttributes&Service=AWSECommerceService&Timestamp=2009-12-16T14%3A30%3A02Z&Version=2009-06-01&Signature=
Returns:
f6770ab1-9b3e-48d3-9492-750e8d773c1b0.0053760000000000TrueNewShipASINAmazon19780073380957ImagesItemAttributes1-SubmissionDateAllAWS.InvalidParameterValue9780073380957 is not a valid value for ItemId. Please change this value and retry your request.
However, the 10-digit ISBN for the same book works:
http://ecs.amazonaws.com/onca/xml?AWSAccessKeyId=&ItemId=0073380954&Operation=ItemLookup&ResponseGroup=Images%2CItemAttributes&Service=AWSECommerceService&Timestamp=2009-12-16T14%3A44%3A10Z&Version=2009-06-01&Signature=
I'm using pyaws, if that makes any difference.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明,我需要将 IdType 指定为“ISBN”,将 SearchIndex 指定为“Books”。
现在是工作查询:
http://ecs.amazonaws.com /onca/xml?AWSAccessKeyId=[my_key]&IdType=ISBN&ItemId=9780073380957&Operation=ItemLookup&ResponseGroup=Images%2CItemAttributes&SearchIndex=Books&Service=AWSECommerceService&Timestamp=2009-12-16T14%3A51%3A21Z&版本=2009-06-01&签名=[签名]
It turns out I need to specify IdType as 'ISBN' and SearchIndex as 'Books'.
Here is the working query now:
http://ecs.amazonaws.com/onca/xml?AWSAccessKeyId=[my_key]&IdType=ISBN&ItemId=9780073380957&Operation=ItemLookup&ResponseGroup=Images%2CItemAttributes&SearchIndex=Books&Service=AWSECommerceService&Timestamp=2009-12-16T14%3A51%3A21Z&Version=2009-06-01&Signature=[signature]