baahrens / goodreads-api-node Goto Github PK
View Code? Open in Web Editor NEWGoodreads API wrapper for node.js
License: MIT License
Goodreads API wrapper for node.js
License: MIT License
I am building a web-app with this module, and during development, I get an error saying the fetch couldn't be completed because of CORS.
Is there a way to add "no-cors" to header for development? (So that I can test my code on localhost)
searchGroups not showing up on goodreads-api-node.es.js or goodreads-api-node.umd.js files, even after running npm update on the package.
Apologize in advance if this is a local issue for me.
In the README under OAuth authentication and methods the example says:
gr.initOauth(callbackURL);
when the call should be:
gr.initOAuth(callbackURL);
with a capital 'A'.
I am trying to use showBook API but it is returning nothing.
The issue is the URL returned by getRequestToken is invalid.
This is my code to getRequestToken.
const goodreads = require('goodreads-api-node'); const gr = goodreads(config.get('goodReads'), "https:\\\\www.wordsmaya.com"); gr.getRequestToken() .then(url => { console.log(url); });
And ourput printed is
https://goodreads.com/oauth/authorize?oauth_token=nVu0YBF8O51N2JWhC7n5w&oauth_callback=oob
How to get this working? My ultimate goal is to get a book details using isbn.
Hi there!
Great idea to create an API wrapper for goodreads!
Just wanted to ask, maybe I've missed it, but the wrapper doesn't seem to have a search books functionality does it...? If I want to search book by title or by ISBN for example... It doesn't allow to do something like that does it?
I just found searchAuthors in the source code but not found in the readme.
The API is documented here: https://www.goodreads.com/api/index#search.books
Any way to get details of a book? Each book has an id.
You can currently get the details (in XML)
https://www.goodreads.com/book/show/135479?format=xml&key=[developer-key]
where 135479 is good reads book id.
I'm having some issues using OAuth authentication and would appreciate any help you could provide. I keep getting the error initOAuth(): Warning: You have passed no callbackURL.
I'm using the same URL I've defined when I created my API keys.
var callbackURL = "http://127.0.0.1/goodreads";
const gr = goodreads(myCredentials, callbackURL);
app.get("/authenticate", function (req, res) {
gr.getRequestToken()
.then(url => {
console.log(url);
res.redirect(url);
}).catch(function () {
console.log("Promise Rejected");
});
});
When I call getAccessToken
, I get the error Invalid OAuth Request
from the Goodreads API.
Could someone verify if it's still possible to use this Node library with Goodreads OAuth?
any chance of getting it added back in?
`/**
Hi,
I'm currently trying to access a endpoint that is not define in your module. The current one that i'm trying to access is '/book/show/'(https://www.goodreads.com/book/show/50.xml?key=...) .
This would give access to single book search which has some advantages one of them would be the language_code node for book.
Can you please add it or can i try and add it ?
Best Regards,
zapo
Hello,
The latest published version of your package isn't working because of a regression introduced in 71f48f5, where seriesWorkIsIn
got renamed to getSeriesByWork
, but not all references to it were properly updated.
Thank you for this project!
I cannot access anything
I'm learning AngularJS and am trying to figure out how to use your API. I'm used to having something like:
import { Module } from 'goodreads-api-node"
and then plugging in an import or provider in the below piece of code.
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
FormsModule,
HttpModule
],
providers: [],
Could you help me with this?
Many thanks,
Tessa
I don't suppose you have any plans to create a type script package?
I'm trying to use gr.addBookToShelf()
by keeping getting the error You have not passed shelfName
. I used the default shelf, read and have tried other shelves such as to-read but the promise keeps being rejected.
I noticed there was a small typo in the readme. It should be gr.addBookToShelf()
rather than gr.addBooksToShelf()
which caught me out.
app.get('/book/add', function (req, res) {
var addbook = gr.addBookToShelf({
bookID: req.query.id,
shelfName: "read"
});
addbook.then(function (result) {
console.log(result);
res.redirect("/");
}).catch(function (err) {
console.log("Adding book rejected" + err);
});
});
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.