Пример #1
0
  def __init__(self, page_size=None, token=None):
    super(RawConnector, self).__init__()

    if not page_size:
      raise ValueError("page_size has to be specified.")
    self._page_size = page_size

    if not token:
      raise ValueError("token has to be specified.")
    self._token = token

    self._router = api_call_router_without_checks.ApiCallRouterWithoutChecks()
    self._root_router = api_root_router.ApiRootRouter()
Пример #2
0
    def __init__(self, page_size=None, context=None):
        super().__init__()

        if not page_size:
            raise ValueError("page_size has to be specified.")
        self._page_size = page_size

        if not context:
            raise ValueError("context has to be specified.")
        self._context = context

        self._router = api_call_router_without_checks.ApiCallRouterWithoutChecks(
        )
        self._root_router = api_root_router.ApiRootRouter()