getUserGroupsInfo: Get Information on Groups a User Belongs to

Description Usage Arguments Details Value Author(s) References Examples

Description

Returns a data.frame with information about groups which a user belongs to.

Usage

1
getUserGroupsInfo(user_id, access_token)

Arguments

user_id

A numeric id for the user whose friends are requested. Available from the user's page (see Details).

access_token

Your access token (see ?makeAccessToken).

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.

Universities, schools, and jobs are sorted from last to first by the start year (if available). Last position is returned by default.

Value

A data.frame with columns (can vary due to information availability):

id

Group ID

name

Group name

screen_name

Group screen name

is_closed

Flag for group type (0 - open, 1 - closed, 2 - private)

type

Group, or public page, or event

photo_50

URL address for the 50px-wide group logo

...

Other fields if available

For more information about fields, see References.

Author(s)

Denis Stukal denis.stukal@nyu.edu

References

VK API Methods: Groups (https://vk.com/dev/groups.get)

Examples

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

## End(Not run)

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