src/Wuunder/Api/Endpoints/Parcelshop.php
public function fire()
    {
        $parcelshopRequest = new GetRequest($this->apiEnvironment->getStageBaseUrl() . "/parcelshops/" . $this->config->get("id"),
            $this->apiKey->getApiKey());
        try {
            $parcelshopRequest->send();
        } catch (\Exception $e) {
            $this->logger->log($e);
        }
        $body = null;
        $header = null;
        $error = null;

        if (isset($parcelshopRequest->getResponseHeaders()["http_code"])
            && strpos($parcelshopRequest->getResponseHeaders()["http_code"], "200 OK") !== false
        ) {
            $body = $parcelshopRequest->getBody();
            $header = $parcelshopRequest->getResponseHeaders();
        } else {
            $error = $parcelshopRequest->getResponse();
        }
        $this->parcelshopResponse = new ParcelshopApiResponse($header, $body, $error);

        return is_null($error);
    }
public function fire()
    {
        $parcelshopRequest = new GetRequest($this->apiEnvironment->getStageBaseUrl() . "/parcelshops/" . $this->config->get("id"),
            $this->apiKey->getApiKey());
        try {
            $parcelshopRequest->send();
        } catch (\Exception $e) {
            $this->logger->log($e);
        }
        $body = null;
        $header = null;
        $error = null;

        if (isset($parcelshopRequest->getResponseHeaders()["http_code"])
            && strpos($parcelshopRequest->getResponseHeaders()["http_code"], "200 OK") !== false
        ) {
            $body = $parcelshopRequest->getBody();
            $header = $parcelshopRequest->getResponseHeaders();
        } else {
            $error = $parcelshopRequest->getResponse();
        }
        $this->parcelshopResponse = new ParcelshopApiResponse($header, $body, $error);

        return is_null($error);
    }
Fires the request and handles the result.

@return bool