rest - Python - LinkedIn API get profile error -


this internal project. end goal details of connections. in same city am.

i new in using linkedin api . have used code mentioned in answer here generate access token. using below line linkedin profile.

application.get_profile(access_token['oauth_token']) 

but getting below error.

traceback (most recent call last):   file "<pyshell#4>", line 1, in <module>     application.get_profile(access_token['oauth_token'])   file "c:\python34\lib\site-packages\python_linkedin-2.0-py3.4.egg\linkedin\linkedin.py", line 189, in get_profile     response = self.make_request('get', url, params=params, headers=headers)   file "c:\python34\lib\site-packages\python_linkedin-2.0-py3.4.egg\linkedin\linkedin.py", line 169, in make_request     params.update({'oauth2_access_token': self.authentication.token.access_token}) attributeerror: 'str' object has no attribute 'token' 

can please me?

i don't think need pass auth token again profile. using python lib.

application.get_profile() 

should return basic information profile. using selectors specify endpoints want.


Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -