I’ve managed to get my calls to work with postman by doing the following:
-
(In the browser, I put this call in to get a code)
Authorize | LinkedIn -
(Used postman with the code I received from step 1 to get an access token)
https://www.linkedin.com/uas/oauth2/accessToken?grant_type=authorization_code&redirect_uri=https://app.mywebsite.com/version-test/api/1.1/oauth_redirect&client_id=&client_secret=&code=* -
(Used the access token for the Authorization Key field as “Bearer access_token”)
https://api.linkedin.com/v2/emailAddress?q=members&projection=(elements*(handle~))
and the above returned the email I was looking for.
My problem is that I can’t seem to use the API connector to even try logging in. All my calls keep getting this error:
For my settings in the API Connector, they are shown below:
Parameter (id,firstName,lastName,profilePicture(displayImage~:playableStreams))
GET https://api.linkedin.com/v2/emailAddress?q=members&projection=(elements*(handle~))