Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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?
[Corion]: Two-way data binding means that if you change something in a text box, the corresponding variable in your Javascript gets updated immediately as well, and if you then change the variable, the corresponding text box also gets updated
[Corion]: That is a horrible approach that was also taken by Access, but if you have hooks that prevent automatic saving to the database, it is incredibly handy

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2017-03-30 07:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (355 votes). Check out past polls.