Access LinkedIn API

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

https://www.linkedin.com/oauth/v2/accessToken

With three different parameters: "grant_type" ( The value of this field should always be client_credentials), "client_id" and "client_secret" both provided by linked in

At the moment, i did this:

require("httr")
require("jsonlite")
token<- POST("https://www.linkedin.com/oauth/v2/accessToken", add_headers(
      grant_type ="client_credentials", 
      client_id = "keyprovided1", 
      client_secret = "keyprovided2"))

I have a 400 response, but it does not have the token.

There is something wrong?

Thank you!

Can you specify the LinkedIn page were you found the instructions?

I am not familiar with that setup but I assume that you replaced keyprovided1 and keyprovided2 with values that you got from a LinkedIn webpage?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.