You can try with oauth10a_account.py  under
gluon/contrib/login_method, it uses standard OAuth 1.0a protocol.
See this example:

http://code.google.com/r/michelecomitini-facebookaccess/source/browse/#hg/applications/linkedInOauth

mic

2010/11/13 Kuba Kucharski <kuba.kuchar...@gmail.com>:
> Hi, long time no see, guys
>
> I did exact thing like in the book
>
> from gluon.contrib.login_methods.linkedin_account import LinkedInAccount
> auth.settings.login_form=LinkedInAccount(request,KEY,SECRET,RETURN_URL)
> (yeap I had inserted key etc, and yes, I haven't sent it in my ticket
> to all the public, I've obscured it;)
>
> I am getting 'module' object has no attribute 'LinkedIn'
>
>
> Traceback (most recent call last):
>  File "/home/www-data/web2py/gluon/restricted.py", line 188, in restricted
>    exec ccode in environment
>  File "/home/www-data/web2py/applications/opennect/models/db.py",
> line 86, in <module>
>    
> auth.settings.login_form=LinkedInAccount(request,"ds8kktgqgQLHXxbAHew5owhRSHbGsdvek9tgfS28-XTGhi","WjhUsdTD4gq-efdsD59XcnVlIVAi_hHZd1CICfTqbdK3EiaTrUo","http://dev.xxx.com/";)
>  File "/home/www-data/web2py/gluon/contrib/login_methods/linkedin_account.py",
> line 33, in __init__
>    self.api = linkedin.LinkedIn(key,secret,return_url)
> AttributeError: 'module' object has no attribute 'LinkedIn'
>
>
> I tried from application shell
> import linkedin
> api = linkedin.LinkedIn(..)
>
> and in console this part of the linkedin_account.py works
>
> am I missing smth?
> I've tested on 1.87.x and the newest stable
> python-linkedin is 1.5
> --
> Kuba
>

Reply via email to