Skip to content

Instantly share code, notes, and snippets.

@rodrigoflores
Created January 15, 2011 10:41
Show Gist options
  • Save rodrigoflores/780829 to your computer and use it in GitHub Desktop.
Save rodrigoflores/780829 to your computer and use it in GitHub Desktop.
@user_info = {"name"=>"Rodrigo Flores", "profile_background_tile"=>false, "profile_sidebar_border_color"=>"C0DEED", "profile_sidebar_fill_color"=>"DDEEF6", "created_at"=>"Sun Nov 21 17:11:16 +0000 2010", "profile_image_url"=>"http://a3.twimg.com/profile_images/392073691/Eu_reasonably_small.jpg", "location"=>nil, "profile_link_color"=>"0084B4", "id_str"=>"218183011", "follow_request_sent"=>false, "contributors_enabled"=>false, "url"=>nil, "favourites_count"=>0, "utc_offset"=>nil, "id"=>3213123, "listed_count"=>0, "profile_use_background_image"=>true, "protected"=>false, "lang"=>"en", "followers_count"=>1, "profile_text_color"=>"333333", "time_zone"=>nil, "geo_enabled"=>false, "notifications"=>false, "description"=>nil, "profile_background_color"=>"C0DEED", "verified"=>false, "profile_background_image_url"=>"http://s.twimg.com/a/1290206336/images/themes/theme1/bg.png", "friends_count"=>0, "statuses_count"=>0, "following"=>false, "screen_name"=>"rlmflores", "show_all_inline_media"=>false}
FakeWeb.register_uri(
:post,
'https://api.twitter.com/oauth/request_token',
:body => 'oauth_token=t9zvi1zgCsCkJHmAmPAsYqm47A0RxQX1Mix17xXXXX&oauth_token_secret=GbLzmL41coV6oBQgGJPURqNGAxpEjR2tEM9AXXXX&oauth_callback_confirmed=true')
FakeWeb.register_uri(
:post,
'https://api.twitter.com/oauth/access_token',
:body =>'oauth_token=fake&oauth_token_secret=fake&user_id=218183011')
FakeWeb.register_uri(
:get,
'https://api.twitter.com/1/account/verify_credentials.json',
:body => @user_info.to_json)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment