getGroupInfo: Get Information on a VK Group

Description Usage Arguments Details Value Author(s) References Examples

Description

Returns a data.frame with publicly available information on a VK group by its id.

Usage

1
getGroupInfo(group_id, access_token, links = TRUE)

Arguments

group_id

A numeric ID for the VK group. Available from the group's page (see Details).

access_token

Your access token (see ?makeAccessToken).

links

If TRUE (default), includes a data.frame with information on the links posted on the group's webpage as a columns of the returned data.frame.

Details

Many VK groups 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.

Value

A data.frame with columns:

id

group ID

name

group name

screen_name

group screen name (if any)

is_closed

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

description

group description

members_count

number of group members

status

group status

fixed_post

fixed wall post ID

verified

a flag for verified accounts (1 - yes, 0 - no)

links

a data.frame with information on public page links posted on the group page (optional, default). See details at https://vk.com/dev/objects/group

Author(s)

Denis Stukal denis.stukal@nyu.edu

References

VK API Methods: Community (https://vk.com/dev/objects/group)

Examples

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

## End(Not run)

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