Nesreensada Nesreensada’s Comments (group member since Jun 01, 2018)


Nesreensada’s comments from the Goodreads Developers group.

Showing 1-5 of 5

Jul 11, 2018 04:12AM

8095 So since it is working u will need to get access token
Jul 10, 2018 06:41AM

8095 I think for all users but I did not check
There is also a good library that you can use
https://github.com/sefakilic/goodreads
If you are using python
Jul 09, 2018 01:19PM

8095 you will need to get access token to access the user book or such info
an example code to get access token
# example code to access the Goodreads API
def get_access_token(client_key,client_secret):
url = 'http://www.goodreads.com'
request_token_url = '%s/oauth/request_token' % url
authorize_url = '%s/oauth/authorize' % url
access_token_url = '%s/oauth/access_token' % url

# consumer authentication using oauth2
consumer = oauth2.Consumer(key= CLIENT_ID, secret= CLIENT_SECRET)
client = oauth2.Client(consumer) #create the client
# The OAuth Client request to get access token
response, content = client.request(request_token_url, 'GET')
if response['status'] != '200':
raise Exception('Invalid response: %s' % response['status'])

#get access token
request_token = dict(urllib.parse.parse_qsl(content))
oauth_token_key,oauth_token_secret = request_token[b'oauth_token'], request_token[b'oauth_token_secret']
return oauth_token_key, oauth_token_secret

# functions requiring access token for publishing or reading user profiles
Jun 07, 2018 01:31PM

8095 so i have i want to extract the books from shelves in a group like this https://www.goodreads.com/group/books...
Jun 01, 2018 02:17PM

8095 i want to inquire how i can get the group bookshelves through the API. i looked in the API documentation for this but could not find this?
is there a possible workaround for this ?