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
WWW::YoutubeViewer::Authentication(3) User Contributed Perl Documentation WWW::YoutubeViewer::Authentication(3)

WWW::YoutubeViewer::Authentication - OAuth login support.

    use WWW::YoutubeViewer;
    my $hash_ref = WWW::YoutubeViewer->oauth_login($code);

Refresh the access_token using the refresh_token. Returns a HASH ref with the `access_token` or undef.

Creates an OAuth URL with the 'code' response type. (Google's authorization server)

Returns a HASH ref with the access_token, refresh_token and some other info.

The $code can be obtained by going to the URL returned by the "get_accounts_oauth_url()" method.

Will try to load the access and refresh tokens from authentication_file.

Encode the token with the key and return it.

Decode the token with the key and return it.

Encode and save the access and refresh into the authentication_file.

Load the API key and the client ID/SECRET values from a given JSON file having the following format:

    {
        "key":           "API_KEY",
        "client_id":     "CLIENT_ID",
        "client_secret": "CLIENT_SECRET"
    }

Returns true on success and false otherwise.

Trizen, "<echo dHJpemVuQHByb3Rvbm1haWwuY29tCg== | base64 -d>"

You can find documentation for this module with the perldoc command.

    perldoc WWW::YoutubeViewer::Authentication

Copyright 2013-2015 Trizen.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See <https://dev.perl.org/licenses/> for more information.

2022-06-07 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

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