CloudFlare\Api::get PHP Method

get() public method

API call method for sending requests using GET
public get ( 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 get($path, array $data = null)
    {
        return $this->request($path, $data, 'get');
    }

Usage Example

Example #1
0
 public function testHttpGetMethodSet()
 {
     $api = new Api('*****@*****.**', 'Auth Key');
     $result = $api->get('test');
     $this->assertEquals("get", $result['method']);
 }
All Usage Examples Of CloudFlare\Api::get