是否有JavaScript API可以根据ISBN获得书籍摘要? [英] Is there a javascript API to get a book summary based on ISBN?

查看:125
本文介绍了是否有JavaScript API可以根据ISBN获得书籍摘要?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在非常有限的环境中工作,因此我无法使用任何需要身份验证的API. https://openlibrary.org 上的API会很完美,但不能提供书摘.我需要做的就是从我通过的ISBN号中获取书籍摘要(类似于书籍的封底).

I'm working in a very limited environment and I cannot use any API that requires authentication. The API at https://openlibrary.org would be perfect, but it does not serve a book summary. All I need to do is get a book summary (akin to the back cover of a book) from an ISBN number that I pass.

我必须使用javascript,因为我只能访问客户端代码.

I have to use javascript because I only have access to the client-side code.

推荐答案

基于Amazon的产品广告API文档:

Based on Amazon's Product Advertising API documentation:

  • ItemLookup
  • EditorialReview Response Group

您应该能够在不进行身份验证的情况下,通过请求以下内容拉起一本书的产品说明:

You should be able to, without authentication, pull up the Product Description for a book using a request to:

http://webservices.amazon.com/onca/xml?
    Service=AWSECommerceService&
    AWSAccessKeyId=[AWS Access Key ID]&
    Operation=ItemLookup&
    ItemId=[ISBN]&
    IdType=ISBN&
    ResponseGroup=EditorialReview&
    Condition=All&
    Timestamp=[YYYY-MM-DDThh:mm:ssZ]&
    Signature=[Request Signature]

是的,您可能必须注册一个Amazon访问密钥,并且可能有适用于您的请求的速率限制,但这应该可以使您到达那里而无需维护用户身份验证会话.

Yes, you may have to sign up for an Amazon access key, and there may be rate-limiting which applies to your request, but this should get you there without maintaining a user authentication session.

这篇关于是否有JavaScript API可以根据ISBN获得书籍摘要?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆