You need to sign in to do that
Don't have an account?
Hitesh chaudhari
unable to get Authorization token for linked in integration
trying to get Authorization token by hitting https://www.linkedin.com/oauth/v2/authorization via REST API get call.
but not able to get the access token in response.
but not able to get Response code as 200 whch gives me Authorization code in response.
but not able to get the access token in response.
String Client_ID = '81********51oj' ; String Client_Secrete = '4u**********7wCD'; String endPoint = 'https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=' + Client_ID ; String redirectPageURL = 'https://myDevInstance-dev-ed--c.ap5.visual.force.com/apex/LinkedInAuthPage'; redirectPageURL = EncodingUtil.urlEncode(redirectPageURL, 'UTF-8'); endPoint += '&redirect_uri=' + redirectPageURL ; endPoint += '&state=fooobar&scope=r_liteprofile%20r_emailaddress%20w_member_social'; Http http = new Http(); HTTPRequest req = new HTTPRequest(); req.setEndpoint(endPoint); req.setHeader('Content-Type', 'application/json'); req.setMethod('GET'); HTTPResponse res = http.send(req);
but not able to get Response code as 200 whch gives me Authorization code in response.