Description Usage Arguments Details Value Author(s) References Examples
Returns a Boolean vector.
1 | checkUsersAreMembers(user_ids, group_id, access_token)
|
user_ids |
A numeric user ID. Available from the group's page (see Details). |
group_id |
A numeric ID for the VK group. Available from the group's page (see Details). |
access_token |
Your access token (see ?makeAccessToken). |
Many VK groups and users have their ID as part of their URL address (e.g. https://vk.com/publicGROUPID, where GROUPID is a sequence of numbers). In the event a group has a screen name that does not show its ID in the URL, one can access it by clicking on any group post (or photo, video, etc.): the post will open with a new URL of the form https://vk.com/SCREENNAME?w=wall-GROUPID_POSTID). Pass GROUPID (without the minus sign in front of it) to the function call.
A Boolean vector (TRUE if a user is a member, FALSE otherwise).
Denis Stukal denis.stukal@nyu.edu
VK API Methods: Groups (https://vk.com/dev/groups.isMember)
1 2 3 4 5 6 7 8 9 | ## Not run:
mytoken = 'XXXXXXXXXXXXXX'
groupid = AAAAAAAA
userids = c(BBBBBBB, CCCCCCC, DDDDDDD)
dat <- checkUsersAreMembers(user_ids = userids,
group_id = groupid, 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.