A simple Ruby client for the iDoneThis API
Add this line to your application's Gemfile:
gem 'idonethis'
And then execute:
$ bundle
client = IDoneThis::Client.new("api_token")
=> #<IDoneThis::Client:0x007fbefba79ab0 @token="...">
teams = client.teams
=> #<HTTParty::Response:... parsed_response={"count"=>1, "next"=>nil, "previous"=>nil, "results"=>[...]>
teams['results'].first['name']
=> "Honeybadger.io"
client.dones(page: 2)['results'].keys
=> ["id", "created", "updated", "markedup_text", "url", "team", "raw_text", "done_date", "team_short_name", "owner", "like_count"]
puts client.done("Used the idonethis gem", "Honeybadger.io")
- Fork it ( http://github.com/stympy/idonethis/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request