post() public method

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