inertia Ⓐ³ avatar

radiator - STEEM Ruby API Client

inertia

Published: 19 Aug 2016 › Updated: 19 Aug 2016radiator - STEEM Ruby API Client

radiator - STEEM Ruby API Client

Installation

Add the gem to your Gemfile:

gem 'radiator', github: 'inertia186/radiator'

Then:

$ bundle install

Usage

require 'radiator'

api = Radiator::Api.new
response = api.get_dynamic_global_properties
response.result.virtual_supply
=> "135377049.603 STEEM"

Follower API

api = Radiator::FollowerApi.new
response = api.get_followers('inertia', 0, 'blog', 100)
response.result.map(&:follower)
=> ["a11at",
 "abarefootpoet",
 "abit",
 "alexgr",
 "alexoz",
 "andressilvera",
 "applecrisp",
 "arrowj",
 "artificial",
 "ash",
 "ausbitbank",
 "beachbum",
 "ben99",
 "benadapt",
 .
 .
 .
"steemzine"]

Tests

  • Clone the client repository into a directory of your choice:
    • git clone https://github.com/inertia186/radiator.git
  • Navigate into the new folder
    • cd radiator
  • Basic tests can be invoked as follows:
    • rake
  • To run tests with parallelization and local code coverage:
    • HELL_ENABLED=true rake

Get in touch!

If you're using Radiator, I'd love to hear from you. Drop me a line and tell me what you think! I'm inertia@inertia on STEEM.

radiator

License

I don't believe in intellectual "property". If you do, consider Radiator as licensed under a Creative Commons CC0 License.

http://github.com/inertia186/radiator

Leave radiator - STEEM Ruby API Client to:

Written by

I can see the fnords.

Read more #steem posts


Best Posts From inertia Ⓐ³

We have not curated any of inertia's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From inertia Ⓐ³