A Ruby 1.9 interface for the Tout API.
Intended as sample code initially, help take it to greatness!
See http://developer.tout.com/ and https://github.com/Tout/trubl for details.
- Ruby
- Battle tested with MRI 1.9.3
- Specs pass for JRuby 1.7.3
- Unkown for Rbx 2.0.0rc1
- On Debian or Ubuntu you should run
sudo apt-get install libcurl4-gnutls-dev
bundle install
bundle exec rspec -f d
export CLIENT_ID=#{your client id}
export CLIENT_SECRET=#{your client secret}
export CALLBACK_URL=#{your callback url}
bundle exec ruby bin/trubl_sample
Get a client instance, and authenticate with tout.com:
client = Trubl.client('client_id', 'client_secret')
client.client_auth()
# or
client = Trubl::Client.new('client_id', 'client_secret')
client.client_auth()
Search for users matching a keyword
collection = client.search_users('aaron', 2, 4)
collection.pagination
# => hash of pagination data
collection.users
# => get an array of Trubl::User instances
etc, etc
- 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.
Copyright (c) 2013 Aaron Terrell, Tout. See LICENSE.txt for further details.