Recurly_Base::_delete PHP Method

_delete() protected static method

Delete the URI, validate the response and return the object.
protected static _delete ( $uri, $client = null )
    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::__parseResponseToNewObject($response, $uri, $client);
        }
        return null;
    }

Usage Example

コード例 #1
0
 public function delete($accountCode = null)
 {
     return Recurly_Base::_delete($this->uri($accountCode), $this->_client);
 }
All Usage Examples Of Recurly_Base::_delete