mkb79
mkb79
@csandman > And as far as how to get that info on a book, I discovered that Readarr (which I linked in my original post) actually includes their API key...
@csandman > @mkb79 any chance you could give more details on what you're describing? do you still need a goodreads API key in the first place to make that work?...
@csandman I can give you more details, but I don’t want to spam this issue.
@csandman Here are a proof-of-concept how registration and deregistration works: ```python import base64 import gzip import hashlib import hmac import json import secrets import uuid from datetime import datetime from...
> Thanks for the detailed example! Now time to see if I can translate this to node... @csandman Have you tried this code out. If yes, could you successfully register/unregister...
Yes, this is the access token. The token is valid for 60 minutes after registration. Before the token is invalid, you have to deregister or refresh the token with the...
Here are the function to refresh the access token: ```python def refresh_access_token(refresh_token): url = "https://api.amazon.com/auth/token" headers = { "x-amzn-identity-auth-domain": "goodreads.com", "User-Agent": USER_AGENT, "Accept-Encoding": "gzip" } body = { "app_name": "GoodreadsForIOS...
Finally here comes the exchange token for cookies part: ```Python def exchange_cookies(refresh_token): url = "https://api.amazon.com/ap/exchangetoken/cookies" headers = { "x-amzn-identity-auth-domain": "goodreads.com", "User-Agent": USER_AGENT, "Accept-Encoding": "gzip" } body = { "openid.assoc_handle": "amzn_goodreads_web_na",...
So, it’s on yours for further progress ;)! If you need any help, feel free to contact me.
Here are some undocumented API endpoints I could find: https://www.goodreads.com/api/current_user_data?_nc=true¤tly_reading=true&format=xml&id={USER_ID}&include_social_shelving_info=true&user_shelves=true&v=2 https://www.goodreads.com/api/v3/updates/newsfeed?_nc=true&format=xml&max_updates=10 https://www.goodreads.com/api/book/basic_book_data/182506?_extras%5Bbook_covers_large%5D=true&_nc=true&format=xml https://www.goodreads.com/api/book/book_reviews/182506?_extras%5Bbook_covers_large%5D=true&_nc=true&format=xml https://www.goodreads.com/api/book/related_books/182506?_extras%5Bbook_covers_large%5D=true&_nc=true&format=xml https://www.goodreads.com/api/gca_metadata?_nc=true&format=xml&locale=de-DE https://www.goodreads.com/api/current_user_shelves?_nc=true&format=xml