Thursday, 15 September 2011

php - Access denied to call LinkedIn's API -


I have followed the steps to keep an access token ().

This is my code;

  Route :: post ( 'R', function ()  

 {$ c = curl_init (); $ firstName = Request: Input ('firstname'); $ lastName = Request :: Input ('lastname'); $ resource = '& amp; firstname =' ... $ firstName '& amp; last name =' .. $ lastName '& amp; type = connection; $ parameter = array (' oauth2_access_token '=> session: get (' ACCESS_TOKEN '),' format '=>' json ',); $ POSTDATA = http_build_query ($ parameters); $ url = $ POSTDATA $ resource; curl_setopt ($ c, CURLOPT_URL, $ url '?' ..); curl_setopt ($ c, CURLOPT_RETURNTRANSFER, true); curl_setopt ($ c, CURLOPT_HEADER, true); $ output = curl_exec ($ c ), If ($ product === incorrect) {trigger_error ( "Erreur curls: '.curl_error ($ c), E_USER_WARNING); exit (' error ');} else {var_dump ($ output); exit (" Results ");} Curl_close ($ c);});   

And this "error": 0, "message": "has denied the people search.", "Request ID": "DHYNQTZDN8", "Status "403," timestamp ": 1426519095912}

someone could be used to advise me to find a solution

thanks in advance, David Mureşus

You need special permissions from LinkedIn to use the Search API.


No comments:

Post a Comment