ApiLimitExceededException example


    public function checkUpdate($shopwareVersion, array $params = [])
    {
        if ($shopwareVersion === '___VERSION___') {
            return null;
        }

        $response = $this->client->request();

        if ($response->getStatus() === Response::HTTP_FORBIDDEN) {
            throw new ApiLimitExceededException();
        }

        if ($response->getStatus() === Response::HTTP_NOT_FOUND) {
            return null;
        }

        $body = $response->getBody();

        if (!\is_string($body)) {
            return null;
        }

        
Home | Imprint | This part of the site doesn't use cookies.