Created
July 26, 2013 10:38
-
-
Save jalada/6087921 to your computer and use it in GitHub Desktop.
Yeah Twitter. UIDs totally MUST be integers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2.0.0p247 :008 > Twitter.users("1339713308") | |
Twitter::Error::NotFound: Sorry, that page does not exist | |
from /Users/jalada/.rvm/gems/ruby-2.0.0-p247@rails4/gems/twitter-4.8.1/lib/twitter/response/raise_error.rb:21:in `on_complete' | |
from /Users/jalada/.rvm/gems/ruby-2.0.0-p247@rails4/gems/faraday-0.8.7/lib/faraday/response.rb:9:in `block in call' | |
from /Users/jalada/.rvm/gems/ruby-2.0.0-p247@rails4/gems/faraday-0.8.7/lib/faraday/response.rb:63:in `on_complete' | |
from /Users/jalada/.rvm/gems/ruby-2.0.0-p247@rails4/gems/faraday-0.8.7/lib/faraday/response.rb:8:in `call' | |
from /Users/jalada/.rvm/gems/ruby-2.0.0-p247@rails4/gems/faraday-0.8.7/lib/faraday/request/url_encoded.rb:14:in `call' | |
from /Users/jalada/.rvm/gems/ruby-2.0.0-p247@rails4/gems/faraday-0.8.7/lib/faraday/request/multipart.rb:13:in `call' | |
from /Users/jalada/.rvm/gems/ruby-2.0.0-p247@rails4/gems/twitter-4.8.1/lib/twitter/request/multipart_with_file.rb:14:in `call' | |
from /Users/jalada/.rvm/gems/ruby-2.0.0-p247@rails4/gems/faraday-0.8.7/lib/faraday/connection.rb:247:in `run_request' | |
from /Users/jalada/.rvm/gems/ruby-2.0.0-p247@rails4/gems/faraday-0.8.7/lib/faraday/connection.rb:112:in `post' | |
from /Users/jalada/.rvm/gems/ruby-2.0.0-p247@rails4/gems/twitter-4.8.1/lib/twitter/client.rb:108:in `request' | |
from /Users/jalada/.rvm/gems/ruby-2.0.0-p247@rails4/gems/twitter-4.8.1/lib/twitter/client.rb:72:in `post' | |
from /Users/jalada/.rvm/gems/ruby-2.0.0-p247@rails4/gems/twitter-4.8.1/lib/twitter/api/utils.rb:51:in `objects_from_response' | |
from /Users/jalada/.rvm/gems/ruby-2.0.0-p247@rails4/gems/twitter-4.8.1/lib/twitter/api/users.rb:260:in `block in users' | |
from /Users/jalada/.rvm/gems/ruby-2.0.0-p247@rails4/gems/twitter-4.8.1/lib/twitter/core_ext/enumerable.rb:5:in `block (2 levels) in threaded_map' | |
2.0.0p247 :009 > Twitter.users("1339713308".to_i) | |
=> [#<Twitter::User:0x007fafc562d2f8 @attrs={:friends_count=>13, :profile_sidebar_fill_color=>"DDEEF6", :name=>"Rivered App", :statuses_count=>42, :geo_enabled=>false, :following=>false, :profile_image_url=>"http://a0.twimg.com/profile_images/3506611523/58185c23513f7d30483493be278d72bf_normal.png", :verified=>false, :id=>1339713308, :profile_background_color=>"C0DEED", :status=>{:contributors=>nil, :in_reply_to_user_id=>nil, :in_reply_to_status_id_str=>nil, :geo=>nil, :retweet_count=>0, :source=>"<a href=\"http://www.tweetdeck.com\" rel=\"nofollow\">TweetDeck</a>", :in_reply_to_user_id_str=>nil, :id_str=>"357122349662879744", :retweeted=>false, :id=>357122349662879744, :created_at=>"Tue Jul 16 12:59:37 +0000 2013", :coordinates=>nil, :in_reply_to_status_id=>nil, :truncated=>false, :entities=>{:hashtags=>[], :user_mentions=>[], :urls=>[]}, :in_reply_to_screen_name=>nil, :text=>"This means that in Firefox (and others?) if you pin Rivered to your tabs, it'll glow when there's new entries.", :place=>nil, :favorited=>false}, :is_translator=>false, :screen_name=>"RiveredApp", :default_profile=>true, :profile_background_image_url=>"http://a0.twimg.com/images/themes/theme1/bg.png", :followers_count=>12, :created_at=>"Tue Apr 09 17:11:43 +0000 2013", :notifications=>false, :profile_link_color=>"0084B4", :entities=>{:url=>{:urls=>[{:display_url=>"rivered.io", :expanded_url=>"http://www.rivered.io", :indices=>[0, 22], :url=>"http://t.co/9ZcHEC8KGZ"}]}, :description=>{:urls=>[]}}, :utc_offset=>0, :contributors_enabled=>false, :id_str=>"1339713308", :listed_count=>2, :profile_use_background_image=>true, :profile_image_url_https=>"https://si0.twimg.com/profile_images/3506611523/58185c23513f7d30483493be278d72bf_normal.png", :profile_text_color=>"333333", :protected=>false, :description=>"Rivered is a River of News feed reader from @madebypxi.", :lang=>"en", :time_zone=>"London", :follow_request_sent=>false, :url=>"http://t.co/9ZcHEC8KGZ", :profile_sidebar_border_color=>"C0DEED", :location=>"Shoreditch, London", :profile_background_image_url_https=>"https://si0.twimg.com/images/themes/theme1/bg.png", :default_profile_image=>false, :favourites_count=>0, :profile_background_tile=>false}>] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment