Description Usage Arguments Details Value Author(s) References Examples
Returns a vector of user IDs who liked a post on a user's page.
1 | getUserPostLikes(user_id, post_id, access_token, offset = 0)
|
user_id |
A numeric user ID. Available from the user's page (see Details). |
post_id |
A numeric ID of a post on a user's page. |
access_token |
Your access token (see ?makeAccessToken). |
offset |
Number of the output element to start scraping from. |
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 vector of user IDs.
Denis Stukal denis.stukal@nyu.edu
VK API Methods: Likes (https://vk.com/dev/likes.getList)
1 2 3 4 5 6 7 8 9 | ## Not run:
mytoken = 'XXXXXXXXXXXXXX'
userid = AAAAAAAA
postid = BBBBBB
dat <- getUserPostLikes(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.