【发布时间】:2016-04-01 03:34:30
【问题描述】:
我目前正在使用 Gmail API。
https://developers.google.com/gmail/api/v1/reference/users/messages/get
有谁知道如何找到电子邮件 ID?
谢谢!
【问题讨论】:
-
为了快速测试,如果您在 gmail 网络应用程序中打开特定电子邮件,它将在 url 中显示消息 ID
标签: gmail-api
我目前正在使用 Gmail API。
https://developers.google.com/gmail/api/v1/reference/users/messages/get
有谁知道如何找到电子邮件 ID?
谢谢!
【问题讨论】:
标签: gmail-api
你需要先按照这里的描述做一个列表(如果你对所有消息都不感兴趣,它在 q 参数中有搜索语义):https://developers.google.com/gmail/api/v1/reference/users/messages/list
这将返回如下所示的消息列表: https://developers.google.com/gmail/api/v1/reference/users/messages#resource
消息id为id字段(“id”:字符串)
【讨论】:
要查找您需要打开消息的消息 ID,请按“...” -> 显示原始消息。 会有消息ID。但它的格式很奇怪,Gmail API 无法理解。
【讨论】: