4

我正在尝试使用 LinkedIn API 让用户基于谷歌应用引擎登录到我们的系统。我正在使用 ozgur/python-linkedin 库来实现它。

现在到目前为止,我已经能够print authentication.authorization_url并获得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()

现在,一旦我调用get_access_token方法,我就会收到此错误:

ConnectionError: HTTPSConnectionPool(host='www.linkedin.com', port=443): url: /uas/oauth2/accessToken 超过了最大重试次数(原因:[Errno 13] Permission denied)

4

0 回答 0