Description Usage Arguments Details Value See Also Examples
This returns comments made by one user. Comments can be requested for a specific timeframe or sort order.
1 2 3 4 5 6 7 8 9 10 11 12 |
user |
The username of the user for which comments are requested. |
accesstoken |
The accesstoken required to access the endpoint. Scope
must be |
sort |
The order in which the submissions of the user should be ordered when accessing them. Possible values are:
|
time |
The timeframe for the
|
limit |
The maximum number of user comments to return. Must be a number between 1 and 100. |
after |
The fullname of a comment serving as anchor in the request. Comments after this comment in the listing are returned. |
before |
The fullname of a comment serving as anchor in the request. Comments before this comment in the listing are returned. |
output |
What the function should return. Choose |
verbose |
A logical flag whether information about the data extraction should be printed to the console. |
retry |
A logical flag whether a failed api request should be retried. Requests will be tried up to three times with varying time intervals between requests. |
More info at https://www.reddit.com/dev/api/
Comments for the specified user as a dataframe, json object or a list containing both.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
history_token <- get_token(scope = "history",
useragent = my_useragent,
username = my_username,
password = my_password,
client_id = my_client_id,
client_secret = my_client_secret)
#Get 10 comments made by Keanu Reeves
keanu_comments <- get_user_comments(user = "_KeanuReeves",
accesstoken = history_token,
sort = "top", time = "all",
limit = 10)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.