Answer the question
In order to leave comments, you need to log in
VK API error in Python TypeError: __call__() takes exactly 1 argument (2 given) what to fix?
Good afternoon, you need to display a list of user groups
import vk
access_token = "123456789"
v = 5.92
session = vk.Session(access_token=access_token)
vkapi = vk.API(session)
userid=123456789
subscriptions_list = vkapi.users.getSubscriptions( v, user_id=userid, extended=0)['groups']['items']
print(subscriptions_list)
Answer the question
In order to leave comments, you need to log in
subscriptions_list = vkapi.users.getSubscriptions( v = v, user_id=userid, extended=0)['groups']['items']
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question