(20241129) ??
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user