title: Python requests to connect to Paypal
body: <p>I'm trying to use requests module to use paypal oauth but for some reason. The client id value is set as key and secret is set as value.</p>
  
  <p>Please let me know what is wrong?</p>
  
  <pre><code>r = requests.post('https://api.sandbox.paypal.com/v1/oauth2/token',data={'Ae19ErLh':'EHRcOhCsBUqgNQgp5-','grant_type':'credentials','content-type':'application/x-www-form-urlencoded'})]
  
  
  &gt;&gt;&gt; r.content
  '{"error":"invalid_client","error_description":"Invalid client credentials"}'
  </code></pre>