Skip to content

Instantly share code, notes, and snippets.

@mikewadhera
Created October 14, 2009 21:55
Show Gist options
  • Save mikewadhera/210445 to your computer and use it in GitHub Desktop.
Save mikewadhera/210445 to your computer and use it in GitHub Desktop.
>> s = Satisfaction.new
=> #<Satisfaction:0x25d90559 @options={:root=>"http://api.getsatisfaction.com", :autoload=>false, :request_token_url=>"http://getsatisfaction.com/api/request_token", :access_token_url=>"http://getsatisfaction.com/api/access_token", :authorize_url=>"http://getsatisfaction.com/api/authorize"}, @identity_map=#<Sfn::IdentityMap:0x59e4abb6 @pages={}, @records={}>, @loader=#<Sfn::Loader:0x33c567d5 @options={:cache=>:hash}, @cache=#<Sfn::Loader::HashCache:0x193a5460 @cached_responses={}>>>
>> s.set_consumer("f96r2nvoer7m", "trqk9ktsw7rdy8h7l1t8s0a1v2htg37t")
=> #<OAuth::Consumer:0xeac2918 @key="f96r2nvoer7m", @options={:signature_method=>"HMAC-SHA1", :request_token_path=>"/oauth/request_token", :authorize_path=>"/oauth/authorize", :access_token_path=>"/oauth/access_token", :proxy=>nil, :scheme=>:header, :http_method=>:post, :oauth_version=>"1.0"}, @secret="trqk9ktsw7rdy8h7l1t8s0a1v2htg37t">
>> s.people.page(1, :facebook_id => "1234").load
=> [:unauthorized, "Access Denied: You do not have the appropriate permissions to search by facebook ID"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment