Skip to content

Latest commit

 

History

History
20 lines (18 loc) · 450 Bytes

README.md

File metadata and controls

20 lines (18 loc) · 450 Bytes

vk-poster

Simple poster on publics and groups for vk.com

How to use

Configure Poster

  VK::ImagePoster.configure do |config|
    config.app_id = APP_ID
    config.app_secret = APP_SECRET
    config.secret_token  = APP_SECRET_TOKEN
  end

Create a poster

  poster = VK::ImagePoster.new

Change group or public

  gid = '31644851' 

Upload image on group wall

  poster.wall_post(gid , "test2.jpg")