| get_collections {rtweet} | R Documentation |
Find collections (themed grouping of statuses) created by specific user or status id. Results include user, status, and collection features.
get_collections( user, status_id = NULL, n = 200, cursor = NULL, parse = TRUE, token = NULL )
user |
Screen name or user id of target user. Requests must provide a value for one of user or status_id. |
status_id |
Optional, the identifier of the tweet for which to return results. Requests must provide a value for one of user or status_id. |
n |
Maximum number of results to return. Defaults to 200. |
cursor |
Page identifier of results to retrieve. If parse = TRUE,
the next cursor value for any given request–if available–is stored
as an attribute, accessible via |
parse |
Logical indicating whether to convert response object into nested list. Defaults to true. |
token |
Every user should have their own Oauth (Twitter API) token. By
default |
Return object converted to nested list if parsed otherwise an HTTP response object is returned.
## Not run:
## lookup a specific collection
cnnc <- get_collections("cnn")
## inspect data
str(cnnc)
## by status id
wwe <- get_collections(status_id = "925172982313570306")
## inspect data
str(wwe)
## End(Not run)