forked from r-lib/gmailr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v0.0.3 -- added a messages_info() function that allows you to easily …
…extract the basic information from a gmail_messages object
- Loading branch information
1 parent
9a7ab39
commit 8861775
Showing
4 changed files
with
86 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
% Generated by roxygen2 (4.0.1): do not edit by hand | ||
\name{messages_info} | ||
\alias{messages_info} | ||
\title{Extract information from a list of messages} | ||
\usage{ | ||
messages_info(messages, what = "id") | ||
} | ||
\arguments{ | ||
\item{messages}{The output from \link{messages}.} | ||
|
||
\item{what}{Either \code{'id'}, \code{'threadId'}, \code{'nextPageToken'}, | ||
\code{'resultSizeEstimate'}.} | ||
} | ||
\value{ | ||
For \code{what = 'id'} or \code{what = 'threadId'} a vector with the | ||
message ids or thread ids, respectively. Otherwise the next page token or | ||
result size estimate information. | ||
} | ||
\description{ | ||
Extract the message ids, thread ids, the next page token or the result size | ||
estimate from a \code{gmail_messages} object created with \link{messages}. | ||
} | ||
\examples{ | ||
\dontrun{ | ||
#Search for R, return 10 results using label 1 including spam and trash folders | ||
my_messages = messages("R", 10, "label_1", TRUE) | ||
|
||
## Extract the ids from the messages | ||
ids <- messages_info(my_messages) | ||
|
||
## You can then use these ids as input for other functions. | ||
} | ||
} | ||
\author{ | ||
L. Collado-Torres <lcollado@jhu.edu> | ||
} | ||
\seealso{ | ||
\link{messages} | ||
} | ||
|