| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::Call::GetProductSellingPages; |
|
4
|
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
2625
|
use strict; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
28
|
|
|
6
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
27
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
|
9
|
|
|
|
|
|
|
# |
|
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
|
11
|
|
|
|
|
|
|
# File: ................. GetProductSellingPages.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::GetProductSellingPages |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=cut |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 INHERITANCE |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
eBay::API::XML::Call::GetProductSellingPages inherits from the L class |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=cut |
|
36
|
|
|
|
|
|
|
|
|
37
|
1
|
|
|
1
|
|
33
|
use eBay::API::XML::BaseCall; |
|
|
0
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::BaseCall"); |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
use eBay::API::XML::Call::GetProductSellingPages::GetProductSellingPagesRequestType; |
|
41
|
|
|
|
|
|
|
use eBay::API::XML::Call::GetProductSellingPages::GetProductSellingPagesResponseType; |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 Subroutines: |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=cut |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
sub getApiCallName { |
|
49
|
|
|
|
|
|
|
return 'GetProductSellingPages'; |
|
50
|
|
|
|
|
|
|
} |
|
51
|
|
|
|
|
|
|
sub getRequestDataTypeFullPackage { |
|
52
|
|
|
|
|
|
|
return 'eBay::API::XML::Call::GetProductSellingPages::GetProductSellingPagesRequestType'; |
|
53
|
|
|
|
|
|
|
} |
|
54
|
|
|
|
|
|
|
sub getResponseDataTypeFullPackage { |
|
55
|
|
|
|
|
|
|
return 'eBay::API::XML::Call::GetProductSellingPages::GetProductSellingPagesResponseType'; |
|
56
|
|
|
|
|
|
|
} |
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
# |
|
59
|
|
|
|
|
|
|
# input properties |
|
60
|
|
|
|
|
|
|
# |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head2 setProduct() |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
A catalog product identifies a prototype description |
|
65
|
|
|
|
|
|
|
of a well-known type of item, such as a popular book. |
|
66
|
|
|
|
|
|
|
As this call supports batch requests, you can pass in an array of products |
|
67
|
|
|
|
|
|
|
to retrieve data for several products at the same time. |
|
68
|
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=AttrGPSellP |
|
70
|
|
|
|
|
|
|
Title: Retrieving a Product's Item Specifics |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
RequiredInput: Yes |
|
73
|
|
|
|
|
|
|
# Argument: reference to an array |
|
74
|
|
|
|
|
|
|
of 'ns:ProductType' |
|
75
|
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=cut |
|
77
|
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
sub setProduct { |
|
79
|
|
|
|
|
|
|
my $self = shift; |
|
80
|
|
|
|
|
|
|
my $pProduct = shift; |
|
81
|
|
|
|
|
|
|
$self->getRequestDataType()->setProduct($pProduct); |
|
82
|
|
|
|
|
|
|
} |
|
83
|
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=head2 setUseCase() |
|
85
|
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
Specifies the context in which the call is being executed, which will imply |
|
87
|
|
|
|
|
|
|
certain validation rules. Use this property to make sure you retrieve the |
|
88
|
|
|
|
|
|
|
appropriate version of product information and attribute meta-data |
|
89
|
|
|
|
|
|
|
when you are listing, revising, or relisting an item with Pre-filled Item Information. |
|
90
|
|
|
|
|
|
|
Valid values: |
|
91
|
|
|
|
|
|
|
SYI = Sell Your Item. Use before adding an item. Causes the response to include the |
|
92
|
|
|
|
|
|
|
latest product ID in the system (given an ID specified in the Products element) |
|
93
|
|
|
|
|
|
|
and the corresponding characteristic meta-data. |
|
94
|
|
|
|
|
|
|
RYI = Revise Your Item. Use this before revising an item. Causes the response to return |
|
95
|
|
|
|
|
|
|
the product ID, attribute data, and other data associated with the version of the product |
|
96
|
|
|
|
|
|
|
that you pass in the Products element. This is useful in case the product ID or associated data |
|
97
|
|
|
|
|
|
|
has changed in the system since the item was originally listed. When revising |
|
98
|
|
|
|
|
|
|
an item, this helps you make changes that are consistent with the original listing. |
|
99
|
|
|
|
|
|
|
RELIST = Use this before relisting an item. Causes the response to include the |
|
100
|
|
|
|
|
|
|
latest product ID in the system (given an ID specified in the Products element) |
|
101
|
|
|
|
|
|
|
and the corresponding characteristic meta-data. (Same as SYI). |
|
102
|
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
RequiredInput: Yes |
|
104
|
|
|
|
|
|
|
# Argument: 'ns:ProductUseCaseCodeType' |
|
105
|
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=cut |
|
107
|
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
sub setUseCase { |
|
109
|
|
|
|
|
|
|
my $self = shift; |
|
110
|
|
|
|
|
|
|
my $sUseCase = shift; |
|
111
|
|
|
|
|
|
|
$self->getRequestDataType()->setUseCase($sUseCase); |
|
112
|
|
|
|
|
|
|
} |
|
113
|
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
# |
|
117
|
|
|
|
|
|
|
# output properties |
|
118
|
|
|
|
|
|
|
# |
|
119
|
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
=head2 getProductSellingPagesData() |
|
121
|
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
A string containing a list of all the attributes that are applicable |
|
123
|
|
|
|
|
|
|
to the products specified in the request, along with related meta-data. |
|
124
|
|
|
|
|
|
|
The meta-data specifies the pre-filled values of each attribute, the |
|
125
|
|
|
|
|
|
|
possible values of attributes that are not pre-filled, the logic for presenting |
|
126
|
|
|
|
|
|
|
the attributes to a user, and rules for validating the user's selections. |
|
127
|
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
For backward compatibility, this data is in |
|
129
|
|
|
|
|
|
|
the same XML format that was used in the Legacy XML API so that you can |
|
130
|
|
|
|
|
|
|
apply the same Item Specifics XSL stylesheet to it. That is, individual |
|
131
|
|
|
|
|
|
|
elements are not described using the unified schema format. |
|
132
|
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
The data is based on the GetAttributesCS response (AttributeData), with |
|
134
|
|
|
|
|
|
|
additional information that is specific to catalog products. |
|
135
|
|
|
|
|
|
|
Product and attribute information is nested within a set of Product tags. |
|
136
|
|
|
|
|
|
|
The product-specific data is merged into the attribute data so that the same |
|
137
|
|
|
|
|
|
|
XSL stylesheet used to render the results of GetAttributeCS can be used to render |
|
138
|
|
|
|
|
|
|
catalog product data. See GetAttributesXSL. |
|
139
|
|
|
|
|
|
|
|
|
140
|
|
|
|
|
|
|
See the Attribute Meta-Data Model section of the eBay Web Services guide |
|
141
|
|
|
|
|
|
|
for information about each element in the ProductSellingPagesData string. |
|
142
|
|
|
|
|
|
|
|
|
143
|
|
|
|
|
|
|
Because the content is returned as a string, the XML markup elements are escaped with |
|
144
|
|
|
|
|
|
|
character entity references (e.g.,<eBay><Attributes>...). |
|
145
|
|
|
|
|
|
|
See the appendices in the eBay Web Services guide for general information about |
|
146
|
|
|
|
|
|
|
string data types. |
|
147
|
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
Returned: Always |
|
149
|
|
|
|
|
|
|
# Returns: 'xs:string' |
|
150
|
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
=cut |
|
152
|
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
sub getProductSellingPagesData { |
|
154
|
|
|
|
|
|
|
my $self = shift; |
|
155
|
|
|
|
|
|
|
return $self->getResponseDataType()->getProductSellingPagesData(); |
|
156
|
|
|
|
|
|
|
} |
|
157
|
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
1; |