Miss any of our Open RFC calls?Watch the recordings here! »

vk-cover-wrapper

1.0.3 • Public • Published

VK Cover Wrapper

Easy way to upload and save cover to your community.

Install

$ npm i vk-cover-wrapper

Usage

const { uploadAndSaveCoverPhoto } = require('vk-cover-wrapper')
 
uploadAndSaveCoverPhoto(12345678, 'AvgY7aDV00hH7aVGSDJUFI1', './cover.jpg')
  .then((body) => {
    console.log(body)
    // {
    //   response: {
    //     images: [ [Object], [Object], [Object], [Object], [Object] ]
    //   }
    // }
  })

Docs

.uploadAndSaveCoverPhoto(groupId, groupToken, coverPath)

Parameter Type Requried
groupId number or string yes
groupToken string yes
coverPath string yes

...

License

MIT.

Install

npm i vk-cover-wrapper

DownloadsWeekly Downloads

0

Version

1.0.3

License

MIT

Last publish

Collaborators

  • avatar