title: How to use linkedin API with python
body: <p>I tried so many methods, but none seem to work. Help me make a connection with linkedin using python. I have all the tokens. I have python 2.7.5. Please post a sample of basic code that establishes a connection and gets a user's name. </p>
  
  <p>Below, I have done character for character like the example said, but it doesn't work.</p>
  
  <p><a href="https://github.com/ozgur/python-linkedin" rel="noreferrer">https://github.com/ozgur/python-linkedin</a>   &lt;---This is where I got the api and I copied it exactly. See below:</p>
  
  <pre><code>CONSUMER_KEY = '9puxXXXXXXXX'     # This is api_key
  CONSUMER_SECRET = 'brtXoXEXXXXXXXX'   # This is secret_key
  
  USER_TOKEN = '27138ae8-XXXXXXXXXXXXXXXXXXXXXXXXXXX'   # This is oauth_token
  USER_SECRET = 'ca103e23XXXXXXXXXXXXXXXXXXXXXXXXXXX'   # This is oauth_secret
  
  
  from linkedin import linkedin
  
  # Define CONSUMER_KEY, CONSUMER_SECRET,  
  # USER_TOKEN, and USER_SECRET from the credentials 
  # provided in your LinkedIn application
  
  # Instantiate the developer authentication class
  
  authentication = linkedin.LinkedInDeveloperAuthentication(CONSUMER_KEY, CONSUMER_SECRET, 
                                                        USER_TOKEN, USER_SECRET, 
                                                        RETURN_URL, linkedin.PERMISSIONS.enums.values())
  
  # Pass it in to the app...
  
  application = linkedin.LinkedInApplication(authentication)
  
  # Use the app....
  
  application.get_profile()
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:/Documents and Settings/visolank/Desktop/Python/programs/linkedinapi.py", line 8, in &lt;module&gt;
      from linkedin import linkedin
    File "C:/Documents and Settings/visolank/Desktop/Python/programs\linkedin\linkedin.py", line 2, in &lt;module&gt;
      from requests_oauthlib import OAuth1
    File "C:\Python27\lib\site-packages\requests_oauthlib\__init__.py", line 1, in &lt;module&gt;
      from .core import OAuth1
    File "C:\Python27\lib\site-packages\requests_oauthlib\core.py", line 4, in &lt;module&gt;
  from oauthlib.oauth1 import (Client, SIGNATURE_HMAC, SIGNATURE_TYPE_AUTH_HEADER)
    File "C:\Python27\lib\site-packages\requests_oauthlib\oauthlib\oauth1\__init__.py", line 12, in &lt;module&gt;
      from .rfc5849 import Client
    File "C:\Python27\lib\site-packages\requests_oauthlib\oauthlib\oauth1\rfc5849\__init__.py", line 26, in &lt;module&gt;
      from oauthlib.common import Request, urlencode, generate_nonce
  ImportError: No module named oauthlib.common
  </code></pre>