qiita_comment: Qiita Comments API

Description Usage Arguments Examples

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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)

qiitr documentation built on July 8, 2020, 5:44 p.m.