无法使用 Gmail API 中的高级搜索来搜索特定的彩色星(超级星). [英] Unable to search for specific coloured star (superstars) using Advanced Search in Gmail API.

查看:17
本文介绍了无法使用 Gmail API 中的高级搜索来搜索特定的彩色星(超级星).的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我们使用的.https://developers.google.com/gmail/api/v1/reference/users/messages/list

为了获得带有红星的电子邮件,这是我们要求的.

In order to GET emails with a red star, this is what we requested.

获取 https://www.googleapis.com/gmail/v1/users/me/messages?q=has%3Ared-star&key={YOUR_API_KEY}

GET https://www.googleapis.com/gmail/v1/users/me/messages?q=has%3Ared-star&key={YOUR_API_KEY}

结果为 0.其他标准,如 is:starred、has:attachment 是否按预期工作,我们做错了吗?

The result was 0. Other criteria such as is:starred, has:attachment worked just as expected, are we doing something wrong?

推荐答案

您不能在 Gmail API 中使用标志的名称.您必须使用以下代码:

You cannot use the names of the flags in the Gmail API. You have to use the following codes:

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

来源:http://googlesystem.blogspot.se/2008/07/gmail-superstars.html

这篇关于无法使用 Gmail API 中的高级搜索来搜索特定的彩色星(超级星).的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆