wiki:Dev/Twitter/Perl/Dumper

Version 1 (modified by mitty, 14 years ago) (diff)

--

example for Net::Twitter::Lite

search

$VAR1 = {
          'page' => 1,
          'query' => '%23twitter+OR+%23twitterapi',
          'completed_in' => '0.051869',
          'refresh_url' => '?since_id=26349591993&q=%23twitter+OR+%23twitterapi',
          'next_page' => '?page=2&max_id=26349591993&q=%23twitter+OR+%23twitterapi',
          'warning' => 'since_id removed for pagination.',
          'results_per_page' => 15,
          'max_id' => '26349591993',
          'results' => [
                         {
                           'source' => '<a href="http://juick.com" rel="nofollow">LainDoner</a>',
                           'to_user_id' => undef,
                           'geo' => undef,
                           'profile_image_url' => 'http://a2.twimg.com/profile_images/1134995850/51646001mf8_normal.jpg',
                           'from_user_id' => 158813965,
                           'iso_language_code' => 'en',
                           'created_at' => 'Mon, 04 Oct 2010 10:21:34 +0000',
                           'text' => '#podcast http://tinyurl.com/33j8x2e is about @DheeDiyana, @ipodcastess and @canf90 #twitter',
                           'metadata' => {
                                           'result_type' => 'recent'
                                         },
                           'id' => '26349591993',
                           'from_user' => 'anesteroff'
                         },
                         {
                           'source' => '<a href="http://ping.fm/" rel="nofollow">Ping.fm</a>',
                           'to_user_id' => undef,
                           'geo' => undef,
                           'profile_image_url' => 'http://a3.twimg.com/profile_images/1134283727/black-button-twitter-bird-450x450_normal.png',
                           'from_user_id' => 160260942,
                           'iso_language_code' => 'en',
                           'created_at' => 'Mon, 04 Oct 2010 10:20:36 +0000',
                           'text' => 'RT @cssrex-Top 25 URL Shortener Tools / Websites http://bit.ly/beHjZy #twitter #socialmedia:  http://bit.ly/cLboXy ...  http://ping.fm/XmTVy',
                           'metadata' => {
                                           'result_type' => 'recent'
                                         },
                           'id' => '26349545845',
                           'from_user' => 'TwiterKinG_'
                         },
                         {
                           'source' => '<a href="http://twitterfeed.com" rel="nofollow">twitterfeed</a>',
                           'to_user_id' => undef,
                           'geo' => undef,
                           'profile_image_url' => 'http://a0.twimg.com/profile_images/845369748/ardlogo3_normal.jpg',
                           'from_user_id' => 96093999,
                           'iso_language_code' => 'en',
                           'created_at' => 'Mon, 04 Oct 2010 10:20:15 +0000',
                           'text' => 'Social Media Isn\'t Free: This is attributable to the fact that social media platforms, like Facebook and T... http://bit.ly/8ZM9UM #twitter',
                           'metadata' => {
                                           'result_type' => 'recent'
                                         },
                           'id' => '26349528594',
                           'from_user' => 'Arddrive'
                         },

(snip)

                       ],
          'since_id' => '23988842984'
        };