powered by
Returns a list of the communities to which a user belongs
getGroups( user_id = "", extended = "", filter = "", fields = "", offset = "", count = "", v = getAPIVersion() )
User ID
1 - to return complete information about a user's communities; 0 - to return a list of community IDs without any additional fields (default)
Types of communities to return: admin, editor, moder, groups, publics, events
List of additional fields to be returned
Offset needed to return a specific subset of communities
Number of communities to return (maximum value 1000)
Version of API
# NOT RUN { groups <- getGroups(me(), extended = 1, fields = 'city') # }
Run the code above in your browser using DataLab