rvkstat (version 2.6.3)

vkGetUserGroups: List of 'Vkontakte' communities.

Description

Returns the list of communities for the specified user.

Usage

vkGetUserGroups(user_id = NULL, filter = NULL, api_version = NULL,
                 access_token = NULL)

Arguments

user_id

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.

filter

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.

access_token

API access token, obtained using the functions vkAuth or vkGetToken

api_version

Vkontakte API version for send request.

Value

Date frame with community statistics with the following values:

gid

community id.

name

community name.

screen_name

short address, for example, apiclub.

is_closed

is the community closed. Possible values: 0 - open, 1 - closed, 2 - private

type

community type: group - group, page - public page, event - event.

description

community description text.

wiki_page

name of the main wiki page.

members_count

number of members.

start_date

date of foundation.

can_post

information about whether the current user can post on the community wall. Possible values: 1 - can, 0 - can not.

can_see_all_posts

information about whether it is allowed to see other people's posts on the group wall. Possible values: 1 - can, 0 - can not.

activity

public page status bar. For groups, a string value is returned, whether the group is open or not, and for events the start date.

status

community status.

fixed_post

pinned post ID.

verified

information about whether the community is verified. Possible values: 1 - can, 0 - can not.

site

the address of the site from the "web site" field in the community description.

can_create_topic

information on whether the current user can create a new discussion in the group. Possible values: 1 - can, 0 - can not.

photo

URL of the main photo with a size of 50x50px.

photo_medium

URL of the main photo with a size of 100x100px.

photo_big

The URL of the main photo in the maximum size.

Examples

Run this code
# 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