This project is a wrapper of Utopian APIs. It provides an easy way to use Utopian APIs for Ruby developers.
Ruby V2.4
Gem V2.6.11
The current implementation is a wrapper of Utopian API and the returned values are all in JSON. Next release will be focusing on modelling Utopian entities e.g. add classes including moderator, supervisor, post etc to make developers’ life easier.
A set of rspec test has been written here: https://github.com/yuxir/utopian-ruby/blob/master/spec/utopian_ruby_spec.rb
Just fork this project, create your feature branch, commit your changes and send a pull request!
https://github.com/yuxir/utopian-ruby
This gem has been registered in rubygems.org:
Assuming you already have Ruby development configured, then run:
gem install utopian_ruby_api
require 'utopian_ruby_api'
UtopianRuby::UtopianRubyAPI.get_moderators()["results"]
UtopianRuby::UtopianRubyAPI.get_moderator('elear')
UtopianRuby::UtopianRubyAPI.is_moderator('elear')
UtopianRuby::UtopianRubyAPI.is_supervisor('espoem')
UtopianRuby::UtopianRubyAPI.get_sponsors()["results"]
UtopianRuby::UtopianRubyAPI.is_sponsor('ned')
UtopianRuby::UtopianRubyAPI.get_post('espoem','old-moderated-posts-are-received-and-shown-instead-of-the-recent-one')
Get Utopian current status
UtopianRuby::UtopianRubyAPI.stats()
Check if Utopian bot is voting
UtopianRuby::UtopianRubyAPI.is_voting()
I have added my Steemit account link in the README: