gm_trash_thread: Send a single thread to the trash

View source: R/gm_thread.R

gm_trash_threadR Documentation

Send a single thread to the trash

Description

Function to trash a given thread by id. This can be undone by gm_untrash_thread().

Usage

gm_trash_thread(id, user_id = "me")

Arguments

id

thread id to access

user_id

gmail user_id to access, special value of 'me' indicates the authenticated user.

References

https://developers.google.com/gmail/api/reference/rest/v1/users.threads/trash

See Also

Other thread: gm_delete_thread(), gm_modify_thread(), gm_threads(), gm_thread(), gm_untrash_thread()

Examples

## Not run: 
gm_trash_thread(12345)

## End(Not run)

r-lib/gmailr documentation built on Nov. 5, 2023, 6:22 a.m.