gpt4 book ai didi

gmail - 无法使用 Gmail API 中的高级搜索来搜索特定颜色的星号( super 星号)。

转载 作者:行者123 更新时间:2023-12-01 15:56:02 26 4
gpt4 key购买 nike

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

为了 GET 带有红星的邮件,这就是我们所要求的。

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

结果为 0。其他标准,如 is:starred、has:attachment 工作正常,我们是不是做错了什么?

最佳答案

您不能在 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

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

关于gmail - 无法使用 Gmail API 中的高级搜索来搜索特定颜色的星号( super 星号)。,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31157723/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com