create_comment: Create a comments

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/create_comment.r

Description

Create a comment on an image

Usage

1
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.

Value

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

 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)

imguR documentation built on May 2, 2019, 4:02 p.m.