This gem is an OmniAuth 1.0 Strategy for the Toodledo.
It supports version 2 of the Toodledo API.
Add the strategy to your Gemfile
alongside OmniAuth:
gem 'omniauth'
gem 'omniauth-toodledo'
Then integrate the strategy into your middleware:
use OmniAuth::Builder do
provider :toodledo, app_id => ENV['TOODLEDO_APP_ID'], app_token => ENV['TOODLEDO_APP_TOKEN']
end
In Rails, you'll want to add to the middleware stack:
Rails.application.config.middleware.use OmniAuth::Builder do
provider :toodledo, ENV['TOODLEDO_APP_ID'], ENV['TOODLEDO_APP_TOKEN']
end
You will have to put in your app id and token.
For additional information, refer to the Developer's API Documentation.
OmniAuth-Toodledo is tested under 1.9.2, 1.9.3, JRuby (1.9 mode), and Rubinius (1.9 modes).
With some problem (the shit ";" in toodledo url, and Hash in 1.8 is disordered, ruby 1.9 fixed it. This didn't influence the lib, but can't pass webmock/spec), OmniAuth-Toodledo test fail in 1.8. You can try it yourself in 1.8, and please tell me it works.
- Fork the project.
- Make your feature addition or bug fix.
- Add tests for it. This is important so I don't break it in a future version unintentionally.
- Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
- Send me a pull request. Bonus points for topic branches.
License under The MIT License. See LICENSE for details.