/**
* POST request handling
*
* @param string $path
* @param array $data
*
* @return GuzzleHttp\RequestInterface
*/
public function post($path, $data = array())
{
$response = $this->httpClient->request('POST', $path, ['json' => $data]);
if ($response->getStatusCode() !== 200) {
throw new \UnexpectedValueException('HTTP Status: ' . $response->getStatusCode());
}
return $this->decoder->decode($response->getBody());
}