# Vk: API wrapper for vk.com Vk is a wrapper for vk.com API ## Project links * [Sources](https://github.com/alsemyonov/vk) * [Documentation](http://rubydoc.info/gems/vk) * [Issue Tracker](https://github.com/alsemyonov/vk/issues) * [Wiki](https://github.com/alsemyonov/vk/wiki) * [![Code Climate](https://codeclimate.com/github/alsemyonov/vk/badges/gpa.svg)](https://codeclimate.com/github/alsemyonov/vk) * [![Test Coverage](https://codeclimate.com/github/alsemyonov/vk/badges/coverage.svg)](https://codeclimate.com/github/alsemyonov/vk/coverage) * [![Build Status](https://travis-ci.org/alsemyonov/vk.png?branch=master)](http://travis-ci.org/alsemyonov/vk) * [![Dependency Status](https://gemnasium.com/alsemyonov/vk.png)](https://gemnasium.com/alsemyonov/vk) ## Installation ```bash gem install vk ``` ## Usage ### Initialization ```ruby Vk.app_id = 12345 Vk.app_secret = 'secret' ``` ### Basic usage Simple request. Docs ad {Vk::Client} ```ruby vk = Vk.client profiles = vk.request 'users.get', user_ids: 12345 puts profiles #=> {"response"=>[{"id"=>12345, "first_name"=>"Виталий", "last_name"=>"Михайлов"}]} ``` ### Usage with DSL View methods list at {Vk::DSL}. ```ruby vk = Vk.client profiles = vk.users.get(user_ids: [123, 456, 789], fields: %w(has_mobile)) p profiles.response # => [ # #