create_comment {imguR} | R Documentation |
Create a comments
Description
Create a comment on an image
Usage
create_comment(id, comment, parent = NULL, ...)
Arguments
id |
An image ID or an object of class “imgur_image”. |
comment |
A character string containing the comment. |
parent |
An optional comment ID to reply to. |
... |
Other arguments passed to HTTP request functions, for example: |
Details
account_favorites
retrieves details of a user's favoriates. By default (and if a token
argument is supplied), the current user's favorites are returned. Specifying another username is also possible with or without a token
.
Value
For account_favorites
, an object of class “imgur_gallery_image” or “imgur_gallery_album”.
Author(s)
Thomas J. Leeper
See Also
Examples
## Not run:
tkn <- imgur_login()
# comment on an image
cmt <- create_comment("vSXfU46", "This is a test comment", token = tkn)
# create a reply comment
create_comment("vSXfU46", "This is a test comment", parent = cmt, token = tkn)
## End(Not run)
[Package imguR version 1.0.3 Index]