create_comment function

Create a comments

Create a comments

Create a comment on an image

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.

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.

Returns

For account_favorites, an object of class imgur_gallery_image or imgur_gallery_album .

Author(s)

Thomas J. Leeper

See Also

get_comment

delete_comment

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)
  • Maintainer: Thomas J. Leeper
  • License: GPL-3
  • Last published: 2016-03-29