Learn R Programming

qiitr (version 0.1.1)

qiita_user: Qiita User API

Description

Get, follow or unfollow users via Qiita API.

Usage

qiita_get_stockers(item_id, per_page = 100L, page_offset = 0L, page_limit = 1L)

qiita_get_users(user_id)

qiita_get_followees( user_id, per_page = 100L, page_offset = 0L, page_limit = 1L )

qiita_get_followers( user_id, per_page = 100L, page_offset = 0L, page_limit = 1L )

qiita_follow_user(user_id)

qiita_unfollow_user(user_id)

qiita_is_following_user(user_id)

qiita_get_authenticated_user()

Arguments

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.

user_id

User ID (e.g. "yutannihilation").

Examples

Run this code
# NOT RUN {
# get a user by id
qiita_get_users("yutannihilation")

# follow a user
qiita_follow_user("user1")

# unfollow a user
qiita_unfollow_user("user1")

# get the current user
qiita_get_authenticated_user()
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab