CloudFlare\Api::delete PHP Method

delete() public method

API call method for sending requests using DELETE
public delete ( string $path, array $data = null ) : mixed
$path string Path of the endpoint
$data array Data to be sent along with the request
return mixed
    public function delete($path, array $data = null)
    {
        return $this->request($path, $data, 'delete');
    }

Usage Example

Example #1
0
 public function testHttpDeleteMethodSet()
 {
     $api = new Api('*****@*****.**', 'Auth Key');
     $result = $api->delete('test');
     $this->assertEquals("delete", $result['method']);
 }