I am using gmail api to fetch messages. I am giving the request parameter as: “from:[email protected] is:unread”.
Here I am not getting messages in response when my mailbox has one.
Note that the same query works in gmail search tool.
Request details:
Request URL: https://gmail.googleapis.com/gmail/v1/users/me/messages?q=”from:[email protected] is:unread”
Request Scope: https://www.googleapis.com/auth/gmail.readonly
Response: {
“resultSizeEstimate”: 0
}
Any inputs? Thanks in advance 🙂
Prachi Dhingra is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Worked with this query:
https://gmail.googleapis.com/gmail/v1/users/me/messages?q=”from:[email protected]” AND “is:unread”
Prachi Dhingra is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1