这就是我们使用的. https://developers.google.com/gmail/api/v1/reference/users/messages/list
为了获得一个红星的电子邮件,这就是我们要求的.
获取https://www.googleapis.com/gmail/v1/users/me/messages?q=has%3Ared-star&key= {YOUR_API_KEY}
结果是0.其他标准如:starred,has:附件按预期工作,我们做错了吗?
您无法使用Gmail API中的标记名称.您必须使用以下代码:
has:yellow-star <=> l:^ss_sy
has:blue-star <=> l:^ss_sb
has:red-star <=> l:^ss_sr
has:orange-star <=> l:^ss_so
has:green-star <=> l:^ss_sg
has:purple-star <=> l:^ss_sp
has:red-bang <=> l:^ss_cr
has:yellow-bang <=> l:^ss_cy
has:blue-info <=> l:^ss_cb
has:orange-guillemet <=> l:^ss_co
has:green-check <=> l:^ss_cg
has:purple-question <=> l:^ss_cp
Run Code Online (Sandbox Code Playgroud)
资料来源:http://googlesystem.blogspot.se/2008/07/gmail-superstars.html
| 归档时间: |
|
| 查看次数: |
419 次 |
| 最近记录: |