Description Usage Arguments Author(s) Examples
getRetweets
connects to the REST API of Twitter and returns a
list of up to 100 user IDs belonging to users who have retweeted the
tweet specified by the id parameter.
1 2 | getRetweets(id = NULL, oauth_folder, cursor = -1, verbose = TRUE,
sleep = 1)
|
id |
The numerical ID of the desired status |
oauth_folder |
folder where OAuth tokens are stored. |
cursor |
See https://dev.twitter.com/docs/api/1.1/get/statuses/retweeters/ids |
verbose |
If |
sleep |
Number of seconds to sleep between API calls. |
Pablo Barbera pablo.barbera@nyu.edu
1 2 3 4 5 | ## Not run:
## Download list of recent user IDs retweeting a tweet by Hillary Clinton
rts <- getRetweets(id='653733796408377344', oauth_folder="~/credentials/twitter")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.