You need a working example of the request body - using Node.js with npm 'request' to make a POST request to the appWidgets.update method. group_id where to insert? access_token key must be manually taken only from the group ? Will I have to do input-text inside the application so that its administrator manually stores it there every time? Is it possible to call VK.callMethod ("showGroupSettingsBox", 64) from the server to get the key from it right away? Sample code:

const request = require('request') const code = 'return { \ "title": "My Table", \ "title_url": "https://vk.com/public123", \ "title_counter": 31, \ "more": "Посмотреть все результаты", \ "more_url": "https://vk.com/app123_-777", \ "head": [{ \ "text": "Название первой колонки" \ }, { \ "text": "Название второй колонки", \ "align": "center" \ }], \ ...' request.post({ url: 'https://api.vk.com/method/appWidgets.update', form: { 'type': 'table', 'access_token': access_token, 'code': code, 'v':'5.92' }, headers: {'Content-type': 'application/x-www-form-urlencoded'} },(error, res, body) => { if (error) console.error(error) console.log(res.statusCode,body) }) 
  • Checked: the code is working and changes are made to the widget, but how to automate the receipt of access_token is unclear. It is most likely wrong to make a field for a key linked to group_id. - Roman
  • vk.com/dev/... you need to run a query to oauth.vk.com to get access_token - Roman

0