patch() public method

API call method for sending requests using PATCH
public patch ( string $path, array $data = null ) : mixed
$path string Path of the endpoint
$data array Data to be sent along with the request
return mixed
Example #1
0
 public function testHttpPatchMethodSet()
 {
     $api = new Api('*****@*****.**', 'Auth Key');
     $result = $api->patch('test');
     $this->assertEquals("patch", $result['method']);
 }