GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  WEBSERVICE::GDATA::YOUTUBE::QUERY (3)

.ds Aq ’

NAME

WebService::GData::YouTube::Query - implements the core query parameters available in YouTube Service API v2.

CONTENTS

SYNOPSIS



    use WebService::GData::YouTube::Query;
        use WebService::GData::Constants qw(:all);

    #create an object that only has read access
    my $query = new WebService::GData::YouTube::Query();

    $query->safe_search(none)->orderby(rating)->caption(true)->time(today);



DESCRIPTION

inherits from WebService::GData::Query.

YouTube service supports additional parameters.

In order to avoid to send uncorrect parameter values, the package checks for their validity

and will throw a WebService::GData::Error object containing ’invalid_parameter_type’ as the code and the name of the function as the content.

Checking the data before hands, will avoid unnecessary network transactions and

reduce the risk of reaching quota limitations in use for the service you are querying.

WebService::GData::Constants and WebService::GData::YouTube::Constants contains predefined value that you can use to set the parameters.

Using the constants can avoid typo errors or unnecessary code change when an update is available with a new value.

    CONSTRUCTOR

new

Creates a basic query instance.

The following parameters are set by default:
alt= WebService::GData::Constants::JSON
v= WebService::GData::Constants::GDATA_MINIMUM_VERSION
prettyprint= WebService::GData::Constants::FALSE
strict= WebService::GData::Constants::TRUE

Parameters:
none

Return:WebService::GData::YouTube::Query

Example:



        use WebService::GData::YouTube::Query;

    #create an object that only has read access
        my $query = new WebService::GData::YouTube::Query();

        $query->to_query_string();# by default:?alt=json&v=2&prettyprint=false&strict=true



    INHERITED METHODS

All the following methods are inherited from WebService::GData::Query.

get

to_query_string

strict

fields

v

alt

prettyprint

author

start_index

max_results

limit

q

category

    API METHODS

These methods represents YouTube related parameters

key

    SEARCH METHODS

caption

uploader

format

time

restriction

orderby

lr

inline

lang

fmt

safe_search

location

location_radius

location_plottable

    DISABLED METHODS

The following methods are inherited but not available to the YouTube Service.

Calling these methods will just return the instance and will not set them.

updated_min

updated_max

published_min

published_max

SEE ALSO

Documentation of the parameters:

<http://code.google.com/intl/en/apis/youtube/2.0/reference.html#Query_parameter_definitions>

CONFIGURATION AND ENVIRONMENT

none

DEPENDENCIES

none

INCOMPATIBILITIES

none

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.

POD ERRORS

Hey! <B>The above document had some coding errors, which are explained below:B>
Around line 112: =back without =over
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 WEBSERVICE::GDATA::YOUTUBE::QUERY (3) 2011-04-10

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.