Answer the question
In order to leave comments, you need to log in
Why is there an error in vk api appWidget.Update?
Call the appWidget.Update method with the following parameters
$data = array(
'type' => 'list',
'access_token' => $token,
'v' => '5.73',
'code' => '
var u = API.users.get()[0];
var name = u.first_name + " " + u.last_name;
var id = u.id;
return {
"title": "Тест",
"rows":
[
{ "title": "Лучший пользователь - " + name,"descr": "Да-да, это ты.","icon_id" : "id" + id}
]
};'
);
let execute = 'var u = API.users.get()[0];var name = u.first_name + " " + u.last_name; var id = "id" + u.id; return {"title": "тест", "rows": [{ "title": "Лучший пользователь - " + name, "icon_id" : id, "descr": "Да-да, это ты."}]};';
VK.callMethod("showAppWidgetPreviewBox", 'list', execute)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question