public function retrieveTokenAccess($token, $secret, $verifier) {
	  // check passed data
    if(!is_string($token) || !is_string($secret) || !is_string($verifier)) {
      // nothing passed, raise an exception
		  throw new LinkedInException('LinkedIn->retrieveTokenAccess(): bad data passed, string type is required for $token, $secret and $verifier.');
    }
    
    // start retrieval process
	  $this->setToken(array('oauth_token' => $token, 'oauth_token_secret' => $secret));
    $parameters = array(
      'oauth_verifier' => $verifier
    );
    $response = $this->fetch(self::_METHOD_TOKENS, self::_URL_ACCESS, NULL, $parameters);
    parse_str($response['linkedin'], $response['linkedin']);
    
    /**
	   * Check for successful request (a 200 response from LinkedIn server) 
	   * per the documentation linked in method comments above.
	   */
    if($response['info']['http_code'] == 200) {
      // tokens retrieved
      $this->setToken($response['linkedin']);
      
      // set the response
      $return_data            = $response;
      $return_data['success'] = TRUE;
    } else {
      // error getting the request tokens
       $this->setToken(NULL);
       
      // set the response
      $return_data            = $response;
      $return_data['error']   = 'HTTP response from LinkedIn end-point was not code 200';
      $return_data['success'] = FALSE;
    }
    return $return_data;
	}
public function retrieveTokenAccess($token, $secret, $verifier) {
	  // check passed data
    if(!is_string($token) || !is_string($secret) || !is_string($verifier)) {
      // nothing passed, raise an exception
		  throw new LinkedInException('LinkedIn->retrieveTokenAccess(): bad data passed, string type is required for $token, $secret and $verifier.');
    }
    
    // start retrieval process
	  $this->setToken(array('oauth_token' => $token, 'oauth_token_secret' => $secret));
    $parameters = array(
      'oauth_verifier' => $verifier
    );
    $response = $this->fetch(self::_METHOD_TOKENS, self::_URL_ACCESS, NULL, $parameters);
    parse_str($response['linkedin'], $response['linkedin']);
    
    /**
	   * Check for successful request (a 200 response from LinkedIn server) 
	   * per the documentation linked in method comments above.
	   */
    if($response['info']['http_code'] == 200) {
      // tokens retrieved
      $this->setToken($response['linkedin']);
      
      // set the response
      $return_data            = $response;
      $return_data['success'] = TRUE;
    } else {
      // error getting the request tokens
       $this->setToken(NULL);
       
      // set the response
      $return_data            = $response;
      $return_data['error']   = 'HTTP response from LinkedIn end-point was not code 200';
      $return_data['success'] = FALSE;
    }
    return $return_data;
	}
public function retrieveTokenAccess ( $ token , $ secret , $ verifier ) { // check passed data if ( ! is_string ( $ token ) || ! is_string ( $ secret ) || ! is_string ( $ verifier ) ) { // nothing passed, raise an exception throw new LinkedInException ( 'LinkedIn->retrieveTokenAccess(): bad data passed, string type is required for $token, $secret and $verifier.' ) ; } // start retrieval process $ this -> setToken ( array ( 'oauth_token' => $ token , 'oauth_token_secret' => $ secret ) ) ; $ parameters = array ( 'oauth_verifier' => $ verifier ) ; $ response = $ this -> fetch ( self :: _METHOD_TOKENS , self :: _URL_ACCESS , NULL , $ parameters ) ; parse_str ( $ response [ 'linkedin' ] , $ response [ 'linkedin' ] ) ; /**
	   * Check for successful request (a 200 response from LinkedIn server) 
	   * per the documentation linked in method comments above.
	   */ if ( $ response [ 'info' ] [ 'http_code' ] == 200 ) { // tokens retrieved $ this -> setToken ( $ response [ 'linkedin' ] ) ; // set the response $ return_data = $ response ; $ return_data [ 'success' ] = TRUE ; } else { // error getting the request tokens $ this -> setToken ( NULL ) ; // set the response $ return_data = $ response ; $ return_data [ 'error' ] = 'HTTP response from LinkedIn end-point was not code 200' ; $ return_data [ 'success' ] = FALSE ; } return $ return_data ; }
Access token retrieval.

Request the user's access token from the Linkedin API.

@param str $token
The token returned from the user authorization stage.
@param str $secret
The secret returned from the request token stage.
@param str $verifier
The verification value from LinkedIn.

@return arr
The Linkedin OAuth/http response, in array format.
Access token retrieval .