资 源 简 介
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)