Recurly_Client::request PHP Метод

request() публичный Метод

public request ( $method, $uri, $data = null )
    public function request($method, $uri, $data = null)
    {
        return $this->_sendRequest($method, $uri, $data);
    }

Usage Example

Пример #1
0
 /**
  * Delete the URI, validate the response and return the object.
  * @param string Resource URI, if not fully qualified, the base URL will be appended
  * @param string Optional client for the request, useful for mocking the client
  */
 protected static function _delete($uri, $client = null)
 {
   if (is_null($client))
     $client = new Recurly_Client();
   $response = $client->request(Recurly_Client::DELETE, $uri);
   $response->assertValidResponse();
   if ($response->body) {
     return Recurly_Base::__parseXmlToNewObject($response->body, $client);
   }
   return null;
 }
All Usage Examples Of Recurly_Client::request