(20241129) ??

This commit is contained in:
2024-11-29 18:19:27 +05:30
parent a99b3f19c2
commit 0c05dcf6c5
4 changed files with 19 additions and 99 deletions
+5 -7
View File
@@ -905,10 +905,6 @@ if __name__ == "__main__":
oauth_json = secrets_dict,
http_client = test_client,
redirect_url = r"https://api.thecaoffice.com/converse/mail/callback/gmail",
scopes = [
r"https://www.googleapis.com/auth/gmail.modify",
r"https://www.googleapis.com/auth/gmail.labels"
],
debug = True,
debug_prefix = "GMail (M) | ",
debug_only_errors = False
@@ -961,10 +957,12 @@ if __name__ == "__main__":
# print(my_mail.get_raw_message(as_base64 = False))
# Test some feature:
response = await my_gmail.send_message(
# response = await my_gmail.list_messages(
# tokens = test_tokens,
# )
response = await my_gmail.get_message(
tokens = test_tokens,
message = my_mail,
thread_id = None
message_id = "1936bfbfc912b86f"
)
print("SUCCESS:", response.success)
print("SUMMARY:", response.to_markdown())