public function postReturnBody(string $url, array $params = []) : string { $response = $this->client->post($url, $this->params($params, $url)); $code = $response->getStatusCode(); if ($code >= 200 && $code < 300) { return (string) $response->getBody(); } throw new TransferException(); }