Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: explore a complexe hash structure return by Webservices::GData::YouTube

by Anonymous Monk
on Dec 11, 2012 at 09:11 UTC ( #1008244=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        foreach my $video (@$videos) {
            say $video->video_id;
    ...
            say $video->favorite_count;
            say $video->duration;
        }
    
  2. or download this
    lib/WebService/GData/YouTube/Doc/GeneralOverview.pod
    
    ...
    
    91:ok( @{ $entry->thumbnails } == 5, 'number of thumbnails is right.' 
    +);
    93:ok($entry->thumbnails->[0]->url eq 'http://i.ytimg.com/vi/qWAY3YvHq
    +LE/default.jpg','thumbnail is properly set.');
    
  3. or download this
               my $thumbs =$video->thumbnails;
               foreach my $thumb (@$thumbs) {
    ...
                    say $thumb->width;
                    say $thumb->height;
               }
    
  4. or download this
    #!/usr/bin/perl --
    use strict;
    use warnings;
    ...
    #~         say $thumb->height;
        }
    } ## end sub display_video
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1008244]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2015-07-30 10:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls