CHips L MINI SHELL

CHips L pro

Current Path : /proc/2/root/usr/local/share/man/man3/
Upload File :
Current File : //proc/2/root/usr/local/share/man/man3/OAuth::Lite::Token.3pm

.\" Automatically generated by Pod::Man 2.22 (Pod::Simple 3.13)
.\"
.\" Standard preamble:
.\" ========================================================================
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Vb \" Begin verbatim text
.ft CW
.nf
.ne \\$1
..
.de Ve \" End verbatim text
.ft R
.fi
..
.\" Set up some character translations and predefined strings.  \*(-- will
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
.\" double quote, and \*(R" will give a right double quote.  \*(C+ will
.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
.\" nothing in troff, for use with C<>.
.tr \(*W-
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
.ie n \{\
.    ds -- \(*W-
.    ds PI pi
.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
.    ds L" ""
.    ds R" ""
.    ds C` ""
.    ds C' ""
'br\}
.el\{\
.    ds -- \|\(em\|
.    ds PI \(*p
.    ds L" ``
.    ds R" ''
'br\}
.\"
.\" Escape single quotes in literal strings from groff's Unicode transform.
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\"
.\" If the F register is turned on, we'll generate index entries on stderr for
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
.\" entries marked with X<> in POD.  Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
.ie \nF \{\
.    de IX
.    tm Index:\\$1\t\\n%\t"\\$2"
..
.    nr % 0
.    rr F
.\}
.el \{\
.    de IX
..
.\}
.\" ========================================================================
.\"
.IX Title "OAuth::Lite::Token 3"
.TH OAuth::Lite::Token 3 "2014-01-04" "perl v5.10.1" "User Contributed Perl Documentation"
.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
.nh
.SH "NAME"
OAuth::Lite::Token \- token class
.SH "SYNOPSIS"
.IX Header "SYNOPSIS"
.Vb 4
\&    my $token = OAuth::Lite::Token\->new(
\&        token  => \*(Aqfoo\*(Aq,
\&        secret => \*(Aqbar\*(Aq,
\&    );
\&
\&    # or
\&    my $token = OAuth::Lite::Token\->new;
\&    $tokne\->token(\*(Aqfoo\*(Aq);
\&    $secret\->secret(\*(Aqbar\*(Aq);
\&
\&    # and you also can make token which two params are filled in with random values.
\&    my $token = OAuth::Lite::Token\->new_random;
\&    say $token\->token;
\&    say $token\->secret;
\&
\&    my $encoded = $token\->as_encoded;
\&    say $encoded;
\&
\&    my $new_token = OAuth::Lite::Token\->from_encoded($encoded);
\&    say $new_token\->token;
\&    say $new_token\->secret;
.Ve
.SH "DESCRIPTION"
.IX Header "DESCRIPTION"
Token class.
.SH "METHODS"
.IX Header "METHODS"
.SS "new"
.IX Subsection "new"
\fIparameters\fR
.IX Subsection "parameters"
.IP "token" 4
.IX Item "token"
.PD 0
.IP "secret" 4
.IX Item "secret"
.PD
.SS "new_random"
.IX Subsection "new_random"
Generate new object. and automatically filled token and secret value with random key.
.PP
.Vb 3
\&    my $t = OAuth::Lite::Token\->new_random;
\&    say $t\->token;
\&    say $t\->secret;
.Ve
.SS "token($token_value)"
.IX Subsection "token($token_value)"
Getter/Setter for token value.
.PP
.Vb 2
\&    $token\->token(\*(Aqfoo\*(Aq);
\&    say $token\->token;
.Ve
.SS "secret($token_secret)"
.IX Subsection "secret($token_secret)"
Getter/Setter for secret value.
.PP
.Vb 2
\&    $token\->secret(\*(Aqbar\*(Aq);
\&    say $token\->secret;
.Ve
.SS "from_encoded($encoded)"
.IX Subsection "from_encoded($encoded)"
Generate token from encoded line (that service provider provides as response of request token.).
.PP
.Vb 4
\&    my $line = "oauth_token=foo&oauth_token_secret=bar";
\&    my $token = OAuth::Lite::Token\->from_encoded($encoded);
\&    say $token\->token;
\&    say $token\->secret;
.Ve
.SS "as_encoded"
.IX Subsection "as_encoded"
Returns encoded line from token object.
.PP
.Vb 5
\&    my $token = OAuth::Lite::Token\->new(
\&        token  => \*(Aqfoo\*(Aq,
\&        secret => \*(Aqbar\*(Aq,
\&    );
\&    say $token\->as_encoded; #oauth_token=foo&oauth_token_secret=bar
.Ve
.SH "AUTHOR"
.IX Header "AUTHOR"
Lyo Kato, \f(CW\*(C`lyo.kato _at_ gmail.com\*(C'\fR
.SH "COPYRIGHT AND LICENSE"
.IX Header "COPYRIGHT AND LICENSE"
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.8.6 or,
at your option, any later version of Perl 5 you may have available.

Copyright 2K16 - 2K18 Indonesian Hacker Rulez