是否有 javascript API 来获取基于 ISBN 的图书摘要? [英] Is there a javascript API to get a book summary based on ISBN?

查看:22
本文介绍了是否有 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.

推荐答案

基于亚马逊的产品广告 API 文档:

Based on Amazon's Product Advertising API documentation:

您应该能够在没有身份验证的情况下使用以下请求提取图书的产品说明:

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天全站免登陆