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

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

        return $this->execute('POST', $location);
    }
public function post ( $ location , $ body ) { curl_setopt ( $ this -> curl , CURLOPT_POST , 1 ) ; curl_setopt ( $ this -> curl , CURLOPT_POSTFIELDS , $ body ) ; curl_setopt ( $ this -> curl , CURLOPT_HTTPHEADER , array ( 'Content-Type: application/json' ) ) ; return $ this -> execute ( 'POST' , $ location ) ; }
Executes a POST on a location.

@param  String $location
@param  String $body
@return CurlClientResponse
Executes a POST on a location .