getFriends: Returns a list of user IDs or detailed information about a...

Description Usage Arguments Examples

View source: R/friends.R

Description

Returns a list of user IDs or detailed information about a user's friends

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
getFriends(
  user_id = "",
  order = "",
  list_id = "",
  count = "",
  offset = "",
  fields = "",
  name_case = "",
  flatten = FALSE,
  v = getAPIVersion()
)

Arguments

user_id

User ID. By default, the current user ID

order

Sort order (name - by name, hints - by rating)

list_id

ID of the friend list returned by the friends.getLists method to be used as the source. This parameter is taken into account only when the uid parameter is set to the current user ID

count

Number of friends to return

offset

Offset needed to return a specific subset of friends

fields

Profile fields to return

name_case

Case for declension of user name and surname

flatten

Automatically flatten nested data frames into a single non-nested data frame

v

Version of API

Examples

1
2
3
4
5
## Not run: 
friends_list <- getFriends(user_id=1, order='name', fields='bdate')
friends <- friends_list$items

## End(Not run)

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