OAuth/Lite2/Client/Token.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 14 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« OAuth/Lite2/Client/ServerState.pm ↑ Summary OAuth/Lite2/Formatter/FormURLEncoded.pm »
1 package OAuth::Lite2::Client::Token;
2  
3 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 7 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 7 ▶use base 'Class::Accessor::Fast';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 7 __PACKAGE__->mk_accessors(qw(
9 access_token
10 expires_in
11 refresh_token
12 access_token_secret
13 scope
14 ));
15  
16 =head1 NAME
17  
18 OAuth::Lite2::Client::Token - Class represents access-token response
19  
20 =head1 SYNOPSIS
21  
22 my $t = $client->get_access_token( ... );
23 $t->access_token;
24 $t->expires_in;
25 $t->refresh_token;
26 $t->scope;
27  
28 =head1 DESCRIPTION
29  
30 Class represents access-token response
31  
32 =head1 ACCESSORS
33  
34 =head2 access_token
35  
36 The access token issued by the authorization serve
37  
38 =head2 expires_in
39  
40 The lifetime in seconds of the access token
41  
42 =head2 refresh_token
43  
44 The refresh token, which can be used to obtain new access tokens using the same authorization grant
45  
46 =head2 scope
47  
48 The scope of the access token
49  
50 =head2 access_token_secret
51  
52 DEPRECATED.
53  
54 =head1 AUTHOR
55  
56 Lyo Kato, E<lt>lyo.kato@gmail.comE<gt>
57  
58 =head1 COPYRIGHT AND LICENSE
59  
60 Copyright (C) 2010 by Lyo Kato
61  
62 This library is free software; you can redistribute it and/or modify
63 it under the same terms as Perl itself, either Perl version 5.8.8 or,
64 at your option, any later version of Perl 5 you may have available.
65  
66 =cut
67  
68 7 1;
« OAuth/Lite2/Client/ServerState.pm ↑ Summary OAuth/Lite2/Formatter/FormURLEncoded.pm »