Minimal GetGlue API client. Built on HTTParty.
Support OAuth and V2 API.
Add this line to your application's Gemfile:
gem 'getglue', :git => 'git@github.com:dleavitt/politifact.git'
And then execute:
$ bundle
Or install it yourself as:
$ gem install getglue
Set consumer key and secret. These can be obtained by emailing api@getglue.com.
GetGlue.consumer_key = '<your-key>'
GetGlue.consumer_secret = '<your-secret>'
Pass oauth token and secret to constructor. Get these through omniauth-getglue or similar.
GetGlue.new('oauth-token', 'oauth-secret')
profile = GetGlue.get('/user/profile')
See the GetGlue API docs for a list of available calls. http://getglue.com/api
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request