Description Usage Arguments Details Value Author(s) References Examples
Returns a data.frame with publicly available information about reposts of a post on a users's wall.
1 | getUserPostReposts(user_id, post_id, access_token)
|
user_id |
A numeric id for the VK group. Available from the group's page (see Details). |
post_id |
A numeric id for the post on the group's wall. |
access_token |
Your access token (see ?makeAccessToken). |
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.
A data.frame with columns:
post_id |
Repost ID |
user_id |
ID of the user who made the repost |
date |
Date of the repost |
text |
Text of the repost |
source_type |
Platform type used to make the repost (possible values: vk, widget, api, rss, sms) |
device |
Device used to make the repost (possible values: iphone, wphone, android) |
url |
Source URL address |
num_comments |
Number of comments the repost got |
num_likes |
Number of likes the repost got |
num_reposts |
Number of reposts the repost got |
num_views |
Number of views the repost got |
Some of the columns may be absent if information unavailable.
Denis Stukal denis.stukal@nyu.edu
VK API Methods: Wall (https://vk.com/dev/wall.getReposts)
1 2 3 4 5 6 7 8 | ## Not run:
mytoken = 'XXXXXXXXXXXXXX'
userid = AAAAAAAA
postid = BBBBBB
dat <- getUserPostReposts(user_id = userid, post_id = postid, access_token = mytoken)
str(dat)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.