getGroupPostComments: Get Comments to a Post on a Group's Wall

Description Usage Arguments Details Value Author(s) References Examples

Description

Returns a data.frame with publicly available information about comments to a post on a group's wall.

Usage

1
getGroupPostComments(group_id, post_id, access_token)

Arguments

group_id

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

post_id

A numeric id for the post on the group's wall.

access_token

Your access token (see ?makeAccessToken).

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

Comment ID

from_id

Comment author's ID

date

Date when the comment was posted

text

Comment text

likes_count

Number of likes the comment got

reply_to_user

User ID whom this comment replies to (NA if not a reply)

reply_to_comment

Comment ID to which this comment replies to (NA if not a reply)

Author(s)

Denis Stukal denis.stukal@nyu.edu

References

VK API Methods: Wall (https://vk.com/dev/wall.getComments)

Examples

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

## End(Not run)

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