line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::Call::FetchToken::FetchTokenRequestType; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
1364
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
25
|
|
6
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
25
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
11
|
|
|
|
|
|
|
# File: ................. FetchTokenRequestType.pm |
12
|
|
|
|
|
|
|
# Generated by: ......... genEBayApiDataTypes.pl |
13
|
|
|
|
|
|
|
# Last Generated: ....... 08/24/2008 16:44 |
14
|
|
|
|
|
|
|
# API Release Number: ... 579 |
15
|
|
|
|
|
|
|
# |
16
|
|
|
|
|
|
|
########################################################################## |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 NAME |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
eBay::API::XML::Call::FetchToken::FetchTokenRequestType |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Retrieves user token. |
25
|
|
|
|
|
|
|
The call can be used to get a token only after a user, at an eBay sign-in page, |
26
|
|
|
|
|
|
|
gives consent for the token to be generated. |
27
|
|
|
|
|
|
|
After token retrieval, the token can be used to authenticate other calls made on behalf of the user. |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 SYNOPSIS |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=cut |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 INHERITANCE |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
eBay::API::XML::Call::FetchToken::FetchTokenRequestType inherits from the L class |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=cut |
41
|
|
|
|
|
|
|
|
42
|
1
|
|
|
1
|
|
32
|
use eBay::API::XML::RequestDataType; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::RequestDataType"); |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
my @gaProperties = ( [ 'IncludeRESTToken', 'xs:boolean', '', '', '' ] |
48
|
|
|
|
|
|
|
, [ 'SecretID', 'xs:string', '', '', '' ] |
49
|
|
|
|
|
|
|
, [ 'SessionID', 'xs:string', '', '', '' ] |
50
|
|
|
|
|
|
|
); |
51
|
|
|
|
|
|
|
push @gaProperties, @{eBay::API::XML::RequestDataType::getPropertiesList()}; |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
my @gaAttributes = ( |
54
|
|
|
|
|
|
|
); |
55
|
|
|
|
|
|
|
push @gaAttributes, @{eBay::API::XML::RequestDataType::getAttributesList()}; |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 Subroutines: |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=cut |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
sub new { |
62
|
|
|
|
|
|
|
my $classname = shift; |
63
|
|
|
|
|
|
|
my %args = @_; |
64
|
|
|
|
|
|
|
my $self = $classname->SUPER::new(%args); |
65
|
|
|
|
|
|
|
return $self; |
66
|
|
|
|
|
|
|
} |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
sub isScalar { |
69
|
|
|
|
|
|
|
return 0; |
70
|
|
|
|
|
|
|
} |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=head2 setIncludeRESTToken() |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
Specified if you want to retrieve a REST token for a user. |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
RequiredInput: No |
79
|
|
|
|
|
|
|
# Argument: 'xs:boolean' |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=cut |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
sub setIncludeRESTToken { |
84
|
|
|
|
|
|
|
my $self = shift; |
85
|
|
|
|
|
|
|
$self->{'IncludeRESTToken'} = shift |
86
|
|
|
|
|
|
|
} |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=head2 isIncludeRESTToken() |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
# Returns: 'xs:boolean' |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=cut |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
sub isIncludeRESTToken { |
95
|
|
|
|
|
|
|
my $self = shift; |
96
|
|
|
|
|
|
|
return $self->{'IncludeRESTToken'}; |
97
|
|
|
|
|
|
|
} |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=head2 setSecretID() |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
A value that is associated with the token retrieval request. SecretID |
103
|
|
|
|
|
|
|
is defined by the application, and is passed in redirect |
104
|
|
|
|
|
|
|
URL to the eBay signin page. eBay recommends using a UUID for the secret |
105
|
|
|
|
|
|
|
ID value. You must also set Username (part of the RequesterCredentials) |
106
|
|
|
|
|
|
|
for the particular user of interest. SecretID and Username are not |
107
|
|
|
|
|
|
|
required if SessionID is present. |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
RequiredInput: No |
110
|
|
|
|
|
|
|
# Argument: 'xs:string' |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=cut |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
sub setSecretID { |
115
|
|
|
|
|
|
|
my $self = shift; |
116
|
|
|
|
|
|
|
$self->{'SecretID'} = shift |
117
|
|
|
|
|
|
|
} |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
=head2 getSecretID() |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
# Returns: 'xs:string' |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
=cut |
124
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
sub getSecretID { |
126
|
|
|
|
|
|
|
my $self = shift; |
127
|
|
|
|
|
|
|
return $self->{'SecretID'}; |
128
|
|
|
|
|
|
|
} |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
=head2 setSessionID() |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
A value that is associated with the token retrieval request. The session ID |
134
|
|
|
|
|
|
|
is generated by eBay by the application making GetSessionID call, and is passed in redirect |
135
|
|
|
|
|
|
|
URL to the eBay signin page. The advantage of using SessionID is that it |
136
|
|
|
|
|
|
|
does not require UserID as part of the FetchToken request. SessionID is not required |
137
|
|
|
|
|
|
|
if SecretID is present. |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
RequiredInput: No |
140
|
|
|
|
|
|
|
# Argument: 'xs:string' |
141
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
=cut |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
sub setSessionID { |
145
|
|
|
|
|
|
|
my $self = shift; |
146
|
|
|
|
|
|
|
$self->{'SessionID'} = shift |
147
|
|
|
|
|
|
|
} |
148
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
=head2 getSessionID() |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
# Returns: 'xs:string' |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
=cut |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
sub getSessionID { |
156
|
|
|
|
|
|
|
my $self = shift; |
157
|
|
|
|
|
|
|
return $self->{'SessionID'}; |
158
|
|
|
|
|
|
|
} |
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
|
164
|
|
|
|
|
|
|
## Attribute and Property lists |
165
|
|
|
|
|
|
|
sub getPropertiesList { |
166
|
|
|
|
|
|
|
my $self = shift; |
167
|
|
|
|
|
|
|
return \@gaProperties; |
168
|
|
|
|
|
|
|
} |
169
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
sub getAttributesList { |
171
|
|
|
|
|
|
|
my $self = shift; |
172
|
|
|
|
|
|
|
return \@gaAttributes; |
173
|
|
|
|
|
|
|
} |
174
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
1; |