Exemple #1
0
 /**
  * Make a signed request using given httpMethod to the path
  *
  *   $token->request('GET','/people');
  *   $token->request('POST','/people',$person,array('Content-Type' => 'application/xml' ));
  *
  * @param string $httpMethod
  * @param string $path
  * @param array $headers
  * @param array $params
  * @param array $requestOptions
  * @return string
  */
 public function request($httpMethod, $path, $headers = array(), $params = array(), $requestOptions = array())
 {
     $params['headers'] = $headers;
     $this->response = $this->consumer->request($httpMethod, $path, $this, $requestOptions, $params);
     return $this->response;
 }