I am currently integrating the Google Book API into my project and encountering an issue while trying to add a book to a library using gapi.client. The error I keep receiving is as follows: This is the request :
gapi.client.books.mylibrary.bookshelves.volumes.list({
shelf: shelfId,
q: book.id
});
In my package.json file, I have included "@types/gapi.client.books": "^1.0.1", and also added it to the types in tsconfig.app.json
"compilerOptions": {
"outDir": "./out-tsc/app",
"types": ["gapi.client.books", "gapi", "gapi.auth2"]
}
If anyone has any insights or solutions regarding this issue, your help would be greatly appreciated.