getUserWallReposts: Get Reposts of Posts from a User's Page

Description Usage Arguments Details Value Author(s) References Examples

Description

Returns a data.frame with information about reposts of posts on a user's page.

Usage

1
getUserWallReposts(user_id, access_token, num_posts = 'all', verbose = FALSE)

Arguments

user_id

A numeric ID of a VK user. Available from the user's page (see Details).

access_token

Your access token (see ?makeAccessToken).

num_posts

Number of posts to consider. Either 'all' (default) or a positive integer.

verbose

Boolean: if FALSE (default), informational messages are suppressed.

Details

Many users have their ID as part of their URL address (e.g. https://vk.com/idUSERID, where USERID is a sequence of numbers). In the event users have screen names that do not show their ID in the URL, one can access them by clicking on the user's post (or photo, video, etc.): the post will open with a new URL of the form https://vk.com/SCREENNAME?w=wall-USERID_POSTID). Pass USERID (without the minus sign in front of it) to the function call.

Value

Returns a data.frame with columns:

repost_id

A numeric repost ID

reposter_id

A numeric user ID who made the repost

receiver_id

A numeric user ID to whose page the repost was made

date

Date of the repost

text

Text of the repost

num_comments

Number of comment the repost received

num_likes

Number of likes the repost received

num_reposts

Number of reposts of the repost

num_views

Number of views of the repost

reposted_user_id
repost_of_post_id

Author(s)

Denis Stukal denis.stukal@nyu.edu

References

VK API Methods: Wall (https://vk.com/dev/wall.getReposts)

Examples

1
2
3
4
5
6
7
## Not run: 
mytoken = 'XXXXXXXXXXXXXX'
userid = AAAAAAAA
dat <- getUserWallReposts(user_id = userid, access_token = mytoken)
str(dat)

## End(Not run)

denisStukal/Rvk documentation built on June 3, 2019, 5:56 p.m.