
pylinkedin
Introduction
PyLinkedIn is a simple interface to the LinkedIn OAuth system. Right now it supports fetching all of your "connections" (your contacts) and getting your status.
Quick Start
A great introduction to using pylinkedin (Thanks to Raymond Yee for providing this): http://blog.mashupguide.net/2010/02/05/linkedin-api-python-step-1/
Slightly Less Quick Start
- Download http://pylinkedin.googlecode.com/files/pylinkedin-0.01.tar.bz2
- Install python oauth from here http://oauth.googlecode.com/svn/code/python/
- from linkedin import LinkedIn
- get request token: LinkedIn.getRequestToken(key, secret)
- get authorization url: LinkedIn.getAuthorizeUrl(requestToken), redirect user to the page.
- LinkedIn will redirect to the page you have on file with them, save the verifier they send.
- After redirect: get access token: LinkedIn.getAccessToken(requestToken, verifier)
Get all Connections for current user
``` li = LinkedIn(API_KEY, SECRET_KEY) connections = li.connections_api.getMyConnections(access_token)
for c in connections: # Access c.firstname, c.lastname, etc. Sorry, no encapsulation... ```
Get status for current user
status = li.status_api.getMyStatus(access_token)
Project Information
- License: MIT License
- 4 stars
- hg-based source control