line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::Call::FetchToken; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
2370
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
33
|
|
6
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
25
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
9
|
|
|
|
|
|
|
# |
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
11
|
|
|
|
|
|
|
# File: ................. FetchToken.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 |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 SYNOPSIS |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=cut |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 INHERITANCE |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
eBay::API::XML::Call::FetchToken inherits from the L class |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=cut |
36
|
|
|
|
|
|
|
|
37
|
1
|
|
|
1
|
|
34
|
use eBay::API::XML::BaseCall; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::BaseCall"); |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
use eBay::API::XML::Call::FetchToken::FetchTokenRequestType; |
41
|
|
|
|
|
|
|
use eBay::API::XML::Call::FetchToken::FetchTokenResponseType; |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 Subroutines: |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=cut |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
sub getApiCallName { |
49
|
|
|
|
|
|
|
return 'FetchToken'; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
sub getRequestDataTypeFullPackage { |
52
|
|
|
|
|
|
|
return 'eBay::API::XML::Call::FetchToken::FetchTokenRequestType'; |
53
|
|
|
|
|
|
|
} |
54
|
|
|
|
|
|
|
sub getResponseDataTypeFullPackage { |
55
|
|
|
|
|
|
|
return 'eBay::API::XML::Call::FetchToken::FetchTokenResponseType'; |
56
|
|
|
|
|
|
|
} |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
# |
59
|
|
|
|
|
|
|
# input properties |
60
|
|
|
|
|
|
|
# |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head2 setIncludeRESTToken() |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Specified if you want to retrieve a REST token for a user. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
RequiredInput: No |
67
|
|
|
|
|
|
|
# Argument: 'xs:boolean' |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=cut |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
sub setIncludeRESTToken { |
72
|
|
|
|
|
|
|
my $self = shift; |
73
|
|
|
|
|
|
|
my $sIncludeRESTToken = shift; |
74
|
|
|
|
|
|
|
$self->getRequestDataType()->setIncludeRESTToken($sIncludeRESTToken); |
75
|
|
|
|
|
|
|
} |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head2 setSecretID() |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
A value that is associated with the token retrieval request. SecretID |
80
|
|
|
|
|
|
|
is defined by the application, and is passed in redirect |
81
|
|
|
|
|
|
|
URL to the eBay signin page. eBay recommends using a UUID for the secret |
82
|
|
|
|
|
|
|
ID value. You must also set Username (part of the RequesterCredentials) |
83
|
|
|
|
|
|
|
for the particular user of interest. SecretID and Username are not |
84
|
|
|
|
|
|
|
required if SessionID is present. |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
RequiredInput: No |
87
|
|
|
|
|
|
|
# Argument: 'xs:string' |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=cut |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
sub setSecretID { |
92
|
|
|
|
|
|
|
my $self = shift; |
93
|
|
|
|
|
|
|
my $sSecretID = shift; |
94
|
|
|
|
|
|
|
$self->getRequestDataType()->setSecretID($sSecretID); |
95
|
|
|
|
|
|
|
} |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=head2 setSessionID() |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
A value that is associated with the token retrieval request. The session ID |
100
|
|
|
|
|
|
|
is generated by eBay by the application making GetSessionID call, and is passed in redirect |
101
|
|
|
|
|
|
|
URL to the eBay signin page. The advantage of using SessionID is that it |
102
|
|
|
|
|
|
|
does not require UserID as part of the FetchToken request. SessionID is not required |
103
|
|
|
|
|
|
|
if SecretID is present. |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
RequiredInput: No |
106
|
|
|
|
|
|
|
# Argument: 'xs:string' |
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
=cut |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
sub setSessionID { |
111
|
|
|
|
|
|
|
my $self = shift; |
112
|
|
|
|
|
|
|
my $sSessionID = shift; |
113
|
|
|
|
|
|
|
$self->getRequestDataType()->setSessionID($sSessionID); |
114
|
|
|
|
|
|
|
} |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
# |
119
|
|
|
|
|
|
|
# output properties |
120
|
|
|
|
|
|
|
# |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
=head2 getHardExpirationTime() |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
Date and time at which the token returned in eBayAuthToken expires |
125
|
|
|
|
|
|
|
and can no longer be used to authenticate the user for that application. |
126
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
Returned: Always |
128
|
|
|
|
|
|
|
# Returns: 'xs:dateTime' |
129
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
=cut |
131
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
sub getHardExpirationTime { |
133
|
|
|
|
|
|
|
my $self = shift; |
134
|
|
|
|
|
|
|
return $self->getResponseDataType()->getHardExpirationTime(); |
135
|
|
|
|
|
|
|
} |
136
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
=head2 getRESTToken() |
138
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
The REST authentication token for the user. |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
Returned: Conditionally |
142
|
|
|
|
|
|
|
# Returns: 'xs:string' |
143
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
=cut |
145
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
sub getRESTToken { |
147
|
|
|
|
|
|
|
my $self = shift; |
148
|
|
|
|
|
|
|
return $self->getResponseDataType()->getRESTToken(); |
149
|
|
|
|
|
|
|
} |
150
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
=head2 getEBayAuthToken() |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
The authentication token for the user. |
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
Returned: Always |
156
|
|
|
|
|
|
|
# Returns: 'xs:string' |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
=cut |
159
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
sub getEBayAuthToken { |
161
|
|
|
|
|
|
|
my $self = shift; |
162
|
|
|
|
|
|
|
return $self->getResponseDataType()->getEBayAuthToken(); |
163
|
|
|
|
|
|
|
} |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
1; |