Ruby gem to use the full SaySo API. Currently the SaySo API is closed and for partner use only. To request an API key please contact us at team@truvolabs.com.
For more info see:
-
The origin of this code: github.com/truvolabs/sayso-api-client
-
SaySo: www.sayso.com
Please read the full API documentation before using!
Use the gem.
gem install sayso-api-client
Use in your Gemfile:
gem 'sayso-api-client', :require => 'sayso'
require 'sayso' sayso = Sayso.new(:consumer_key => 'your_key', :consumer_secret => 'your_secret') sayso.get("/places/search?what=restaurant&where=antwerpen") sayso.get("/places/search", :what => 'restaurant', :where => 'antwerpen') sayso.authorize_url # go here (=> "http://api.sayso.com/api1/oauth/authorize?oauth_token=some_token_hash") sayso.authorize_access_token('verifier') sayso.get("/users/current")
-
Tests
Please feel free to contribute and send me a pull request via Github!
Copyright © 2011 Joost Hietbrink, released under the MIT license