📜 ⬆️ ⬇️

VKontakte Ruby API

(The post is placed at the request of the user karevn . Direct all the advantages to karma to him)

***

The other day during the development of your project there was a need to contact the VKontakte API. I did not find anything suitable in Ruby, so I decided to write a minimalist-ninjutsu library. The library contains only one Session class, which allows you to treat your instances as if they were VK objects:
')
session = ::VK::Session.new app_id, api_secret
friends_hash = session.friends.get :uid => 15003575


Such a call will return the parsed JSON containing an array of hashes. If the VK server doesn’t like something, the library will throw an exception.

That's all. Use, suggest improvements.

Repository on github .

Source: https://habr.com/ru/post/114514/


All Articles