protected function makeOAuth2Request($path, $method = 'GET', $params = array()) {
    if ((!isset($params['access_token']) || empty($params['access_token'])) && $oauth_token = $this->getAccessToken()) {
      $params['access_token'] = $oauth_token;
    }
    
    return $this->makeRequest($path, $method, $params);
  }
protected function makeOAuth2Request($path, $method = 'GET', $params = array()) {
    if ((!isset($params['access_token']) || empty($params['access_token'])) && $oauth_token = $this->getAccessToken()) {
      $params['access_token'] = $oauth_token;
    }
    
    return $this->makeRequest($path, $method, $params);
  }
protected function makeOAuth2Request ( $ path , $ method = 'GET' , $ params = array ( ) ) { if ( ( ! isset ( $ params [ 'access_token' ] ) || empty ( $ params [ 'access_token' ] ) ) && $ oauth_token = $ this -> getAccessToken ( ) ) { $ params [ 'access_token' ] = $ oauth_token ; } return $ this -> makeRequest ( $ path , $ method , $ params ) ; }
Make an OAuth2.0 Request.

Automatically append "oauth_token" in query parameters if not yet
exists and able to discover a valid access token from session. Otherwise
just ignore setup with "oauth_token" and handle the API call AS-IS, and
so may issue a plain API call without OAuth2.0 protection.

@param $path
The target path, relative to base_path/service_uri or an absolute URI.
@param $method
(optional) The HTTP method (default 'GET').
@param $params
(optional The GET/POST parameters.

@return
The JSON decoded response object.

@throws OAuth2Exception
Make an OAuth2 . 0 Request .