C
C
ceyolic2021-10-25 15:08:16
Python
ceyolic, 2021-10-25 15:08:16

Error in code with wall.get?

my_token = 'token'
session = vk_api.VkApi(token = my_token)
vk = session.get_api()
def get_id_post():
vk.method('wall.get', {'owner_id' : 'community id here', 'count ' : 1})
get_id_post()

throws an error:
get_id_post()
vk.method('wall.get', {'owner_id' : '-204580035', 'count' : 1})
TypeError: __call__() takes 1 positional argument but 3 were given

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Gamovich, 2021-10-27
@GAMch1k

Google

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question