Project

vkdonate

0.0
No release in over 3 years
Low commit activity in last 3 years
This is small non-official gem which provides interface to interact with vkdonate.ru API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.3
 Project Readme

Vkdonate

This is small non-official gem which provides interface to interact with vkdonate.ru API.

Installation

Add this line to your application's Gemfile:

gem 'vkdonate'

And then execute:

$ bundle

Or install it yourself as:

$ gem install vkdonate

Usage

You can check documentation here.

To interact with API you are to initialize client firstly:

client = Vkdonate::Client.new("API KEY GOES HERE")

After that you can call method Client#donates which returnes array of Donate objects:

donates = client.donates(count: 10, order: :asc)
Vkdonate::Donate === donates[0] # => true
puts donates
=begin
Output:
Donation #1219946 by @157230821 for 1RUR (at 2019-09-22T01:35:47+03:00)
Donation #1219943 by @157230821 for 1RUR (at 2019-09-22T01:34:59+03:00)
Donation #1219941 by @157230821 for 1RUR (at 2019-09-22T01:33:37+03:00)
=end