likesGetListForObjects: Returns a list of IDs of users who added the specified...

Description Usage Arguments Examples

View source: R/likes.R

Description

Returns a list of IDs of users who added the specified objects to their Likes list

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
likesGetListForObjects(
  objects,
  type = "post",
  filter = "likes",
  friends_only = 0,
  extended = 0,
  skip_own = 0,
  progress_bar = FALSE,
  v = getAPIVersion()
)

Arguments

objects

List of objects (objects must contain fields owner_id and id)

type

Object type (post or comment)

filter

Filters to apply: likes - returns information about all users who liked the object (default); copies - returns information only about users who told their friends about the object

friends_only

Specifies which users are returned: 1 - to return only the current user's friends; 0 - to return all users (default)

extended

Specifies whether extended information will be returned. 1 - to return extended information about users and communities from the Likes list; 0 - to return no additional information (default)

skip_own

flag, either 1 or 0

progress_bar

Display progress bar

v

Version of API

Examples

1
2
3
4
5
6
7
## Not run: 
wall <- getWallExecute(domain = 'privivkanet', count = 10, progress_bar = TRUE)
post_likers <- likesGetListForObjects(wall, type = 'post', progress_bar = TRUE)
post_likers_extended <- likesGetListForObjects(wall, type = 'post',
   extended = 1, progress_bar = TRUE)

## End(Not run)

vkR documentation built on Jan. 13, 2021, 10:09 a.m.