A
A
abonu2019-12-11 15:29:42
API
abonu, 2019-12-11 15:29:42

How to use groups.getById in appWidgets.update VK API?

I'm trying to update a widget using the appWidgets.update method. If I don't use the line in the code parameter:
var group = API.groups.getById({ group_id: "apiclub"})[0];
then the widget is displayed, if I use it, then the appWidgets.update method returns 1, i.e. everything is fine, but the widget itself is not displayed.
For info: the first line is
var user = API.users.get({ id: Args.uid })[0];
those. the syntax is ok. I tried to execute the code on the page https://vk.com/dev/execute , everything is fine too.
Has anyone used groups.getById in widget code? Please share what works.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question