def _api_get(self, url):
        try:
            data, headers = self.client.http_get(
                url,
                headers={
                    'PRIVATE-TOKEN': self._get_private_token(),
                })

            return data, headers
        except HTTPError as e:
            if e.code == 401:
                raise AuthorizationError(
                    ugettext('The login or password is incorrect.'))
            elif e.code == 404:
                raise
            else:
                logging.warning('Failed to execute a GET request at %s: %s',
                                url, e, exc_info=1)
                raise
Register an offer to adapt from one protocol to another.
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/hostingsvcs/rbgateway.py/ReviewBoardGateway._api_get--crossover with--dataset/ETHPy150Open enthought/traits/traits/adaptation/adaptation_manager.py/AdaptationManager.register_offer