-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathgm_messages.Rd
55 lines (50 loc) · 1.46 KB
/
gm_messages.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gm_message.R
\name{gm_messages}
\alias{gm_messages}
\title{Get a list of messages}
\usage{
gm_messages(
search = NULL,
num_results = NULL,
label_ids = NULL,
include_spam_trash = NULL,
page_token = NULL,
user_id = "me"
)
}
\arguments{
\item{search}{query to use, same format as gmail search box.}
\item{num_results}{the number of results to return.}
\item{label_ids}{restrict search to given labels}
\item{include_spam_trash}{boolean whether to include the spam and trash folders in the search}
\item{page_token}{retrieve a specific page of results}
\item{user_id}{gmail user_id to access, special value of 'me' indicates the authenticated user.}
}
\description{
Get a list of messages possibly matching a given query string.
}
\examples{
\dontrun{
# Search for R, return 10 results using label 1 including spam and trash folders
my_messages <- gm_messages("R", 10, "label_1", TRUE)
}
}
\references{
\url{https://developers.google.com/gmail/api/reference/rest/v1/users.messages/list}
}
\seealso{
Other message:
\code{\link{gm_attachment}()},
\code{\link{gm_delete_message}()},
\code{\link{gm_import_message}()},
\code{\link{gm_insert_message}()},
\code{\link{gm_message}()},
\code{\link{gm_modify_message}()},
\code{\link{gm_save_attachments}()},
\code{\link{gm_save_attachment}()},
\code{\link{gm_send_message}()},
\code{\link{gm_trash_message}()},
\code{\link{gm_untrash_message}()}
}
\concept{message}