powered by
Get a list of threads possibly matching a given query string.
threads(search = NULL, num_results = NULL, page_token = NULL, label_ids = NULL, include_spam_trash = NULL, user_id = "me")
query to use, same format as gmail search box.
the number of results to return.
retrieve a specific page of results
restrict search to given labels
boolean whether to include the spam and trash folders in the search
gmail user_id to access, special value of 'me' indicates the authenticated user.
https://developers.google.com/gmail/api/v1/reference/users/threads/list
Other thread: delete_thread, modify_thread, thread, trash_thread, untrash_thread
delete_thread
modify_thread
thread
trash_thread
untrash_thread
# NOT RUN { my_threads = threads() first_10_threads = threads(10) # }
Run the code above in your browser using DataLab