Nesreensada’s
Comments
(group member since Jun 01, 2018)
Nesreensada’s
comments
from the Goodreads Developers group.
Showing 1-5 of 5

There is also a good library that you can use
https://github.com/sefakilic/goodreads
If you are using python

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


is there a possible workaround for this ?