The doyoubuzz-showcase
gem is a thin ruby wrapper for the DoYouBuzz Showcase API. Based around the HTTParty gem, it handles the authorization and HTTP calls, and wraps the results in a Hashie::Mash for a simpler usage.
- httparty
- hashie
- ruby >= 2.1.0
Add this line to your application's Gemfile:
gem 'doyoubuzz-showcase'
And then execute:
$ bundle
Or install it yourself as:
$ gem install doyoubuzz-showcase
# Authenticate with your API credentials
client = Doyoubuzz::Showcase.new('your_api_key', 'your_api_secret')
# Getting a results collection
response = client.get '/users'
puts response.users.items.first.email
# $ john.doe@domain.com
# Get another page
response = client.get '/users', :page => 2
# Associate a tag to a user
response = client.put '/users/12345/associateTags', :tags => [12, 13, 14]
- Fork it
- 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