I am trying to use LinkedIn API for getting user logged in to our system based on google app engine. I am using ozgur/python-linkedin library for implementing it.
Now so far I am getting able to print authentication.authorization_url
, and obtain the authentication.authorization_code
.
authentication = linkedin.LinkedInAuthentication(API_KEY, API_SECRET, RETURN_URL, linkedin.PERMISSIONS.enums.values())
print authentication.authorization_url # open this url on your browser
application = linkedin.LinkedInApplication(authentication)
authentication.authorization_code = 'xxxxxxxxxxxxxxxxxxx'
authentication.get_access_token()
Now once I call get_access_token
method I am getting this error:
ConnectionError: HTTPSConnectionPool(host='www.linkedin.com', port=443): Max retries exceeded with url: /uas/oauth2/accessToken (Caused by : [Errno 13] Permission denied)