且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在我解析时使用gmail api将邮件标记为已读?

更新时间:2023-12-02 17:49:46

您需要在单独的请求中修改该邮件,然后删除 UNREAD -标签.

You need to modify the message in a separate request, and remove the UNREAD-label.

POST https://www.googleapis.com/gmail/v1/users/me/messages/1533cb4d7dac1633/modify?access_token={ACCESS_TOKEN}

{
 "removeLabelIds": [
  "UNREAD"
 ]
}