Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
WWW::YoutubeViewer::AuUsertContributed PeWWW::YoutubeViewer::Authentication(3)

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

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

SUBROUTINES/METHODS
   oauth_refresh_token()
       Refresh the access_token	using the refresh_token. Returns a JSON	string
       or undef.

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

   oauth_login($code)
       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.

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

   encode_token($token)
       Encode the token	with the key and return	it.

   decode_token($token)
       Decode the token	with the key and return	it.

   save_authentication_tokens()
       Encode and save the access and refresh into the authentication_file.

AUTHOR
       Trizen, "<trizenx at gmail.com>"

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

	   perldoc WWW::YoutubeViewer::Authentication

LICENSE	AND COPYRIGHT
       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 <http://dev.perl.org/licenses/> for more information.

perl v5.24.1			  2017-07WWW::YoutubeViewer::Authentication(3)

NAME | SYNOPSIS | SUBROUTINES/METHODS | AUTHOR | SUPPORT | LICENSE AND COPYRIGHT

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=WWW::YoutubeViewer::Authentication&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help