public function put($location, $body)
    {
        curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, 'PUT');
        curl_setopt($this->curl, CURLOPT_POSTFIELDS, $body);
        curl_setopt($this->curl, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));

        return $this->execute('PUT', $location);
    }
public function put($location, $body)
    {
        curl_setopt($this->curl, CURLOPT_CUSTOMREQUEST, 'PUT');
        curl_setopt($this->curl, CURLOPT_POSTFIELDS, $body);
        curl_setopt($this->curl, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));

        return $this->execute('PUT', $location);
    }
public function put ( $ location , $ body ) { curl_setopt ( $ this -> curl , CURLOPT_CUSTOMREQUEST , 'PUT' ) ; curl_setopt ( $ this -> curl , CURLOPT_POSTFIELDS , $ body ) ; curl_setopt ( $ this -> curl , CURLOPT_HTTPHEADER , array ( 'Content-Type: application/json' ) ) ; return $ this -> execute ( 'PUT' , $ location ) ; }
PUTs a resource.

@param  String $location
@param  String $body
@return CurlClientResponse
PUTs a resource .