[英]How to access linkedin API in python
I am trying to run the linkedin module to request data from linkedin. 我正在尝试运行linkedin模块以从linkedin请求数据。 I used the instructions from the documentation
我使用了文档中的说明
import linkedin
API_KEY = "123"
API_SECRET = "456"
RETURN_URL = "http://localhost:8000"
authentication = linkedin.LinkedInAuthentication(API_KEY, API_SECRET, RETURN_URL, linkedin.PERMISSIONS.enums.values())
print (authentication.authorization_url)
application = linkedin.LinkedInApplication(authentication)
authentication.authorization_code = "AQTXrv3Pe1iWS0EQvLg0NJA8ju_XuiadXACqHennhWih7iRyDSzAm5jaf3R7I8"
authentication.get_access_token()
application = linkedin.LinkedInApplication(token='AQTFtPILQkJzXHrHtyQ0rjLe3W0I')
from linkedin import server
application = server.quick_api(
API_KEY, API_SECRET)
However the module has no LInkedInAuthentication object. 但是,该模块没有LInkedInAuthentication对象。 Any Ideas or other modules to use the linkedin API?
有任何想法或其他模块可以使用linkedin API吗?
Instead of doing 而不是做
import linkedin
do 做
from linkedin import linkedin
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.