What is the project about?
This project is a wrapper of Utopian APIs. It provides an easy way to use Utopian APIs for Ruby developers. I am very glad to see that this gem has got 279 downloads from Rubygems since last submission.
Here is a summary of work being done for this submission:
https://github.com/yuxir/utopian-ruby/commits/master
Technology Stack
Ruby V2.4
Gem V2.6.11
Roadmap
V0.0.1: it provides a wrapper of Utopian API and the returned values are all in JSON.
V0.0.2(This submission): add moderator and post classes to make developers’ life easier.
Next release: will be focusing on adding more helper classes.
Test
A set of rspec tests has been added into this file: https://github.com/yuxir/utopian-ruby/blob/master/spec/utopian_ruby_spec.rb
How to contribute?
Just fork this project, create your feature branch, commit your changes and send a pull request!
https://github.com/yuxir/utopian-ruby
Installation
Assuming you already have Ruby development configured, then run:
gem install utopian_ruby_api
How to use it? (New features only)
Get moderator information
Get all moderators objects:
require 'utopian_ruby_api'
UtopianRuby::UtopianRubyAPI.get_moderators_obj().each do |m|
puts m.account
end
Get a particular moderator’s object
UtopianRuby::UtopianRubyAPI.get_moderator_obj('elear')
Get posts
Get post objects
UtopianRuby::UtopianRubyAPI.get_posts_obj({"limit":2}).each do |p|
puts p.author
puts p.moderator
end
Get a particular post object:
UtopianRuby::UtopianRubyAPI.get_post_obj('espoem','old-moderated-posts-are-received-and-shown-instead-of-the-recent-one')
Proof of work
I have added my Steemit account link in the README:
Posted on Utopian.io - Rewarding Open Source Contributors
Thank you for the contribution. It has been approved.
Very neat code. The instructions are clear. I like your tests. You seem to have been inspired by @elear, @espoem and @ned while writing them.
A link to the previous post would have been a nice touch.
You can contact us on Discord.
[utopian-moderator]
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Thanks for your suggestion, I will add links to my next submission.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
I like your contribution to open source project, so I upvote to support you.
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
thanks
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
代码写得不错。
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
哈哈,谢谢啦
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
Hey @yuxi I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
good !!
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
英文太烂,看不懂干着急
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
其实就是在Ruby里封装了乌托邦的官方API
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit
我发现我啥也不会。。。。😭😭😭
Downvoting a post can decrease pending rewards and make it less visible. Common reasons:
Submit