1
現在我嘗試使用LinkedIn的Python API來獲取用戶的信息,下面是我的代碼:「NoneType」對象已通過蟒蛇linkedinapi沒有屬性錯誤
from linkedin import linkedin
API_Key='...'
API_Secret='...'
Return_url='http://localhost:8000'
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)
application.get_profile()
但是,它顯示錯誤:
AttributeError: 'NoneType' object has no attribute 'access_token'
而另一個問題是,如果我有一個人的名字,如何使用API來獲取該人的信息?
我不知道什麼是我的程序 – sweetyBaby
你看我貼的鏈接的問題? – pellucidcoder