Returns the list of communities for the specified user.
vkGetUserGroups(
user_id = NULL,
filter = NULL,
username = getOption("rvkstat.username"),
api_version = getOption("rvkstat.api_version"),
token_path = vkTokenPath(),
access_token = getOption("rvkstat.access_token")
)
user ID for which you want to get a list of friends. If the parameter is not specified, it is considered that it is equal to the identifier of the current user.
A list of community filters to be returned, separated by commas. The values are admin, editor, moder, groups, publics, events. By default, all user communities are returned. If the admin filter is specified, the communities in which the user is an administrator, editor - administrator or editor, moder - administrator, editor or moderator will be returned.
Your vkontakte login.
Vkontakte API version.
Path to dir with credentials
API access tokens obtained using vkAuth or vkGetToken functions
Date frame with community statistics with the following values:
community id.
community name.
short address, for example, apiclub.
is the community closed. Possible values: 0 - open, 1 - closed, 2 - private
community type: group - group, page - public page, event - event.
community description text.
name of the main wiki page.
number of members.
date of foundation.
information about whether the current user can post on the community wall. Possible values: 1 - can, 0 - can not.
information about whether it is allowed to see other people's posts on the group wall. Possible values: 1 - can, 0 - can not.
public page status bar. For groups, a string value is returned, whether the group is open or not, and for events the start date.
community status.
pinned post ID.
information about whether the community is verified. Possible values: 1 - can, 0 - can not.
the address of the site from the "web site" field in the community description.
information on whether the current user can create a new discussion in the group. Possible values: 1 - can, 0 - can not.
URL of the main photo with a size of 50x50px.
URL of the main photo with a size of 100x100px.
The URL of the main photo in the maximum size.
Documentation for API method groups.get: https://vk.com/dev/groups.get
# NOT RUN {
## auth
my_tok <- vkAuth(app_id = 1, app_secret = "H2Pk8htyFD8024mZaPHm")
## get groups
my_vk_community <- vkGetUserGroups(user_id = 7437995,
access_token = my_tok$access_token)
# }
Run the code above in your browser using DataLab