private function sendPostRequest(array $body)
    {
        $requestBodyKey = version_compare(ClientInterface::VERSION, '6.0', '>=') ? 'form_params' : 'body';
        $response = $this->httpClient->post('', [
            $requestBodyKey => $body,
        ]);

        return \json_decode($response->getBody(), true);
    }
private function sendPostRequest(array $body)
    {
        $requestBodyKey = version_compare(ClientInterface::VERSION, '6.0', '>=') ? 'form_params' : 'body';
        $response = $this->httpClient->post('', [
            $requestBodyKey => $body,
        ]);

        return \json_decode($response->getBody(), true);
    }
private function sendPostRequest ( array $ body ) { $ requestBodyKey = version_compare ( ClientInterface :: VERSION , '6.0' , '>=' ) ? 'form_params' : 'body' ; $ response = $ this -> httpClient -> post ( '' , [ $ requestBodyKey => $ body , ] ) ; return \ json_decode ( $ response -> getBody ( ) , true ) ; }
Sends a post request to the OAuth endpoint
Supports both guzzle 5 and 6 versions.

@param array $body

@return mixed
Sends a post request to the OAuth endpoint Supports both guzzle 5 and 6 versions .