imguR (version 1.0.3)

create_comment: 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: token (an OAuth2.0 token), which is required.

Value

account_favorites, an object of class “imgur_gallery_image” or “imgur_gallery_album”.

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.

See Also

get_comment

delete_comment

Examples

Run this code
## 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)

Run the code above in your browser using DataCamp Workspace