user592419
user592419

Reputation: 5233

How can I get a list of threads with a given label id?

In the gmail api, I have a label id. How can I get the list of threads that are under that label id without getting all of the threads and then parsing?

Upvotes: 0

Views: 151

Answers (1)

Jay Lee
Jay Lee

Reputation: 13528

You can use threads.list() and set the labelIds attribute to the label you wish to narrow the threads down to. Here's what it would look like in API Explorer.

Upvotes: 1

Related Questions