Guest User

EasyVK upload cover example vk api nodejs

a guest
Apr 10th, 2020
194
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let res = await vk.uploader.upload({
  2.     getUrlMethod: 'photos.getOwnerCoverPhotoUploadServer',
  3.     getUrlParams: {
  4.       group_id: vk.session.group_id
  5.     },
  6.     file: './r-02bmpjcT0.jpg',
  7.     field: 'photo',
  8.     saveMethod: 'photos.saveOwnerCoverPhoto'
  9.   })
RAW Paste Data