Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 surveying the Monastery: (4)
As of 2014-08-22 23:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (168 votes), past polls