Airship\Engine\Hail::postReturnBody PHP Method

postReturnBody() public method

Perform a POST request, get the body
public postReturnBody ( string $url, array $params = [] ) : string
$url string
$params array
return string
    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();
    }