(20241128) Scopes handling yet going on...
This commit is contained in:
@@ -104,7 +104,6 @@ class AsyncGoogleBase:
|
|||||||
service_name: str,
|
service_name: str,
|
||||||
oauth_json: dict,
|
oauth_json: dict,
|
||||||
http_client: httpx.AsyncClient,
|
http_client: httpx.AsyncClient,
|
||||||
scopes: List[str] = None,
|
|
||||||
redirect_url: str = None,
|
redirect_url: str = None,
|
||||||
debug = True,
|
debug = True,
|
||||||
debug_prefix = "GMail | ",
|
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 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 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 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: 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_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.
|
: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_id = self._oauth_json["web"]["client_id"]
|
||||||
self._client_secret = self._oauth_json["web"]["client_secret"]
|
self._client_secret = self._oauth_json["web"]["client_secret"]
|
||||||
self._redirect_url = redirect_url
|
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):
|
def enable_debug(self):
|
||||||
self._printer.enable()
|
self._printer.enable()
|
||||||
|
|||||||
Reference in New Issue
Block a user