Project

idonethis

0.0
No commit activity in last 3 years
No release in over 3 years
Simple client for the iDoneThis API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.5
>= 0

Runtime

 Project Readme

IDoneThis

A simple Ruby client for the iDoneThis API

Installation

Add this line to your application's Gemfile:

gem 'idonethis'

And then execute:

$ bundle

Usage

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")

Contributing

  1. Fork it ( http://github.com/stympy/idonethis/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request