From b37c268c4f0bcc57375fd926f30a24e6aa9810c7 Mon Sep 17 00:00:00 2001 From: khushal Date: Thu, 28 Nov 2024 18:19:56 +0530 Subject: [PATCH] (20241128) Scopes handling yet going on... --- utils_v2/goog/base.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/utils_v2/goog/base.py b/utils_v2/goog/base.py index 6db7e7f..d259387 100644 --- a/utils_v2/goog/base.py +++ b/utils_v2/goog/base.py @@ -104,7 +104,6 @@ class AsyncGoogleBase: service_name: str, oauth_json: dict, http_client: httpx.AsyncClient, - scopes: List[str] = None, redirect_url: str = None, debug = True, debug_prefix = "GMail | ", @@ -118,7 +117,6 @@ class AsyncGoogleBase: :param oauth_json: The OAuth credentials downloaded from https://console.cloud.google.com/apis/credentials :param http_client: An asynchronous HTTP client to make API calls. :param redirect_url: Where you would like to receive the confirmation of the user authorization. - :param scopes: The list of permissions needed for this particular authorization. :param debug: Whether, or not, you would like to show debugging messages on the terminal. :param debug_prefix: The prefix string to identify the debugging messages. :param debug_only_errors: Whether you would like to show all debugging messages or just error messages. @@ -137,11 +135,6 @@ class AsyncGoogleBase: self._client_id = self._oauth_json["web"]["client_id"] self._client_secret = self._oauth_json["web"]["client_secret"] self._redirect_url = redirect_url - # self._flow = InstalledAppFlow.from_client_config( - # self._oauth_json, - # scopes = scopes, - # redirect_uri = self._redirect_url - # ) def enable_debug(self): self._printer.enable()