גאבור סבו - Gábor Szabó > WebService-GData-0.06 > WebService::GData::YouTube::Constants

Download:
WebService-GData-0.06.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  0
View/Report Bugs
Module Version: 1.02   Source  

NAME ^

WebService::GData::YouTube::Constants - constants used for YouTube service.

SYNOPSIS ^

    #don't important anything
    use WebService::GData::YouTube::Constants; 

    #import the namespace related constants
    use WebService::GData::YouTube::Constants qw(:format); #or :time or :safe or :all

    use WebService::GData::YouTube;


    my $yt     = new WebService::GData::YouTube();
        my $videos = $yt->get_top_rated_videos('JP','Comedy',TODAY);
           
        
           $yt    -> query->safe(STRICT)->orderby(VIEW_COUNT)->q('guitar');
        my $videos = $yt->search_video;

    #if not imported
        
           $yt->get_top_rated_videos('JP','Comedy',WebService::GData::YouTube::Constants::TODAY);

DESCRIPTION ^

This package contains some constants for YouTube Service v2, mostly related to available parameter values when querying the service. You can import all of them by using :all or import only a subset by using :format,:time or :safe...

GENERAL CONSTANTS

The general constants map the default projection used and the base url queried. You can choose to import general related constants by writing use WebService::GData::YouTube::Constants qw(:general);

PROJECTION

The default projection used is "api".

BASE_URI

API_DOMAIN_URI

UPLOAD_BASE_URI

Below are the constants used to switch to the youtube staging server:

STAGING_BASE_URI

STAGING_API_DOMAIN_URI

STAGING_UPLOAD_BASE_URI

import with :general

NAMESPACE CONSTANTS

The namespace constants map the youtube xml namespace. You can choose to import namespace related constants by writing use WebService::GData::YouTube::Constants qw(:namespace);

YOUTUBE_NAMESPACE

import with :namespace

FORMAT CONSTANTS

The format constants map the available protocol format as of version 2 of YouTube Service API. You can choose to import format related constants by writing use WebService::GData::YouTube::Constants qw(:format);

MOBILE_H263

map the format of value 1.

H263

map the format of value 1.

MPEG4

map the format of value 6.

MOBILE_MPEG4

map the format of value 6.

EMBEDDABLE

map the format of value 5.

See also http://code.google.com/intl/en/apis/youtube/2.0/reference.html#formatsp for further information about the available formats.

import with :format

TIME CONSTANTS

The time consants map the available times used as of version 2 of YouTube Service API for the standard feeds. You can choose to import time related constants by writing use WebService::GData::YouTube::Constants qw(:time);

TODAY

WEEK

MONTH

ALL_TIME

See also http://code.google.com/intl/en/apis/youtube/2.0/reference.html#timesp for further information about the available time settings.

import with :time

SAFE CONSTANTS

The safe consants map the available safety mode used as of version 2 of YouTube Service API. You can choose to import safe mode related constants by writing use WebService::GData::YouTube::Constants qw(:safe);

NONE

MODERATE

STRICT

L0

alias for NONE

L1

alias for MOEDERATE

L2

alias for STRICT

See also http://code.google.com/intl/en/apis/youtube/2.0/reference.html#safeSearchsp for further information about the available safe mode settings.

import with :safe

ORDER CONSTANTS

The order settings consants map the available order settings used as of version 2 of YouTube Service API. You can choose to import order settings related constants by writing use WebService::GData::YouTube::Constants qw(:order);

RELEVANCE

PUBLISHED

VIEW_COUNT

RATING

POSITION

COMMENT_COUNT

DURATION

See also http://code.google.com/intl/en/apis/youtube/2.0/reference.html#orderbysp for further information about the available ordering settings.

import with :order

BUGS AND LIMITATIONS ^

If you do me the favor to _use_ this module and find a bug, please email me i will try to do my best to fix it (patches welcome)!

AUTHOR ^

shiriru <shirirulestheworld[arobas]gmail.com>

LICENSE AND COPYRIGHT ^

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: