Using LinkedIn API with Python

你。 提交于 2019-12-10 17:09:06

问题


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)

来源:https://stackoverflow.com/questions/30077303/using-linkedin-api-with-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!