You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using code from example, no matter what i use as query, always returns an empty array
...
googleBooks.search('Professional JavaScript for Web Developers', (err, result) => {
if(!err){
console.log(result);
resolve(result);
} else {
console.log(err);
resolve(err);
}
});
...
or am i doing smth wrong?
thanks
The text was updated successfully, but these errors were encountered:
Kinda of late to this but it depends on the variable used.
Do you have var books = require('google-books-search') or var googleBooks = require('google-books-search'). It's working find if you put the right variable before .search
using code from example, no matter what i use as query, always returns an empty array
...
googleBooks.search('Professional JavaScript for Web Developers', (err, result) => {
if(!err){
console.log(result);
resolve(result);
} else {
console.log(err);
resolve(err);
}
});
...
or am i doing smth wrong?
thanks
The text was updated successfully, but these errors were encountered: