(20241204) Trying display name and display picture fetch from GMail.

This commit is contained in:
2024-12-04 14:34:21 +05:30
parent f15a638251
commit 91831bd7f5
4 changed files with 282 additions and 8 deletions
+8 -3
View File
@@ -194,13 +194,15 @@ async def app_startup(**kwargs):
max_keepalive_connections = 50, # ... Maximum number of connections that can be kept alive.
),
timeout = httpx.Timeout(
connect = 2.5, # ... Shorter connection timeout.
read = 2.5, # ...... Like what EasyEcom gives.
pool = 120.0, # .... Time to wait for a free connection from the pool.
connect = 2.5, # ... Time to wait for establishing a connection to the server.
write = 10.0, # .... Time to wait for sending data.
pool = 120.0 # ..... Time to wait for a free connection from the pool.
read = 2.5 # ....... Time to wait for receiving data.
)
)
print("Here!")
# ┏┓ ┓ ┓ ┳┓
# ┃ ┏┓┏┓┏┫ ┏┓┏┓┏┫ ┃┃┏┓╋┏┓
# ┗┛┛ ┗ ┗┻ ┗┻┛┗┗┻ ┻┛┗┻┗┗┻
@@ -218,6 +220,9 @@ async def app_startup(**kwargs):
)
current_app.script_data = response.json().get("data")
print("CRED:", script_cred)
print("DATA:", current_app.script_data)
# ┏┓┏┓┳┳ ┏┓┏┏• •
# ┃ ┃┃┃┃ ┣┫╋╋┓┏┓┓╋┓┏
# ┗┛┣┛┗┛ ┛┗┛┛┗┛┗┗┗┗┫