SimpleSoftwareIO\SMS\MakesRequests::getRequest PHP Метод

getRequest() защищенный Метод

Creates and sends a GET request to the requested URL.
protected getRequest ( ) : mixed
Результат mixed
    protected function getRequest()
    {
        $url = $this->buildUrl($this->getBody());
        $response = $this->client->get($url, ['auth' => $this->getAuth()]);
        if ($response->getStatusCode() != 201 && $response->getStatusCode() != 200) {
            $this->throwNotSentException('Unable to request from API.');
        }
        return $response;
    }