如何使用Gmail查询修改标签 [英] How can I modify the labels using Gmail Query
问题描述
是否可以使用gmail查询(GTLQueryGmail)修改标签.我浏览了api文档,执行此操作的api是:- https://www.googleapis.com/auth/gmail.modify
Is there any way to modify the label using gmail query (GTLQueryGmail). I had gone through the api documentations the api which perform this is:- https://www.googleapis.com/auth/gmail.modify
我希望通过iOS中的gmail Query完成此操作
I want this to be done through gmail Query in iOS
预先感谢
推荐答案
我不知道GTL查询具体是什么,我想像一些iOS客户端对象." https://www.googleapis.com/auth/gmail.modify "提及的只是您需要在oauth2令牌中允许进行调用的auth作用域名称(有一些实际上可以用于修改标签).
I don't know what GTL Query is specifically, I imagine some iOS client object. the "https://www.googleapis.com/auth/gmail.modify" you mention is just the auth scope name you need in your oauth2 token in to be allowed to make the call (there are a few that'll work for modifying labels actually).
您要执行的操作是使用消息Modify()操作,我不知道在iOS中将其转换为什么,但是这里有文档: https://developers.google.com/gmail/api/v1/reference/users/messages/modify
What you want to do is use the message modify() operation, I don't know what that translates to in iOS but here are docs on it: https://developers.google.com/gmail/api/v1/reference/users/messages/modify
或者要更改线程中所有消息的标签,请使用线程修改: https://developers.google.com/gmail/api/v1/reference/users/threads/modify
Or to change labels on all messages in a thread, use thread modify: https://developers.google.com/gmail/api/v1/reference/users/threads/modify
这篇关于如何使用Gmail查询修改标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!