put() public method

API call method for sending requests using PUT
public put ( 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 testHttpPutMethodSet()
 {
     $api = new Api('*****@*****.**', 'Auth Key');
     $result = $api->put('test');
     $this->assertEquals("put", $result['method']);
 }