How to get the number of unread threads in INBOX with Gmail API?

前端 未结 3 1791
悲哀的现实
悲哀的现实 2021-01-21 01:42

I tried to use the list thread method:

GET https://www.googleapis.com/gmail/v1/users/{MyEmailAddress}/threads?labelIds=INBOX&labelIds=UNREAD&key={YOUR_AP         


        
3条回答
  •  不知归路
    2021-01-21 02:21

    The Gmail API now provides total and unread counts for messages and threads on each Label using the Labels.Get() method. See: https://developers.google.com/gmail/api/release-notes and https://developers.google.com/gmail/api/v1/reference/users/labels

提交回复
热议问题