public function httpPostRequest($url, $parameters)
    {
        if (empty($this->client)) {
            $this->client = new Client(['verify' => false]);
        }

        $this->response = $this->client->request(
            'POST',
            $url,
            [
                'headers' => $this->getHeaders(),
                'json' => $parameters
            ]
        );
        $response = json_decode($this->response->getBody());

        return $response;
    }
public function httpPostRequest($url, $parameters)
    {
        if (empty($this->client)) {
            $this->client = new Client(['verify' => false]);
        }

        $this->response = $this->client->request(
            'POST',
            $url,
            [
                'headers' => $this->getHeaders(),
                'json' => $parameters
            ]
        );
        $response = json_decode($this->response->getBody());

        return $response;
    }
public function httpPostRequest ( $ url , $ parameters ) { if ( empty ( $ this -> client ) ) { $ this -> client = new Client ( [ 'verify' => false ] ) ; } $ this -> response = $ this -> client -> request ( 'POST' , $ url , [ 'headers' => $ this -> getHeaders ( ) , 'json' => $ parameters ] ) ; $ response = json_decode ( $ this -> response -> getBody ( ) ) ; return $ response ; }
Make a POST request and respond with json decoded to array.

@param string $url
@param array $url
@return array
Make a POST request and respond with json decoded to array .