direct_messages {rtweet} | R Documentation |
Get direct messages sent to and received by the authenticating user from the past 30 days
Description
Returns all Direct Message events (both sent and received) within the last 30 days. Sorted in reverse-chronological order. Includes detailed information about the sender and recipient.
Usage
direct_messages(
n = 50,
cursor = NULL,
next_cursor = NULL,
parse = TRUE,
token = NULL,
retryonratelimit = NULL,
verbose = TRUE
)
Arguments
n |
Desired number of results to return. Results are downloaded
in pages when The Twitter API rate limits the number of requests you can perform
in each 15 minute period. The easiest way to download more than that is
to use You are not guaranteed to get exactly |
cursor |
Which page of results to return. The default will return the first page; you can supply the result from a previous call to continue pagination from where it left off. |
next_cursor |
|
parse |
If |
token |
Use this to override authentication for
a single API call. In many cases you are better off changing the
default for all calls. See |
retryonratelimit |
If If you expect a query to take hours or days to perform, you should not
rely solely on |
verbose |
Show progress bars and other messages indicating current progress? |
Value
A list with one element for each page of results.
References
See Also
Examples
## Not run:
## get my direct messages
direct_messages()
## End(Not run)