title: Python - "client_id" is missing. How to solve?
body: <p>I've been playing with the LinkedIn api (OAuth 2) and I've found an example to help test it. I've followed the tutorial to the letter, but for some reason when I provide my full redirect URL (as requested in the code), I get the error: <code>(invalid_request) A required parameter "client_id" is missing</code>. I'm not sure what I'm doing wrong, but if anyone has any idea, I appreciate the feedback.</p>
  
  <p>Upon searching for a solution, I've found another person struggling with this: <a href="https://stackoverflow.com/questions/54124186/client-id-is-missing-when-authenticate-with-linkedin/55089204#55089204">&quot;client_id&quot; is missing when authenticate with LinkedIn</a></p>
  
  <p>Here's the code from the example:</p>
  
  <p><code>Linkedin.py</code></p>
  
  <pre><code>from requests_oauthlib import OAuth2Session
  from requests_oauthlib.compliance_fixes import linkedin_compliance_fix
  
  # Credentials you get from registering a new application
  client_id = SECRET
  client_secret = SECRET
  
  # OAuth endpoints given in the LinkedIn API documentation
  authorization_base_url = 'https://www.linkedin.com/uas/oauth2/authorization'
  token_url = 'https://www.linkedin.com/uas/oauth2/accessToken'
  
  linkedin = OAuth2Session(client_id, redirect_uri='http://localhost:8000')
  linkedin = linkedin_compliance_fix(linkedin)
  
  # Redirect user to LinkedIn for authorization
  authorization_url, state = linkedin.authorization_url(authorization_base_url)
  print ('Please go here and authorize,', authorization_url)
  
  # Get the authorization verifier code from the callback url
  redirect_response = input('Paste the full redirect URL here:')
  
  # Fetch the access token
  linkedin.fetch_token(token_url, client_secret=client_secret,authorization_response=redirect_response)
  
  # Fetch a protected resource, i.e. user profile
  r = linkedin.get('https://api.linkedin.com/v1/people/~')
  print (r.content)
  </code></pre>
  
  <p>Link to example: <a href="https://requests-oauthlib.readthedocs.io/en/latest/examples/linkedin.html" rel="nofollow noreferrer">https://requests-oauthlib.readthedocs.io/en/latest/examples/linkedin.html</a></p>
  
  <p>Additional Note: The tutorial I used didn't have a date on it. I can only assume the links used in the API tutorial are correct and up to date.</p>