qiita_comment {qiitr}R Documentation

Qiita Comments API

Description

Get, write, update or delete comments via Qiita API.

Usage

qiita_get_comments(
  comment_id = NULL,
  item_id = NULL,
  per_page = 100L,
  page_offset = 0L,
  page_limit = 1L
)

qiita_delete_comment(comment_id)

qiita_update_comment(comment_id, body)

qiita_post_comment(item_id, body)

Arguments

comment_id

Comment ID.

item_id

Item (article) ID.

per_page

Number of items per one page.

page_offset

Number of offset pages.

page_limit

Max number of pages to retrieve.

body

body of the item

Examples

## Not run: 
# get a comment by id
qiita_get_comments(comment_id = "1fdbb164e19d79e10203")

# get comments by item id
qiita_get_comments(item_id = "b4130186e1e095719dcb")

# post a comment to some item
qiita_post_comment(item_id = "123456789", body = "Thank you!!!")

## End(Not run)

[Package qiitr version 0.1.1 Index]