Tagstand
This gem is still under development. Use at your own risk.
Requirements
You will need a Tagstand API Key in order to get started.
Installation
(sudo) gem install tagstand
Usage
Please refer to the Tagstand API Documentation for more information about the API, or follow the examples below:
require 'tagstand'
Tagstand.api_key = ENV['TAGSTAND_API_KEY']
= Tagstand::Tag.create
tag.created_at
tag.votes
taps = Tagstand::Tap.list
taps.total_taps_count
taps.taps
user = Tagstand::User.create('[email protected]')
key = Tagstand::User.key('[email protected]', 'password')
And that’s it!
Errors
Errors are based on the HTTP response of the request, so that you can rescue accordingly:
rescue Tagstand::ClientError > req
rescue Tagstand::BadRequest > req
rescue Tagstand::NotFound > req
rescue Tagstand::Unauthorized > req
Contributing to Tagstand
-
Check out the latest master to make sure the feature hasn’t been implemented or the bug hasn’t been fixed yet.
-
Check out the issue tracker to make sure someone already hasn’t requested it and/or contributed it.
-
Fork the project.
-
Start a feature/bugfix branch.
-
Commit and push until you are happy with your contribution.
-
Make sure to add tests for it. This is important so I don’t break it in a future version unintentionally.
-
Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
Copyright
Copyright © 2012 Tatemae Consultancy. See LICENSE.txt for further details.