protected function post($path, array $parameters = array(), $body = array())
    {
        if (count($parameters) > 0) {
            $path .= '?' . http_build_query($parameters);
        }

        $body = json_encode($body);

        $response = $this->client->getHttpClient()->post($path, [], $body);

        return $this->parseResponse($response);
    }
protected function post($path, array $parameters = array(), $body = array())
    {
        if (count($parameters) > 0) {
            $path .= '?' . http_build_query($parameters);
        }

        $body = json_encode($body);

        $response = $this->client->getHttpClient()->post($path, [], $body);

        return $this->parseResponse($response);
    }
protected function post ( $ path , array $ parameters = array ( ) , $ body = array ( ) ) { if ( count ( $ parameters ) > 0 ) { $ path .= '?' . http_build_query ( $ parameters ) ; } $ body = json_encode ( $ body ) ; $ response = $ this -> client -> getHttpClient ( ) -> post ( $ path , [ ] , $ body ) ; return $ this -> parseResponse ( $ response ) ; }
Execute an http POST request.

@param $path
@param array $parameters
@param array $body
@return mixed
Execute an http POST request .