Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/create_comment.r
Create a comment on an image
1 | create_comment(id, comment, parent = NULL, ...)
|
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: |
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
.
For account_favorites
, an object of class “imgur_gallery_image” or “imgur_gallery_album”.
Thomas J. Leeper
1 2 3 4 5 6 7 8 9 10 | ## 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.