CloudFlare\Api::put PHP 메소드

put() 공개 메소드

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
리턴 mixed
    public function put($path, array $data = null)
    {
        return $this->request($path, $data, 'put');
    }

Usage Example

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