missing /Gmail API users.threads/modify with labels?
tomholub opened this issue · comments
Tom J commented
Hello,
per https://developers.google.com/gmail/api/reference/rest/v1/users.threads/modify the API should accept a list of labels (eg to archive the whole thread).
{
"addLabelIds": [
string
],
"removeLabelIds": [
string
]
}
However, the library thread interface doesn't mention labels:
@interface GTLRGmail_Thread : GTLRObject
/**
* The ID of the last history record that modified this thread.
*
* Uses NSNumber of unsignedLongLongValue.
*/
@property(nonatomic, strong, nullable) NSNumber *historyId;
/**
* The unique ID of the thread.
*
* identifier property maps to 'id' in JSON (to avoid Objective C's 'id').
*/
@property(nonatomic, copy, nullable) NSString *identifier;
/** The list of messages in the thread. */
@property(nonatomic, strong, nullable) NSArray<GTLRGmail_Message *> *messages;
/** A short part of the message text. */
@property(nonatomic, copy, nullable) NSString *snippet;
Did we overlook a way to do it, or is it missing in the lib? Thanks!
Tom J commented
Sorry, just noticed this:
/**
* GTLRGmail_ModifyThreadRequest
*/
@interface GTLRGmail_ModifyThreadRequest : GTLRObject
/** A list of IDs of labels to add to this thread. */
@property(nonatomic, strong, nullable) NSArray<NSString *> *addLabelIds;
/** A list of IDs of labels to remove from this thread. */
@property(nonatomic, strong, nullable) NSArray<NSString *> *removeLabelIds;
@end