title: Access Linkedin API
body: <p>According to LinkedIn Website, i have togenerate an access token, with a HTTP POST against accessToken with both my Client ID and Client Secret values.
  I have to post against</p>
  <blockquote>
  <p><a href="https://www.linkedin.com/oauth/v2/accessToken" rel="nofollow noreferrer">https://www.linkedin.com/oauth/v2/accessToken</a></p>
  </blockquote>
  <p>With three different parameters: &quot;grant_type&quot; ( The value of this field should always be  <code>client_credentials</code>), &quot;client_id&quot; and &quot;client_secret&quot; both provided by linked in</p>
  <p>At the moment, i did this:</p>
  <pre><code>require(&quot;httr&quot;)
  require(&quot;jsonlite&quot;)
  token&lt;- POST(&quot;https://www.linkedin.com/oauth/v2/accessToken&quot;, add_headers(
        grant_type =&quot;client_credentials&quot;, 
        client_id = &quot;keyprovided1&quot;, 
        client_secret = &quot;keyprovided2&quot;))
  </code></pre>
  <p>I have a 400 response, but it does not have the token.</p>
  <p>There is something wrong?</p>
  <p>Thank you!</p>