| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::Call::GetSearchResults; |
|
4
|
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
28078
|
use strict; |
|
|
2
|
|
|
|
|
5
|
|
|
|
2
|
|
|
|
|
57
|
|
|
6
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
|
2
|
|
|
|
|
3
|
|
|
|
2
|
|
|
|
|
55
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
|
9
|
|
|
|
|
|
|
# |
|
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
|
11
|
|
|
|
|
|
|
# File: ................. GetSearchResults.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::GetSearchResults |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=cut |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 INHERITANCE |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
eBay::API::XML::Call::GetSearchResults inherits from the L class |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=cut |
|
36
|
|
|
|
|
|
|
|
|
37
|
2
|
|
|
2
|
|
739
|
use eBay::API::XML::BaseCall; |
|
|
0
|
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
our @ISA = ("eBay::API::XML::BaseCall"); |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
use eBay::API::XML::Call::GetSearchResults::GetSearchResultsRequestType; |
|
41
|
|
|
|
|
|
|
use eBay::API::XML::Call::GetSearchResults::GetSearchResultsResponseType; |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 Subroutines: |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=cut |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
sub getApiCallName { |
|
49
|
|
|
|
|
|
|
return 'GetSearchResults'; |
|
50
|
|
|
|
|
|
|
} |
|
51
|
|
|
|
|
|
|
sub getRequestDataTypeFullPackage { |
|
52
|
|
|
|
|
|
|
return 'eBay::API::XML::Call::GetSearchResults::GetSearchResultsRequestType'; |
|
53
|
|
|
|
|
|
|
} |
|
54
|
|
|
|
|
|
|
sub getResponseDataTypeFullPackage { |
|
55
|
|
|
|
|
|
|
return 'eBay::API::XML::Call::GetSearchResults::GetSearchResultsResponseType'; |
|
56
|
|
|
|
|
|
|
} |
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
# |
|
59
|
|
|
|
|
|
|
# input properties |
|
60
|
|
|
|
|
|
|
# |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head2 setAdFormat() |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
Restricts listings to return only items that have the Ad Format feature. |
|
65
|
|
|
|
|
|
|
If true, the values of ItemTypeFilter and |
|
66
|
|
|
|
|
|
|
StoreSearchFilter are ignored (if they are specified). That is, "AND" |
|
67
|
|
|
|
|
|
|
logic is not applied. |
|
68
|
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
RequiredInput: No |
|
70
|
|
|
|
|
|
|
# Argument: 'xs:boolean' |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=cut |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
sub setAdFormat { |
|
75
|
|
|
|
|
|
|
my $self = shift; |
|
76
|
|
|
|
|
|
|
my $sAdFormat = shift; |
|
77
|
|
|
|
|
|
|
$self->getRequestDataType()->setAdFormat($sAdFormat); |
|
78
|
|
|
|
|
|
|
} |
|
79
|
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=head2 setAffiliateTrackingDetails() |
|
81
|
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
Container for affiliate tags. |
|
83
|
|
|
|
|
|
|
If you use affiliate tags, it is possible to get affiliate commissions |
|
84
|
|
|
|
|
|
|
based on calls made by your application. |
|
85
|
|
|
|
|
|
|
(See the eBay Partner Network |
|
86
|
|
|
|
|
|
|
for information about commissions.) |
|
87
|
|
|
|
|
|
|
Affiliate tags enable the tracking of user activity. |
|
88
|
|
|
|
|
|
|
You can use child tags of AffiliateTrackingDetails if you want |
|
89
|
|
|
|
|
|
|
call output to include a string that includes |
|
90
|
|
|
|
|
|
|
affiliate tracking information. |
|
91
|
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=AffiliateTrackingConcepts |
|
93
|
|
|
|
|
|
|
Title: Affiliate Tracking Concepts |
|
94
|
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
RequiredInput: No |
|
96
|
|
|
|
|
|
|
# Argument: 'ns:AffiliateTrackingDetailsType' |
|
97
|
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
=cut |
|
99
|
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
sub setAffiliateTrackingDetails { |
|
101
|
|
|
|
|
|
|
my $self = shift; |
|
102
|
|
|
|
|
|
|
my $pAffiliateTrackingDetails = shift; |
|
103
|
|
|
|
|
|
|
$self->getRequestDataType()->setAffiliateTrackingDetails($pAffiliateTrackingDetails); |
|
104
|
|
|
|
|
|
|
} |
|
105
|
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=head2 setBidRange() |
|
107
|
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
Limits the results to items with a minimum or maximum number |
|
109
|
|
|
|
|
|
|
of bids. You also can specify a bid range by specifying |
|
110
|
|
|
|
|
|
|
both a minimum and maximum number of bids in one call. |
|
111
|
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
RequiredInput: No |
|
113
|
|
|
|
|
|
|
# Argument: 'ns:BidRangeType' |
|
114
|
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
=cut |
|
116
|
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
sub setBidRange { |
|
118
|
|
|
|
|
|
|
my $self = shift; |
|
119
|
|
|
|
|
|
|
my $pBidRange = shift; |
|
120
|
|
|
|
|
|
|
$self->getRequestDataType()->setBidRange($pBidRange); |
|
121
|
|
|
|
|
|
|
} |
|
122
|
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
=head2 setCategories() |
|
124
|
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
Retrieves statistical (histogram) information about categories that contain items |
|
126
|
|
|
|
|
|
|
that match the query. Can also cause the result to include information |
|
127
|
|
|
|
|
|
|
about buying guides that are associated with the matching categories. |
|
128
|
|
|
|
|
|
|
Does not control the set of listings to return or the details to return |
|
129
|
|
|
|
|
|
|
for each listing. |
|
130
|
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=SearchingForMatchingCategories |
|
132
|
|
|
|
|
|
|
Title: Searching for Matching Categories |
|
133
|
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
RequiredInput: No |
|
135
|
|
|
|
|
|
|
# Argument: 'ns:RequestCategoriesType' |
|
136
|
|
|
|
|
|
|
|
|
137
|
|
|
|
|
|
|
=cut |
|
138
|
|
|
|
|
|
|
|
|
139
|
|
|
|
|
|
|
sub setCategories { |
|
140
|
|
|
|
|
|
|
my $self = shift; |
|
141
|
|
|
|
|
|
|
my $pCategories = shift; |
|
142
|
|
|
|
|
|
|
$self->getRequestDataType()->setCategories($pCategories); |
|
143
|
|
|
|
|
|
|
} |
|
144
|
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
=head2 setCategoryID() |
|
146
|
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
Limits the result set to items in the specified category. |
|
148
|
|
|
|
|
|
|
If no category ID is specified, all categories |
|
149
|
|
|
|
|
|
|
are searched by default. |
|
150
|
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
Note: |
|
152
|
|
|
|
|
|
|
CategoryID does not control whether you will see the |
|
153
|
|
|
|
|
|
|
item's categories in the response. Set the value of DetailLevel to |
|
154
|
|
|
|
|
|
|
ItemReturnCategories to retrieve each item's primary category and |
|
155
|
|
|
|
|
|
|
secondary category (if any) in the response. |
|
156
|
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
If the specified category ID doesn't match an existing category |
|
158
|
|
|
|
|
|
|
for the site, an invalid-category error message is returned. |
|
159
|
|
|
|
|
|
|
Here are a few ways to determine valid categories: |
|
160
|
|
|
|
|
|
|
- Use the Categories input field to retrieve |
|
161
|
|
|
|
|
|
|
matching categories, and then submit the request again with one of |
|
162
|
|
|
|
|
|
|
those categories. |
|
163
|
|
|
|
|
|
|
- Find items in all categories but set DetailLevel to |
|
164
|
|
|
|
|
|
|
ItemReturnCategories, determine the primary (or secondary) |
|
165
|
|
|
|
|
|
|
category ID for a similar item in the results, and then |
|
166
|
|
|
|
|
|
|
submit the request again with that category ID. |
|
167
|
|
|
|
|
|
|
- Use another call like GetCategories or GetSuggestedCategories to |
|
168
|
|
|
|
|
|
|
find a valid category ID. |
|
169
|
|
|
|
|
|
|
|
|
170
|
|
|
|
|
|
|
You must pass ProductID, Query, ExternalProductID, or CategoryID |
|
171
|
|
|
|
|
|
|
in the request. CategoryID can be used in combination with Query. |
|
172
|
|
|
|
|
|
|
It is not allowed with ExternalProductID or ProductID. |
|
173
|
|
|
|
|
|
|
If you pass CategoryID without Query, it |
|
174
|
|
|
|
|
|
|
must specify a leaf category ID. That is, it cannot be a |
|
175
|
|
|
|
|
|
|
meta-category ID (e.g., 267 for "Books"). |
|
176
|
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=SearchingByCategoryID |
|
178
|
|
|
|
|
|
|
Title: Searching by Category ID |
|
179
|
|
|
|
|
|
|
MaxLength: 10 |
|
180
|
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
RequiredInput: Conditionally |
|
182
|
|
|
|
|
|
|
# Argument: 'xs:string' |
|
183
|
|
|
|
|
|
|
|
|
184
|
|
|
|
|
|
|
=cut |
|
185
|
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
sub setCategoryID { |
|
187
|
|
|
|
|
|
|
my $self = shift; |
|
188
|
|
|
|
|
|
|
my $sCategoryID = shift; |
|
189
|
|
|
|
|
|
|
$self->getRequestDataType()->setCategoryID($sCategoryID); |
|
190
|
|
|
|
|
|
|
} |
|
191
|
|
|
|
|
|
|
|
|
192
|
|
|
|
|
|
|
=head2 setCharityID() |
|
193
|
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
Restricts listings to return only items that support the specified |
|
195
|
|
|
|
|
|
|
nonprofit charity organization. Retrieve CharityID values with |
|
196
|
|
|
|
|
|
|
GetCharities. |
|
197
|
|
|
|
|
|
|
|
|
198
|
|
|
|
|
|
|
RequiredInput: No |
|
199
|
|
|
|
|
|
|
# Argument: 'xs:int' |
|
200
|
|
|
|
|
|
|
|
|
201
|
|
|
|
|
|
|
=cut |
|
202
|
|
|
|
|
|
|
|
|
203
|
|
|
|
|
|
|
sub setCharityID { |
|
204
|
|
|
|
|
|
|
my $self = shift; |
|
205
|
|
|
|
|
|
|
my $sCharityID = shift; |
|
206
|
|
|
|
|
|
|
$self->getRequestDataType()->setCharityID($sCharityID); |
|
207
|
|
|
|
|
|
|
} |
|
208
|
|
|
|
|
|
|
|
|
209
|
|
|
|
|
|
|
=head2 setEndTimeFrom() |
|
210
|
|
|
|
|
|
|
|
|
211
|
|
|
|
|
|
|
Limits the results to items ending within a time range. EndTimeFrom |
|
212
|
|
|
|
|
|
|
specifies the beginning of the time range. Specify a time in the future. |
|
213
|
|
|
|
|
|
|
If you specify a time in the past, the current time is used. If specified, |
|
214
|
|
|
|
|
|
|
EndTimeTo must also be specified (with a value equal to or later than |
|
215
|
|
|
|
|
|
|
EndTimeFrom). Express the time in GMT. Cannot be used with the ModTimeFrom |
|
216
|
|
|
|
|
|
|
filter. |
|
217
|
|
|
|
|
|
|
|
|
218
|
|
|
|
|
|
|
RequiredInput: Conditionally |
|
219
|
|
|
|
|
|
|
# Argument: 'xs:dateTime' |
|
220
|
|
|
|
|
|
|
|
|
221
|
|
|
|
|
|
|
=cut |
|
222
|
|
|
|
|
|
|
|
|
223
|
|
|
|
|
|
|
sub setEndTimeFrom { |
|
224
|
|
|
|
|
|
|
my $self = shift; |
|
225
|
|
|
|
|
|
|
my $sEndTimeFrom = shift; |
|
226
|
|
|
|
|
|
|
$self->getRequestDataType()->setEndTimeFrom($sEndTimeFrom); |
|
227
|
|
|
|
|
|
|
} |
|
228
|
|
|
|
|
|
|
|
|
229
|
|
|
|
|
|
|
=head2 setEndTimeTo() |
|
230
|
|
|
|
|
|
|
|
|
231
|
|
|
|
|
|
|
Limits the results to items ending within a time range. EndTimeTo specifies |
|
232
|
|
|
|
|
|
|
the end of the time range. If specified, EndTimeFrom must also be specified |
|
233
|
|
|
|
|
|
|
(with a value equal to or earlier than EndTimeTo). Express the time in GMT. |
|
234
|
|
|
|
|
|
|
Cannot be used with the ModTimeFrom filter. |
|
235
|
|
|
|
|
|
|
|
|
236
|
|
|
|
|
|
|
RequiredInput: Conditionally |
|
237
|
|
|
|
|
|
|
# Argument: 'xs:dateTime' |
|
238
|
|
|
|
|
|
|
|
|
239
|
|
|
|
|
|
|
=cut |
|
240
|
|
|
|
|
|
|
|
|
241
|
|
|
|
|
|
|
sub setEndTimeTo { |
|
242
|
|
|
|
|
|
|
my $self = shift; |
|
243
|
|
|
|
|
|
|
my $sEndTimeTo = shift; |
|
244
|
|
|
|
|
|
|
$self->getRequestDataType()->setEndTimeTo($sEndTimeTo); |
|
245
|
|
|
|
|
|
|
} |
|
246
|
|
|
|
|
|
|
|
|
247
|
|
|
|
|
|
|
=head2 setExpandSearch() |
|
248
|
|
|
|
|
|
|
|
|
249
|
|
|
|
|
|
|
Expands search results when a small result set is returned. For example, |
|
250
|
|
|
|
|
|
|
on the US site (site ID 0), if a search would normally result in fewer |
|
251
|
|
|
|
|
|
|
than 10 items, then if you specify true for this tag, the search results |
|
252
|
|
|
|
|
|
|
are expanded. Specifically, the search returns items (if there are |
|
253
|
|
|
|
|
|
|
matches) in one or more of the following containers: |
|
254
|
|
|
|
|
|
|
InternationalExpansionArray (for items available from international |
|
255
|
|
|
|
|
|
|
sellers), FilterRemovedExpansionArray (items that would be returned if |
|
256
|
|
|
|
|
|
|
filters such as PriceRangeFilter are removed), StoreExpansionArray (for |
|
257
|
|
|
|
|
|
|
items listed in the Store Inventory Format), and |
|
258
|
|
|
|
|
|
|
AllCategoriesExpansionArray (for items available if category filters are |
|
259
|
|
|
|
|
|
|
removed). Maximum number of items returned in each expansion container is |
|
260
|
|
|
|
|
|
|
6 to 10. |
|
261
|
|
|
|
|
|
|
|
|
262
|
|
|
|
|
|
|
RequiredInput: No |
|
263
|
|
|
|
|
|
|
# Argument: 'xs:boolean' |
|
264
|
|
|
|
|
|
|
|
|
265
|
|
|
|
|
|
|
=cut |
|
266
|
|
|
|
|
|
|
|
|
267
|
|
|
|
|
|
|
sub setExpandSearch { |
|
268
|
|
|
|
|
|
|
my $self = shift; |
|
269
|
|
|
|
|
|
|
my $sExpandSearch = shift; |
|
270
|
|
|
|
|
|
|
$self->getRequestDataType()->setExpandSearch($sExpandSearch); |
|
271
|
|
|
|
|
|
|
} |
|
272
|
|
|
|
|
|
|
|
|
273
|
|
|
|
|
|
|
=head2 setExternalProductID() |
|
274
|
|
|
|
|
|
|
|
|
275
|
|
|
|
|
|
|
An exclusive query to only retrieve items that were listed with the |
|
276
|
|
|
|
|
|
|
specified ISBN or UPC. Only applicable for items that were listed with |
|
277
|
|
|
|
|
|
|
Pre-filled Item Information in media categories (Books, Music, DVDs and |
|
278
|
|
|
|
|
|
|
Movies, and Video Games). You must pass ProductID, Query, |
|
279
|
|
|
|
|
|
|
ExternalProductID, or CategoryID in the request. If you use |
|
280
|
|
|
|
|
|
|
ExternalProductID, do not use Query, ProductID, or CategoryID. |
|
281
|
|
|
|
|
|
|
|
|
282
|
|
|
|
|
|
|
RequiredInput: Conditionally |
|
283
|
|
|
|
|
|
|
# Argument: 'ns:ExternalProductIDType' |
|
284
|
|
|
|
|
|
|
|
|
285
|
|
|
|
|
|
|
=cut |
|
286
|
|
|
|
|
|
|
|
|
287
|
|
|
|
|
|
|
sub setExternalProductID { |
|
288
|
|
|
|
|
|
|
my $self = shift; |
|
289
|
|
|
|
|
|
|
my $pExternalProductID = shift; |
|
290
|
|
|
|
|
|
|
$self->getRequestDataType()->setExternalProductID($pExternalProductID); |
|
291
|
|
|
|
|
|
|
} |
|
292
|
|
|
|
|
|
|
|
|
293
|
|
|
|
|
|
|
=head2 setFreeShipping() |
|
294
|
|
|
|
|
|
|
|
|
295
|
|
|
|
|
|
|
If true, only items with free shipping for the user's location are |
|
296
|
|
|
|
|
|
|
returned. The user's location is determined from the site ID specified |
|
297
|
|
|
|
|
|
|
in the request. If false, no filtering is done via this attribute. A |
|
298
|
|
|
|
|
|
|
listing is not considered a free shipping listing if it requires |
|
299
|
|
|
|
|
|
|
insurance or requires pick up or requires a shipping surcharge. |
|
300
|
|
|
|
|
|
|
|
|
301
|
|
|
|
|
|
|
Default: false |
|
302
|
|
|
|
|
|
|
|
|
303
|
|
|
|
|
|
|
RequiredInput: No |
|
304
|
|
|
|
|
|
|
# Argument: 'xs:boolean' |
|
305
|
|
|
|
|
|
|
|
|
306
|
|
|
|
|
|
|
=cut |
|
307
|
|
|
|
|
|
|
|
|
308
|
|
|
|
|
|
|
sub setFreeShipping { |
|
309
|
|
|
|
|
|
|
my $self = shift; |
|
310
|
|
|
|
|
|
|
my $sFreeShipping = shift; |
|
311
|
|
|
|
|
|
|
$self->getRequestDataType()->setFreeShipping($sFreeShipping); |
|
312
|
|
|
|
|
|
|
} |
|
313
|
|
|
|
|
|
|
|
|
314
|
|
|
|
|
|
|
=head2 setGranularityLevel() |
|
315
|
|
|
|
|
|
|
|
|
316
|
|
|
|
|
|
|
Optional tag that currently accepts only one value for this call: Coarse. |
|
317
|
|
|
|
|
|
|
Other values return an error. If you specify Coarse, the call |
|
318
|
|
|
|
|
|
|
returns the fields shown in the |
|
319
|
|
|
|
|
|
|
GranularityLevel table |
|
320
|
|
|
|
|
|
|
plus any tags resulting from the detail level you specify. |
|
321
|
|
|
|
|
|
|
Controls the fields to return for each listing (not the set of |
|
322
|
|
|
|
|
|
|
listings that match the query). |
|
323
|
|
|
|
|
|
|
|
|
324
|
|
|
|
|
|
|
PresentDetails: Yes |
|
325
|
|
|
|
|
|
|
|
|
326
|
|
|
|
|
|
|
RequiredInput: No |
|
327
|
|
|
|
|
|
|
# Argument: 'ns:GranularityLevelCodeType' |
|
328
|
|
|
|
|
|
|
|
|
329
|
|
|
|
|
|
|
=cut |
|
330
|
|
|
|
|
|
|
|
|
331
|
|
|
|
|
|
|
sub setGranularityLevel { |
|
332
|
|
|
|
|
|
|
my $self = shift; |
|
333
|
|
|
|
|
|
|
my $sGranularityLevel = shift; |
|
334
|
|
|
|
|
|
|
$self->getRequestDataType()->setGranularityLevel($sGranularityLevel); |
|
335
|
|
|
|
|
|
|
} |
|
336
|
|
|
|
|
|
|
|
|
337
|
|
|
|
|
|
|
=head2 setGroup() |
|
338
|
|
|
|
|
|
|
|
|
339
|
|
|
|
|
|
|
You can group Best Match search results by category by specifying BestMatchCategoryGroup |
|
340
|
|
|
|
|
|
|
in the Order field. When you specify BestMatchCategoryGroup |
|
341
|
|
|
|
|
|
|
in the Order field, you can also specify Group.MaxEntriesPerGroup and/or Group.MaxGroups. |
|
342
|
|
|
|
|
|
|
When you specify BestMatchCategoryGroup |
|
343
|
|
|
|
|
|
|
in the Order field, there will be fewer results returned because Best Matches |
|
344
|
|
|
|
|
|
|
in lower-level (leaf) categories and higher-level categories are taken into account. |
|
345
|
|
|
|
|
|
|
There is not a direct correlation between the number of items returned in a regular sort (or in a BestMatch sort) and the number of items that are returned when you specify BestMatchCategoryGroup |
|
346
|
|
|
|
|
|
|
in the Order field. |
|
347
|
|
|
|
|
|
|
When you specify BestMatchCategoryGroup |
|
348
|
|
|
|
|
|
|
in the Order field, not more than 2 pages of results are returned. |
|
349
|
|
|
|
|
|
|
See also the GroupCategoryID element in ItemType. |
|
350
|
|
|
|
|
|
|
|
|
351
|
|
|
|
|
|
|
RequiredInput: No |
|
352
|
|
|
|
|
|
|
# Argument: 'ns:GroupType' |
|
353
|
|
|
|
|
|
|
|
|
354
|
|
|
|
|
|
|
=cut |
|
355
|
|
|
|
|
|
|
|
|
356
|
|
|
|
|
|
|
sub setGroup { |
|
357
|
|
|
|
|
|
|
my $self = shift; |
|
358
|
|
|
|
|
|
|
my $pGroup = shift; |
|
359
|
|
|
|
|
|
|
$self->getRequestDataType()->setGroup($pGroup); |
|
360
|
|
|
|
|
|
|
} |
|
361
|
|
|
|
|
|
|
|
|
362
|
|
|
|
|
|
|
=head2 setIncludeCondition() |
|
363
|
|
|
|
|
|
|
|
|
364
|
|
|
|
|
|
|
If true, each item in the result set can also |
|
365
|
|
|
|
|
|
|
include the item condition (e.g., New or Used) in the |
|
366
|
|
|
|
|
|
|
ItemSpecific property of the response. An item only includes |
|
367
|
|
|
|
|
|
|
the condition in the response if the seller filled in the |
|
368
|
|
|
|
|
|
|
Item Condition in the Item Specifics section of the listing. |
|
369
|
|
|
|
|
|
|
(That is, the condition is not returned if the seller |
|
370
|
|
|
|
|
|
|
only put the word "New" in the listing's title.) |
|
371
|
|
|
|
|
|
|
|
|
372
|
|
|
|
|
|
|
Controls the details to return for each listing (not the set of |
|
373
|
|
|
|
|
|
|
listings that match the query). |
|
374
|
|
|
|
|
|
|
To control whether to retrieve only new or used items, |
|
375
|
|
|
|
|
|
|
see ItemCondition (or SearchRequest). |
|
376
|
|
|
|
|
|
|
|
|
377
|
|
|
|
|
|
|
RequiredInput: No |
|
378
|
|
|
|
|
|
|
# Argument: 'xs:boolean' |
|
379
|
|
|
|
|
|
|
|
|
380
|
|
|
|
|
|
|
=cut |
|
381
|
|
|
|
|
|
|
|
|
382
|
|
|
|
|
|
|
sub setIncludeCondition { |
|
383
|
|
|
|
|
|
|
my $self = shift; |
|
384
|
|
|
|
|
|
|
my $sIncludeCondition = shift; |
|
385
|
|
|
|
|
|
|
$self->getRequestDataType()->setIncludeCondition($sIncludeCondition); |
|
386
|
|
|
|
|
|
|
} |
|
387
|
|
|
|
|
|
|
|
|
388
|
|
|
|
|
|
|
=head2 setIncludeFeedback() |
|
389
|
|
|
|
|
|
|
|
|
390
|
|
|
|
|
|
|
If true, each item in the result set also includes information about the |
|
391
|
|
|
|
|
|
|
seller's feedback. Controls the details to return for each listing (not |
|
392
|
|
|
|
|
|
|
the set of listings that match the query). |
|
393
|
|
|
|
|
|
|
|
|
394
|
|
|
|
|
|
|
For GetSearchResults, if set to true will also return the seller's User ID. |
|
395
|
|
|
|
|
|
|
|
|
396
|
|
|
|
|
|
|
RequiredInput: No |
|
397
|
|
|
|
|
|
|
# Argument: 'xs:boolean' |
|
398
|
|
|
|
|
|
|
|
|
399
|
|
|
|
|
|
|
=cut |
|
400
|
|
|
|
|
|
|
|
|
401
|
|
|
|
|
|
|
sub setIncludeFeedback { |
|
402
|
|
|
|
|
|
|
my $self = shift; |
|
403
|
|
|
|
|
|
|
my $sIncludeFeedback = shift; |
|
404
|
|
|
|
|
|
|
$self->getRequestDataType()->setIncludeFeedback($sIncludeFeedback); |
|
405
|
|
|
|
|
|
|
} |
|
406
|
|
|
|
|
|
|
|
|
407
|
|
|
|
|
|
|
=head2 setIncludeGetItFastItems() |
|
408
|
|
|
|
|
|
|
|
|
409
|
|
|
|
|
|
|
When passed with a value of true, limits the results to Get It Fast listings. |
|
410
|
|
|
|
|
|
|
|
|
411
|
|
|
|
|
|
|
RequiredInput: No |
|
412
|
|
|
|
|
|
|
# Argument: 'xs:boolean' |
|
413
|
|
|
|
|
|
|
|
|
414
|
|
|
|
|
|
|
=cut |
|
415
|
|
|
|
|
|
|
|
|
416
|
|
|
|
|
|
|
sub setIncludeGetItFastItems { |
|
417
|
|
|
|
|
|
|
my $self = shift; |
|
418
|
|
|
|
|
|
|
my $sIncludeGetItFastItems = shift; |
|
419
|
|
|
|
|
|
|
$self->getRequestDataType()->setIncludeGetItFastItems($sIncludeGetItFastItems); |
|
420
|
|
|
|
|
|
|
} |
|
421
|
|
|
|
|
|
|
|
|
422
|
|
|
|
|
|
|
=head2 setItemCondition() |
|
423
|
|
|
|
|
|
|
|
|
424
|
|
|
|
|
|
|
Limits the results to new or used items, plus items that have no |
|
425
|
|
|
|
|
|
|
condition specified. |
|
426
|
|
|
|
|
|
|
|
|
427
|
|
|
|
|
|
|
Matches the new or used condition that the seller specified |
|
428
|
|
|
|
|
|
|
in the Item Specifics section of the listing. |
|
429
|
|
|
|
|
|
|
(That is, this won't specifically match on items where the seller |
|
430
|
|
|
|
|
|
|
only put the word "New" in the listing's title.) |
|
431
|
|
|
|
|
|
|
|
|
432
|
|
|
|
|
|
|
Only applicable to sites and categories that support a |
|
433
|
|
|
|
|
|
|
sitewide (global) item condition. For example, the US site |
|
434
|
|
|
|
|
|
|
does not currently support this. See GetCategory2CS. |
|
435
|
|
|
|
|
|
|
To search for the item condition on the US site, |
|
436
|
|
|
|
|
|
|
use a product finder instead (see SearchRequest). |
|
437
|
|
|
|
|
|
|
|
|
438
|
|
|
|
|
|
|
SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=ItemCondition |
|
439
|
|
|
|
|
|
|
Title: Specifying an Item's Condition |
|
440
|
|
|
|
|
|
|
, URL: GetSearchResults.html#Request.SearchRequest |
|
441
|
|
|
|
|
|
|
Title: (GetSearchResults) SearchRequest |
|
442
|
|
|
|
|
|
|
, URL: GetSearchResults.html#Request.IncludeCondition |
|
443
|
|
|
|
|
|
|
Title: (GetSearchResults) IncludeCondition |
|
444
|
|
|
|
|
|
|
|
|
445
|
|
|
|
|
|
|
|
|
446
|
|
|
|
|
|
|
RequiredInput: No |
|
447
|
|
|
|
|
|
|
# Argument: 'ns:ItemConditionCodeType' |
|
448
|
|
|
|
|
|
|
|
|
449
|
|
|
|
|
|
|
=cut |
|
450
|
|
|
|
|
|
|
|
|
451
|
|
|
|
|
|
|
sub setItemCondition { |
|
452
|
|
|
|
|
|
|
my $self = shift; |
|
453
|
|
|
|
|
|
|
my $sItemCondition = shift; |
|
454
|
|
|
|
|
|
|
$self->getRequestDataType()->setItemCondition($sItemCondition); |
|
455
|
|
|
|
|
|
|
} |
|
456
|
|
|
|
|
|
|
|
|
457
|
|
|
|
|
|
|
=head2 setItemTypeFilter() |
|
458
|
|
|
|
|
|
|
|
|
459
|
|
|
|
|
|
|
Filters items based on the ListingType set for the items. |
|
460
|
|
|
|
|
|
|
If ItemTypeFilter is not |
|
461
|
|
|
|
|
|
|
specified (or if the AllItemTypes value of ItemTypeFilter is specified), |
|
462
|
|
|
|
|
|
|
all listing types can be returned unless another relevant filter is |
|
463
|
|
|
|
|
|
|
specified. You cannot use GetSearchResults to search eBay Express. |
|
464
|
|
|
|
|
|
|
|
|
465
|
|
|
|
|
|
|
SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=SearchingByListingType |
|
466
|
|
|
|
|
|
|
Title: Searching By Listing Type |
|
467
|
|
|
|
|
|
|
|
|
468
|
|
|
|
|
|
|
RequiredInput: No |
|
469
|
|
|
|
|
|
|
Default: AllItems |
|
470
|
|
|
|
|
|
|
# Argument: 'ns:ItemTypeFilterCodeType' |
|
471
|
|
|
|
|
|
|
|
|
472
|
|
|
|
|
|
|
=cut |
|
473
|
|
|
|
|
|
|
|
|
474
|
|
|
|
|
|
|
sub setItemTypeFilter { |
|
475
|
|
|
|
|
|
|
my $self = shift; |
|
476
|
|
|
|
|
|
|
my $sItemTypeFilter = shift; |
|
477
|
|
|
|
|
|
|
$self->getRequestDataType()->setItemTypeFilter($sItemTypeFilter); |
|
478
|
|
|
|
|
|
|
} |
|
479
|
|
|
|
|
|
|
|
|
480
|
|
|
|
|
|
|
=head2 setLocalSearchPostalCode() |
|
481
|
|
|
|
|
|
|
|
|
482
|
|
|
|
|
|
|
Include local items in returning results near this postal code. This |
|
483
|
|
|
|
|
|
|
postal code is the basis for local search. |
|
484
|
|
|
|
|
|
|
|
|
485
|
|
|
|
|
|
|
RequiredInput: No |
|
486
|
|
|
|
|
|
|
# Argument: 'xs:string' |
|
487
|
|
|
|
|
|
|
|
|
488
|
|
|
|
|
|
|
=cut |
|
489
|
|
|
|
|
|
|
|
|
490
|
|
|
|
|
|
|
sub setLocalSearchPostalCode { |
|
491
|
|
|
|
|
|
|
my $self = shift; |
|
492
|
|
|
|
|
|
|
my $sLocalSearchPostalCode = shift; |
|
493
|
|
|
|
|
|
|
$self->getRequestDataType()->setLocalSearchPostalCode($sLocalSearchPostalCode); |
|
494
|
|
|
|
|
|
|
} |
|
495
|
|
|
|
|
|
|
|
|
496
|
|
|
|
|
|
|
=head2 setLot() |
|
497
|
|
|
|
|
|
|
|
|
498
|
|
|
|
|
|
|
Limits the results to only those listings for which Item.LotSize is 2 or greater. |
|
499
|
|
|
|
|
|
|
|
|
500
|
|
|
|
|
|
|
RequiredInput: No |
|
501
|
|
|
|
|
|
|
# Argument: 'xs:boolean' |
|
502
|
|
|
|
|
|
|
|
|
503
|
|
|
|
|
|
|
=cut |
|
504
|
|
|
|
|
|
|
|
|
505
|
|
|
|
|
|
|
sub setLot { |
|
506
|
|
|
|
|
|
|
my $self = shift; |
|
507
|
|
|
|
|
|
|
my $sLot = shift; |
|
508
|
|
|
|
|
|
|
$self->getRequestDataType()->setLot($sLot); |
|
509
|
|
|
|
|
|
|
} |
|
510
|
|
|
|
|
|
|
|
|
511
|
|
|
|
|
|
|
=head2 setMaxRelatedSearchKeywords() |
|
512
|
|
|
|
|
|
|
|
|
513
|
|
|
|
|
|
|
The maximum number of related keywords to be retrieved. |
|
514
|
|
|
|
|
|
|
Use this field if you want the search results to include |
|
515
|
|
|
|
|
|
|
recommended keywords (that is, keywords matching one or more of the |
|
516
|
|
|
|
|
|
|
original keywords) in a RelatedSearchKeywordArray container. |
|
517
|
|
|
|
|
|
|
A value of 0 (the default) means no related search information is processed. |
|
518
|
|
|
|
|
|
|
|
|
519
|
|
|
|
|
|
|
Max: 100 |
|
520
|
|
|
|
|
|
|
Min: 0 |
|
521
|
|
|
|
|
|
|
|
|
522
|
|
|
|
|
|
|
RequiredInput: No |
|
523
|
|
|
|
|
|
|
# Argument: 'xs:int' |
|
524
|
|
|
|
|
|
|
|
|
525
|
|
|
|
|
|
|
=cut |
|
526
|
|
|
|
|
|
|
|
|
527
|
|
|
|
|
|
|
sub setMaxRelatedSearchKeywords { |
|
528
|
|
|
|
|
|
|
my $self = shift; |
|
529
|
|
|
|
|
|
|
my $sMaxRelatedSearchKeywords = shift; |
|
530
|
|
|
|
|
|
|
$self->getRequestDataType()->setMaxRelatedSearchKeywords($sMaxRelatedSearchKeywords); |
|
531
|
|
|
|
|
|
|
} |
|
532
|
|
|
|
|
|
|
|
|
533
|
|
|
|
|
|
|
=head2 setModTimeFrom() |
|
534
|
|
|
|
|
|
|
|
|
535
|
|
|
|
|
|
|
Limits the results to active items whose status has changed |
|
536
|
|
|
|
|
|
|
since the specified time. Specify a time in the past. |
|
537
|
|
|
|
|
|
|
Time must be in GMT. Cannot be used with the EndTime filters. |
|
538
|
|
|
|
|
|
|
|
|
539
|
|
|
|
|
|
|
RequiredInput: No |
|
540
|
|
|
|
|
|
|
# Argument: 'xs:dateTime' |
|
541
|
|
|
|
|
|
|
|
|
542
|
|
|
|
|
|
|
=cut |
|
543
|
|
|
|
|
|
|
|
|
544
|
|
|
|
|
|
|
sub setModTimeFrom { |
|
545
|
|
|
|
|
|
|
my $self = shift; |
|
546
|
|
|
|
|
|
|
my $sModTimeFrom = shift; |
|
547
|
|
|
|
|
|
|
$self->getRequestDataType()->setModTimeFrom($sModTimeFrom); |
|
548
|
|
|
|
|
|
|
} |
|
549
|
|
|
|
|
|
|
|
|
550
|
|
|
|
|
|
|
=head2 setMotorsGermanySearchable() |
|
551
|
|
|
|
|
|
|
|
|
552
|
|
|
|
|
|
|
Limits the results based on each item's eligibility to appear on the |
|
553
|
|
|
|
|
|
|
mobile.de site. If false, excludes eligible items from search results. If |
|
554
|
|
|
|
|
|
|
true, queries for eligible items only. If not specified, the search |
|
555
|
|
|
|
|
|
|
results are not affected. Only applicable for items listed on the eBay |
|
556
|
|
|
|
|
|
|
Germany site (site ID 77) in subcategories of mobile.de search-enabled |
|
557
|
|
|
|
|
|
|
categories. |
|
558
|
|
|
|
|
|
|
|
|
559
|
|
|
|
|
|
|
RequiredInput: No |
|
560
|
|
|
|
|
|
|
# Argument: 'xs:boolean' |
|
561
|
|
|
|
|
|
|
|
|
562
|
|
|
|
|
|
|
=cut |
|
563
|
|
|
|
|
|
|
|
|
564
|
|
|
|
|
|
|
sub setMotorsGermanySearchable { |
|
565
|
|
|
|
|
|
|
my $self = shift; |
|
566
|
|
|
|
|
|
|
my $sMotorsGermanySearchable = shift; |
|
567
|
|
|
|
|
|
|
$self->getRequestDataType()->setMotorsGermanySearchable($sMotorsGermanySearchable); |
|
568
|
|
|
|
|
|
|
} |
|
569
|
|
|
|
|
|
|
|
|
570
|
|
|
|
|
|
|
=head2 setOrder() |
|
571
|
|
|
|
|
|
|
|
|
572
|
|
|
|
|
|
|
Specifies the order in which listings are returned in a result set. |
|
573
|
|
|
|
|
|
|
Listings may be sorted by end time, start time, and in other ways listed |
|
574
|
|
|
|
|
|
|
in the SearchSortOrderCodeType. Controls the way the listings are |
|
575
|
|
|
|
|
|
|
organized in the response (not the details to return for each listing). |
|
576
|
|
|
|
|
|
|
For most sites, the default sort order is by items ending soonest. Store |
|
577
|
|
|
|
|
|
|
Inventory listings are usually returned after other listing types, |
|
578
|
|
|
|
|
|
|
regardless of the sort order. |
|
579
|
|
|
|
|
|
|
|
|
580
|
|
|
|
|
|
|
Default: BestMatchSort |
|
581
|
|
|
|
|
|
|
|
|
582
|
|
|
|
|
|
|
RequiredInput: No |
|
583
|
|
|
|
|
|
|
# Argument: 'ns:SearchSortOrderCodeType' |
|
584
|
|
|
|
|
|
|
|
|
585
|
|
|
|
|
|
|
=cut |
|
586
|
|
|
|
|
|
|
|
|
587
|
|
|
|
|
|
|
sub setOrder { |
|
588
|
|
|
|
|
|
|
my $self = shift; |
|
589
|
|
|
|
|
|
|
my $sOrder = shift; |
|
590
|
|
|
|
|
|
|
$self->getRequestDataType()->setOrder($sOrder); |
|
591
|
|
|
|
|
|
|
} |
|
592
|
|
|
|
|
|
|
|
|
593
|
|
|
|
|
|
|
=head2 setPagination() |
|
594
|
|
|
|
|
|
|
|
|
595
|
|
|
|
|
|
|
Controls the pagination of the result set. Child elements specify the |
|
596
|
|
|
|
|
|
|
maximum number of item listings to return per call and which page of data |
|
597
|
|
|
|
|
|
|
to return. Controls the way the listings are organized in the response |
|
598
|
|
|
|
|
|
|
(not the details to return for each listing). |
|
599
|
|
|
|
|
|
|
|
|
600
|
|
|
|
|
|
|
SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=PaginatingSearchResults |
|
601
|
|
|
|
|
|
|
Title: Paginating Search Results |
|
602
|
|
|
|
|
|
|
|
|
603
|
|
|
|
|
|
|
RequiredInput: No |
|
604
|
|
|
|
|
|
|
# Argument: 'ns:PaginationType' |
|
605
|
|
|
|
|
|
|
|
|
606
|
|
|
|
|
|
|
=cut |
|
607
|
|
|
|
|
|
|
|
|
608
|
|
|
|
|
|
|
sub setPagination { |
|
609
|
|
|
|
|
|
|
my $self = shift; |
|
610
|
|
|
|
|
|
|
my $pPagination = shift; |
|
611
|
|
|
|
|
|
|
$self->getRequestDataType()->setPagination($pPagination); |
|
612
|
|
|
|
|
|
|
} |
|
613
|
|
|
|
|
|
|
|
|
614
|
|
|
|
|
|
|
=head2 setPaymentMethod() |
|
615
|
|
|
|
|
|
|
|
|
616
|
|
|
|
|
|
|
Limits the results to items that accept a specific payment method or methods. |
|
617
|
|
|
|
|
|
|
|
|
618
|
|
|
|
|
|
|
RequiredInput: No |
|
619
|
|
|
|
|
|
|
# Argument: 'ns:PaymentMethodSearchCodeType' |
|
620
|
|
|
|
|
|
|
|
|
621
|
|
|
|
|
|
|
=cut |
|
622
|
|
|
|
|
|
|
|
|
623
|
|
|
|
|
|
|
sub setPaymentMethod { |
|
624
|
|
|
|
|
|
|
my $self = shift; |
|
625
|
|
|
|
|
|
|
my $sPaymentMethod = shift; |
|
626
|
|
|
|
|
|
|
$self->getRequestDataType()->setPaymentMethod($sPaymentMethod); |
|
627
|
|
|
|
|
|
|
} |
|
628
|
|
|
|
|
|
|
|
|
629
|
|
|
|
|
|
|
=head2 setPriceRangeFilter() |
|
630
|
|
|
|
|
|
|
|
|
631
|
|
|
|
|
|
|
Limits the result set to just those items where the price is within the |
|
632
|
|
|
|
|
|
|
specified range. The PriceRangeFilterType includes a minimum and a maximum |
|
633
|
|
|
|
|
|
|
price. |
|
634
|
|
|
|
|
|
|
|
|
635
|
|
|
|
|
|
|
RequiredInput: No |
|
636
|
|
|
|
|
|
|
# Argument: 'ns:PriceRangeFilterType' |
|
637
|
|
|
|
|
|
|
|
|
638
|
|
|
|
|
|
|
=cut |
|
639
|
|
|
|
|
|
|
|
|
640
|
|
|
|
|
|
|
sub setPriceRangeFilter { |
|
641
|
|
|
|
|
|
|
my $self = shift; |
|
642
|
|
|
|
|
|
|
my $pPriceRangeFilter = shift; |
|
643
|
|
|
|
|
|
|
$self->getRequestDataType()->setPriceRangeFilter($pPriceRangeFilter); |
|
644
|
|
|
|
|
|
|
} |
|
645
|
|
|
|
|
|
|
|
|
646
|
|
|
|
|
|
|
=head2 setProductID() |
|
647
|
|
|
|
|
|
|
|
|
648
|
|
|
|
|
|
|
An exclusive query to retrieve items that were listed with the specified |
|
649
|
|
|
|
|
|
|
eBay catalog product. You must pass ProductID, Query, ExternalProductID, |
|
650
|
|
|
|
|
|
|
or CategoryID in the request. If you use ProductID, do not use Query, |
|
651
|
|
|
|
|
|
|
ExternalProductID, or CategoryID. |
|
652
|
|
|
|
|
|
|
|
|
653
|
|
|
|
|
|
|
As of mid-2008, some sites (such as eBay US, Germany, Austria, and Switzerland) are |
|
654
|
|
|
|
|
|
|
updating, replacing, deleting, or merging some products (as a result of migrating from one |
|
655
|
|
|
|
|
|
|
catalog data provider to another). |
|
656
|
|
|
|
|
|
|
If you specify one of these products, the call may return a warning, |
|
657
|
|
|
|
|
|
|
or it may return an error if the product has been deleted. |
|
658
|
|
|
|
|
|
|
|
|
659
|
|
|
|
|
|
|
SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=SearchingByProductID |
|
660
|
|
|
|
|
|
|
Title: Searching for Listings by ProductID |
|
661
|
|
|
|
|
|
|
|
|
662
|
|
|
|
|
|
|
RequiredInput: Conditionally |
|
663
|
|
|
|
|
|
|
# Argument: 'xs:string' |
|
664
|
|
|
|
|
|
|
|
|
665
|
|
|
|
|
|
|
=cut |
|
666
|
|
|
|
|
|
|
|
|
667
|
|
|
|
|
|
|
sub setProductID { |
|
668
|
|
|
|
|
|
|
my $self = shift; |
|
669
|
|
|
|
|
|
|
my $sProductID = shift; |
|
670
|
|
|
|
|
|
|
$self->getRequestDataType()->setProductID($sProductID); |
|
671
|
|
|
|
|
|
|
} |
|
672
|
|
|
|
|
|
|
|
|
673
|
|
|
|
|
|
|
=head2 setProximitySearch() |
|
674
|
|
|
|
|
|
|
|
|
675
|
|
|
|
|
|
|
Limits the result set to just those items whose location is within a |
|
676
|
|
|
|
|
|
|
specified distance of a postal code. The ProximitySearchType includes |
|
677
|
|
|
|
|
|
|
a maximum distance and a postal code. |
|
678
|
|
|
|
|
|
|
|
|
679
|
|
|
|
|
|
|
RequiredInput: No |
|
680
|
|
|
|
|
|
|
# Argument: 'ns:ProximitySearchType' |
|
681
|
|
|
|
|
|
|
|
|
682
|
|
|
|
|
|
|
=cut |
|
683
|
|
|
|
|
|
|
|
|
684
|
|
|
|
|
|
|
sub setProximitySearch { |
|
685
|
|
|
|
|
|
|
my $self = shift; |
|
686
|
|
|
|
|
|
|
my $pProximitySearch = shift; |
|
687
|
|
|
|
|
|
|
$self->getRequestDataType()->setProximitySearch($pProximitySearch); |
|
688
|
|
|
|
|
|
|
} |
|
689
|
|
|
|
|
|
|
|
|
690
|
|
|
|
|
|
|
=head2 setQuantity() |
|
691
|
|
|
|
|
|
|
|
|
692
|
|
|
|
|
|
|
Limits the results to listings that offer a certain number of items |
|
693
|
|
|
|
|
|
|
matching the query. If Lot is also specified, then Quantity is the number |
|
694
|
|
|
|
|
|
|
of lots multiplied by the number of objects in each lot. Use |
|
695
|
|
|
|
|
|
|
QuantityOperator to specify that you are seeking listings with quantities |
|
696
|
|
|
|
|
|
|
greater than, equal to, or less than Quantity. |
|
697
|
|
|
|
|
|
|
|
|
698
|
|
|
|
|
|
|
RequiredInput: No |
|
699
|
|
|
|
|
|
|
# Argument: 'xs:int' |
|
700
|
|
|
|
|
|
|
|
|
701
|
|
|
|
|
|
|
=cut |
|
702
|
|
|
|
|
|
|
|
|
703
|
|
|
|
|
|
|
sub setQuantity { |
|
704
|
|
|
|
|
|
|
my $self = shift; |
|
705
|
|
|
|
|
|
|
my $sQuantity = shift; |
|
706
|
|
|
|
|
|
|
$self->getRequestDataType()->setQuantity($sQuantity); |
|
707
|
|
|
|
|
|
|
} |
|
708
|
|
|
|
|
|
|
|
|
709
|
|
|
|
|
|
|
=head2 setQuantityOperator() |
|
710
|
|
|
|
|
|
|
|
|
711
|
|
|
|
|
|
|
Limits the results to listings with quantities greater than, equal to, or |
|
712
|
|
|
|
|
|
|
less than Quantity. Controls the set of listings to return (not the |
|
713
|
|
|
|
|
|
|
details to return for each listing). |
|
714
|
|
|
|
|
|
|
|
|
715
|
|
|
|
|
|
|
RequiredInput: No |
|
716
|
|
|
|
|
|
|
# Argument: 'ns:QuantityOperatorCodeType' |
|
717
|
|
|
|
|
|
|
|
|
718
|
|
|
|
|
|
|
=cut |
|
719
|
|
|
|
|
|
|
|
|
720
|
|
|
|
|
|
|
sub setQuantityOperator { |
|
721
|
|
|
|
|
|
|
my $self = shift; |
|
722
|
|
|
|
|
|
|
my $sQuantityOperator = shift; |
|
723
|
|
|
|
|
|
|
$self->getRequestDataType()->setQuantityOperator($sQuantityOperator); |
|
724
|
|
|
|
|
|
|
} |
|
725
|
|
|
|
|
|
|
|
|
726
|
|
|
|
|
|
|
=head2 setQuery() |
|
727
|
|
|
|
|
|
|
|
|
728
|
|
|
|
|
|
|
A query that specifies a search string. The search string consists of one or more |
|
729
|
|
|
|
|
|
|
keywords to search for in the listing title and/or description. |
|
730
|
|
|
|
|
|
|
The words "and" and "or" are treated like any other word. Only use "and", |
|
731
|
|
|
|
|
|
|
"or", or "the" if you are searching for listings containing these words. |
|
732
|
|
|
|
|
|
|
You can use AND or OR logic by including certain modifiers. |
|
733
|
|
|
|
|
|
|
Wildcards (e.g., *) are also supported. Be careful when using spaces before |
|
734
|
|
|
|
|
|
|
or after modifiers and wildcards (+, -, or *). See the |
|
735
|
|
|
|
|
|
|
eBay Web Services Guide for a list of valid modifiers and examples. |
|
736
|
|
|
|
|
|
|
Query is not applicable in combination with ExternalProductID or ProductID. |
|
737
|
|
|
|
|
|
|
|
|
738
|
|
|
|
|
|
|
SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=SearchingByKeywords |
|
739
|
|
|
|
|
|
|
Title: Searching by Keywords |
|
740
|
|
|
|
|
|
|
MaxLength: 350 (characters) |
|
741
|
|
|
|
|
|
|
|
|
742
|
|
|
|
|
|
|
RequiredInput: Conditionally |
|
743
|
|
|
|
|
|
|
# Argument: 'xs:string' |
|
744
|
|
|
|
|
|
|
|
|
745
|
|
|
|
|
|
|
=cut |
|
746
|
|
|
|
|
|
|
|
|
747
|
|
|
|
|
|
|
sub setQuery { |
|
748
|
|
|
|
|
|
|
my $self = shift; |
|
749
|
|
|
|
|
|
|
my $sQuery = shift; |
|
750
|
|
|
|
|
|
|
$self->getRequestDataType()->setQuery($sQuery); |
|
751
|
|
|
|
|
|
|
} |
|
752
|
|
|
|
|
|
|
|
|
753
|
|
|
|
|
|
|
=head2 setSearchFlags() |
|
754
|
|
|
|
|
|
|
|
|
755
|
|
|
|
|
|
|
Secondary search criterion that checks item descriptions for keywords that |
|
756
|
|
|
|
|
|
|
match the query, limits the search results to only charity items, limits |
|
757
|
|
|
|
|
|
|
the result set to those items with PayPal as a payment method, and/or |
|
758
|
|
|
|
|
|
|
provides other criteria to refine the search. |
|
759
|
|
|
|
|
|
|
|
|
760
|
|
|
|
|
|
|
RequiredInput: No |
|
761
|
|
|
|
|
|
|
# Argument: reference to an array |
|
762
|
|
|
|
|
|
|
of 'ns:SearchFlagsCodeType' |
|
763
|
|
|
|
|
|
|
|
|
764
|
|
|
|
|
|
|
=cut |
|
765
|
|
|
|
|
|
|
|
|
766
|
|
|
|
|
|
|
sub setSearchFlags { |
|
767
|
|
|
|
|
|
|
my $self = shift; |
|
768
|
|
|
|
|
|
|
my $sSearchFlags = shift; |
|
769
|
|
|
|
|
|
|
$self->getRequestDataType()->setSearchFlags($sSearchFlags); |
|
770
|
|
|
|
|
|
|
} |
|
771
|
|
|
|
|
|
|
|
|
772
|
|
|
|
|
|
|
=head2 setSearchLocationFilter() |
|
773
|
|
|
|
|
|
|
|
|
774
|
|
|
|
|
|
|
Limits the result set to just those items that meet location criteria: |
|
775
|
|
|
|
|
|
|
listed in a specified eBay site, location where the seller has the item, |
|
776
|
|
|
|
|
|
|
location from which the user is searching, and/or items listed with a |
|
777
|
|
|
|
|
|
|
specified currency. You cannot use GetSearchResults to search eBay Express. |
|
778
|
|
|
|
|
|
|
|
|
779
|
|
|
|
|
|
|
RequiredInput: No |
|
780
|
|
|
|
|
|
|
# Argument: 'ns:SearchLocationFilterType' |
|
781
|
|
|
|
|
|
|
|
|
782
|
|
|
|
|
|
|
=cut |
|
783
|
|
|
|
|
|
|
|
|
784
|
|
|
|
|
|
|
sub setSearchLocationFilter { |
|
785
|
|
|
|
|
|
|
my $self = shift; |
|
786
|
|
|
|
|
|
|
my $pSearchLocationFilter = shift; |
|
787
|
|
|
|
|
|
|
$self->getRequestDataType()->setSearchLocationFilter($pSearchLocationFilter); |
|
788
|
|
|
|
|
|
|
} |
|
789
|
|
|
|
|
|
|
|
|
790
|
|
|
|
|
|
|
=head2 setSearchRequest() |
|
791
|
|
|
|
|
|
|
|
|
792
|
|
|
|
|
|
|
A query consisting of a set of attributes (Item Specifics). Use this kind |
|
793
|
|
|
|
|
|
|
of query to search against the Item Specifics in listings (e.g., to search |
|
794
|
|
|
|
|
|
|
for a particular shoe size). If the query includes multiple attributes, |
|
795
|
|
|
|
|
|
|
the search engine will apply "AND" logic to the query and narrow the |
|
796
|
|
|
|
|
|
|
results. Use GetProductFinder to determine the list of valid attributes |
|
797
|
|
|
|
|
|
|
and how many are permitted for the specified characteristic set. Retrieves |
|
798
|
|
|
|
|
|
|
items along with any buying guide details that are associated with the |
|
799
|
|
|
|
|
|
|
specified product finder. Applicable in combination with the Query |
|
800
|
|
|
|
|
|
|
argument. Cannot be used in combination with ProductID or |
|
801
|
|
|
|
|
|
|
ExternalProductID. |
|
802
|
|
|
|
|
|
|
|
|
803
|
|
|
|
|
|
|
If you are searching for tickets, see TicketFinder instead. |
|
804
|
|
|
|
|
|
|
|
|
805
|
|
|
|
|
|
|
SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=SearchingByItemSpecifics |
|
806
|
|
|
|
|
|
|
Title: Searching by Item Specifics (Buy-Side Product Finder) |
|
807
|
|
|
|
|
|
|
, URL: CallName.html#Request.TicketFinder |
|
808
|
|
|
|
|
|
|
Title: (GetSearchResults) TicketFinder |
|
809
|
|
|
|
|
|
|
|
|
810
|
|
|
|
|
|
|
|
|
811
|
|
|
|
|
|
|
RequiredInput: No |
|
812
|
|
|
|
|
|
|
# Argument: 'ns:SearchRequestType' |
|
813
|
|
|
|
|
|
|
|
|
814
|
|
|
|
|
|
|
=cut |
|
815
|
|
|
|
|
|
|
|
|
816
|
|
|
|
|
|
|
sub setSearchRequest { |
|
817
|
|
|
|
|
|
|
my $self = shift; |
|
818
|
|
|
|
|
|
|
my $pSearchRequest = shift; |
|
819
|
|
|
|
|
|
|
$self->getRequestDataType()->setSearchRequest($pSearchRequest); |
|
820
|
|
|
|
|
|
|
} |
|
821
|
|
|
|
|
|
|
|
|
822
|
|
|
|
|
|
|
=head2 setSearchType() |
|
823
|
|
|
|
|
|
|
|
|
824
|
|
|
|
|
|
|
Limits the listings in the result set based on whether they are in the |
|
825
|
|
|
|
|
|
|
Gallery. The choices are items in the Gallery or Gallery and non-Gallery |
|
826
|
|
|
|
|
|
|
items. |
|
827
|
|
|
|
|
|
|
|
|
828
|
|
|
|
|
|
|
RequiredInput: No |
|
829
|
|
|
|
|
|
|
# Argument: 'ns:SearchTypeCodeType' |
|
830
|
|
|
|
|
|
|
|
|
831
|
|
|
|
|
|
|
=cut |
|
832
|
|
|
|
|
|
|
|
|
833
|
|
|
|
|
|
|
sub setSearchType { |
|
834
|
|
|
|
|
|
|
my $self = shift; |
|
835
|
|
|
|
|
|
|
my $sSearchType = shift; |
|
836
|
|
|
|
|
|
|
$self->getRequestDataType()->setSearchType($sSearchType); |
|
837
|
|
|
|
|
|
|
} |
|
838
|
|
|
|
|
|
|
|
|
839
|
|
|
|
|
|
|
=head2 setSellerBusinessType() |
|
840
|
|
|
|
|
|
|
|
|
841
|
|
|
|
|
|
|
Limits the results to those of a particular seller business type such as |
|
842
|
|
|
|
|
|
|
commercial or private. |
|
843
|
|
|
|
|
|
|
|
|
844
|
|
|
|
|
|
|
RequiredInput: No |
|
845
|
|
|
|
|
|
|
# Argument: 'ns:SellerBusinessCodeType' |
|
846
|
|
|
|
|
|
|
|
|
847
|
|
|
|
|
|
|
=cut |
|
848
|
|
|
|
|
|
|
|
|
849
|
|
|
|
|
|
|
sub setSellerBusinessType { |
|
850
|
|
|
|
|
|
|
my $self = shift; |
|
851
|
|
|
|
|
|
|
my $sSellerBusinessType = shift; |
|
852
|
|
|
|
|
|
|
$self->getRequestDataType()->setSellerBusinessType($sSellerBusinessType); |
|
853
|
|
|
|
|
|
|
} |
|
854
|
|
|
|
|
|
|
|
|
855
|
|
|
|
|
|
|
=head2 setStoreSearchFilter() |
|
856
|
|
|
|
|
|
|
|
|
857
|
|
|
|
|
|
|
Limits the result set to just those items that meet criteria related to |
|
858
|
|
|
|
|
|
|
eBay Stores sellers and eBay Stores. Use this to retrieve items listed in |
|
859
|
|
|
|
|
|
|
a particular seller's eBay Store or in all store sellers' eBay Stores. |
|
860
|
|
|
|
|
|
|
This filter always causes item description text to be searched with the |
|
861
|
|
|
|
|
|
|
string specified in the Query field. That is, StoreSearchFilter |
|
862
|
|
|
|
|
|
|
forces the type of search that would have occurred if you had specified |
|
863
|
|
|
|
|
|
|
SearchInDescription in the SearchFlags field. |
|
864
|
|
|
|
|
|
|
|
|
865
|
|
|
|
|
|
|
RequiredInput: No |
|
866
|
|
|
|
|
|
|
# Argument: 'ns:SearchStoreFilterType' |
|
867
|
|
|
|
|
|
|
|
|
868
|
|
|
|
|
|
|
=cut |
|
869
|
|
|
|
|
|
|
|
|
870
|
|
|
|
|
|
|
sub setStoreSearchFilter { |
|
871
|
|
|
|
|
|
|
my $self = shift; |
|
872
|
|
|
|
|
|
|
my $pStoreSearchFilter = shift; |
|
873
|
|
|
|
|
|
|
$self->getRequestDataType()->setStoreSearchFilter($pStoreSearchFilter); |
|
874
|
|
|
|
|
|
|
} |
|
875
|
|
|
|
|
|
|
|
|
876
|
|
|
|
|
|
|
=head2 setTicketFinder() |
|
877
|
|
|
|
|
|
|
|
|
878
|
|
|
|
|
|
|
Searches for event ticket listings only. If specified, this cannot be empty. |
|
879
|
|
|
|
|
|
|
For example, to search for all tickets (with no event, date, city, or quantity constraints), |
|
880
|
|
|
|
|
|
|
specify EventType with a value of Any. |
|
881
|
|
|
|
|
|
|
If specified, Query is optional. Query is useful when the user wants to search |
|
882
|
|
|
|
|
|
|
for a particular event name (like "eric clapton") or a venue that might be |
|
883
|
|
|
|
|
|
|
included in the listing title. |
|
884
|
|
|
|
|
|
|
If TicketFinder and SearchRequest are both specified in the same request, |
|
885
|
|
|
|
|
|
|
SearchRequest is ignored. |
|
886
|
|
|
|
|
|
|
|
|
887
|
|
|
|
|
|
|
SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=TicketFinder |
|
888
|
|
|
|
|
|
|
Title: Performing a Simple Ticket Finder Search |
|
889
|
|
|
|
|
|
|
|
|
890
|
|
|
|
|
|
|
RequiredInput: No |
|
891
|
|
|
|
|
|
|
# Argument: 'ns:TicketDetailsType' |
|
892
|
|
|
|
|
|
|
|
|
893
|
|
|
|
|
|
|
=cut |
|
894
|
|
|
|
|
|
|
|
|
895
|
|
|
|
|
|
|
sub setTicketFinder { |
|
896
|
|
|
|
|
|
|
my $self = shift; |
|
897
|
|
|
|
|
|
|
my $pTicketFinder = shift; |
|
898
|
|
|
|
|
|
|
$self->getRequestDataType()->setTicketFinder($pTicketFinder); |
|
899
|
|
|
|
|
|
|
} |
|
900
|
|
|
|
|
|
|
|
|
901
|
|
|
|
|
|
|
=head2 setTotalOnly() |
|
902
|
|
|
|
|
|
|
|
|
903
|
|
|
|
|
|
|
Retrieves the total quantity of matching items, without returning the item |
|
904
|
|
|
|
|
|
|
data. See PaginationResult.TotalNumberOfEntries in the response. If |
|
905
|
|
|
|
|
|
|
TotalOnly and Categories.CategoriesOnly are both specified in the request |
|
906
|
|
|
|
|
|
|
and their values are inconsistent with each other, TotalOnly overrides |
|
907
|
|
|
|
|
|
|
Categories.CategoriesOnly. That is, if TotalOnly is true and |
|
908
|
|
|
|
|
|
|
Categories.CategoriesOnly is false, the results include matching |
|
909
|
|
|
|
|
|
|
categories but no item data or buying guides. If TotalOnly is false and |
|
910
|
|
|
|
|
|
|
Categories.CategoriesOnly is true, the results include matching |
|
911
|
|
|
|
|
|
|
categories, item data, and buying guides. If TotalOnly is not specified, |
|
912
|
|
|
|
|
|
|
it has no logical effect. |
|
913
|
|
|
|
|
|
|
|
|
914
|
|
|
|
|
|
|
RequiredInput: No |
|
915
|
|
|
|
|
|
|
# Argument: 'xs:boolean' |
|
916
|
|
|
|
|
|
|
|
|
917
|
|
|
|
|
|
|
=cut |
|
918
|
|
|
|
|
|
|
|
|
919
|
|
|
|
|
|
|
sub setTotalOnly { |
|
920
|
|
|
|
|
|
|
my $self = shift; |
|
921
|
|
|
|
|
|
|
my $sTotalOnly = shift; |
|
922
|
|
|
|
|
|
|
$self->getRequestDataType()->setTotalOnly($sTotalOnly); |
|
923
|
|
|
|
|
|
|
} |
|
924
|
|
|
|
|
|
|
|
|
925
|
|
|
|
|
|
|
=head2 setUserIdFilter() |
|
926
|
|
|
|
|
|
|
|
|
927
|
|
|
|
|
|
|
Limits the the result set to just those items listed by one or more |
|
928
|
|
|
|
|
|
|
specified sellers or those items not listed by the one or more specified |
|
929
|
|
|
|
|
|
|
sellers. |
|
930
|
|
|
|
|
|
|
|
|
931
|
|
|
|
|
|
|
RequiredInput: No |
|
932
|
|
|
|
|
|
|
# Argument: 'ns:UserIdFilterType' |
|
933
|
|
|
|
|
|
|
|
|
934
|
|
|
|
|
|
|
=cut |
|
935
|
|
|
|
|
|
|
|
|
936
|
|
|
|
|
|
|
sub setUserIdFilter { |
|
937
|
|
|
|
|
|
|
my $self = shift; |
|
938
|
|
|
|
|
|
|
my $pUserIdFilter = shift; |
|
939
|
|
|
|
|
|
|
$self->getRequestDataType()->setUserIdFilter($pUserIdFilter); |
|
940
|
|
|
|
|
|
|
} |
|
941
|
|
|
|
|
|
|
|
|
942
|
|
|
|
|
|
|
|
|
943
|
|
|
|
|
|
|
|
|
944
|
|
|
|
|
|
|
# |
|
945
|
|
|
|
|
|
|
# output properties |
|
946
|
|
|
|
|
|
|
# |
|
947
|
|
|
|
|
|
|
|
|
948
|
|
|
|
|
|
|
=head2 getAllCategoriesExpansionArray() |
|
949
|
|
|
|
|
|
|
|
|
950
|
|
|
|
|
|
|
Can be returned if the request specifies that ExpandSearch is true. |
|
951
|
|
|
|
|
|
|
Provides additional search results when a small result set would have |
|
952
|
|
|
|
|
|
|
been returned with the original search. For example, on the US site (site |
|
953
|
|
|
|
|
|
|
ID 0), if a search would normally result in fewer than 10 items, and |
|
954
|
|
|
|
|
|
|
ExpandSearch is true, the search results are expanded to include (if |
|
955
|
|
|
|
|
|
|
matching the query) the AllCategoriesExpansionArray container for items, |
|
956
|
|
|
|
|
|
|
as well as other containers. The AllCategoriesExpansionArray container |
|
957
|
|
|
|
|
|
|
contains items available if category filters are removed. |
|
958
|
|
|
|
|
|
|
|
|
959
|
|
|
|
|
|
|
Returned: Conditionally |
|
960
|
|
|
|
|
|
|
Details: DetailLevel: ItemReturnCategories, ItemReturnAttributes, ReturnAll, none |
|
961
|
|
|
|
|
|
|
# Returns: 'ns:ExpansionArrayType' |
|
962
|
|
|
|
|
|
|
|
|
963
|
|
|
|
|
|
|
=cut |
|
964
|
|
|
|
|
|
|
|
|
965
|
|
|
|
|
|
|
sub getAllCategoriesExpansionArray { |
|
966
|
|
|
|
|
|
|
my $self = shift; |
|
967
|
|
|
|
|
|
|
return $self->getResponseDataType()->getAllCategoriesExpansionArray(); |
|
968
|
|
|
|
|
|
|
} |
|
969
|
|
|
|
|
|
|
|
|
970
|
|
|
|
|
|
|
=head2 getBuyingGuideDetails() |
|
971
|
|
|
|
|
|
|
|
|
972
|
|
|
|
|
|
|
Contains URLs and other information about relevant buying guides (if |
|
973
|
|
|
|
|
|
|
any), as well as the site's buying guide hub. Unavailable in the Sandbox |
|
974
|
|
|
|
|
|
|
environment. Buying guides are useful to buyers who do not have a |
|
975
|
|
|
|
|
|
|
specific product in mind. For example, a digital camera buying guide |
|
976
|
|
|
|
|
|
|
could help a buyer determine what kind of digital camera is right for |
|
977
|
|
|
|
|
|
|
them. Only returned for product finder searches (using |
|
978
|
|
|
|
|
|
|
SearchRequest.SearchAttributes) and for searches that retrieve matching |
|
979
|
|
|
|
|
|
|
categories along with item data (using Categories.CategoriesOnly=false). |
|
980
|
|
|
|
|
|
|
|
|
981
|
|
|
|
|
|
|
Returned: Conditionally |
|
982
|
|
|
|
|
|
|
Details: DetailLevel: ItemReturnCategories, ItemReturnAttributes, ReturnAll, none |
|
983
|
|
|
|
|
|
|
# Returns: 'ns:BuyingGuideDetailsType' |
|
984
|
|
|
|
|
|
|
|
|
985
|
|
|
|
|
|
|
=cut |
|
986
|
|
|
|
|
|
|
|
|
987
|
|
|
|
|
|
|
sub getBuyingGuideDetails { |
|
988
|
|
|
|
|
|
|
my $self = shift; |
|
989
|
|
|
|
|
|
|
return $self->getResponseDataType()->getBuyingGuideDetails(); |
|
990
|
|
|
|
|
|
|
} |
|
991
|
|
|
|
|
|
|
|
|
992
|
|
|
|
|
|
|
=head2 getCategoryArray() |
|
993
|
|
|
|
|
|
|
|
|
994
|
|
|
|
|
|
|
Shows the distribution of items across each category. |
|
995
|
|
|
|
|
|
|
Consists of statistical information about |
|
996
|
|
|
|
|
|
|
categories that contain items that match |
|
997
|
|
|
|
|
|
|
the query, if any. Returns empty if no matches are found or when the |
|
998
|
|
|
|
|
|
|
Categories filter was not passed in the request. (For categories |
|
999
|
|
|
|
|
|
|
associated with specific items, see items returned in each search |
|
1000
|
|
|
|
|
|
|
result.) |
|
1001
|
|
|
|
|
|
|
You must use fields within the Categories input container |
|
1002
|
|
|
|
|
|
|
if you want the CategoryArray response container to be returned. |
|
1003
|
|
|
|
|
|
|
|
|
1004
|
|
|
|
|
|
|
Returned: Conditionally |
|
1005
|
|
|
|
|
|
|
Details: DetailLevel: ItemReturnCategories, ItemReturnAttributes, ReturnAll, none |
|
1006
|
|
|
|
|
|
|
GranularityLevel: Coarse |
|
1007
|
|
|
|
|
|
|
|
|
1008
|
|
|
|
|
|
|
# Returns: 'ns:CategoryArrayType' |
|
1009
|
|
|
|
|
|
|
|
|
1010
|
|
|
|
|
|
|
=cut |
|
1011
|
|
|
|
|
|
|
|
|
1012
|
|
|
|
|
|
|
sub getCategoryArray { |
|
1013
|
|
|
|
|
|
|
my $self = shift; |
|
1014
|
|
|
|
|
|
|
return $self->getResponseDataType()->getCategoryArray(); |
|
1015
|
|
|
|
|
|
|
} |
|
1016
|
|
|
|
|
|
|
|
|
1017
|
|
|
|
|
|
|
=head2 getFilterRemovedExpansionArray() |
|
1018
|
|
|
|
|
|
|
|
|
1019
|
|
|
|
|
|
|
Can be returned if the request specifies that ExpandSearch is true. |
|
1020
|
|
|
|
|
|
|
Provides additional search results when a small result set would have |
|
1021
|
|
|
|
|
|
|
been returned with the original search. For example, on the US site (site |
|
1022
|
|
|
|
|
|
|
ID 0), if a search would normally result in fewer than 10 items, and |
|
1023
|
|
|
|
|
|
|
ExpandSearch is true, the search results are expanded to include (if |
|
1024
|
|
|
|
|
|
|
matching the query) the FilterRemovedExpansionArray container for items, |
|
1025
|
|
|
|
|
|
|
as well as other containers. The FilterRemovedExpansionArray container |
|
1026
|
|
|
|
|
|
|
contains items that would be returned if filters such as PriceRangeFilter |
|
1027
|
|
|
|
|
|
|
are removed. |
|
1028
|
|
|
|
|
|
|
|
|
1029
|
|
|
|
|
|
|
Returned: Conditionally |
|
1030
|
|
|
|
|
|
|
Details: DetailLevel: ItemReturnCategories, ItemReturnAttributes, ReturnAll, none |
|
1031
|
|
|
|
|
|
|
# Returns: 'ns:ExpansionArrayType' |
|
1032
|
|
|
|
|
|
|
|
|
1033
|
|
|
|
|
|
|
=cut |
|
1034
|
|
|
|
|
|
|
|
|
1035
|
|
|
|
|
|
|
sub getFilterRemovedExpansionArray { |
|
1036
|
|
|
|
|
|
|
my $self = shift; |
|
1037
|
|
|
|
|
|
|
return $self->getResponseDataType()->getFilterRemovedExpansionArray(); |
|
1038
|
|
|
|
|
|
|
} |
|
1039
|
|
|
|
|
|
|
|
|
1040
|
|
|
|
|
|
|
=head2 isHasMoreItems() |
|
1041
|
|
|
|
|
|
|
|
|
1042
|
|
|
|
|
|
|
Indicates whether there are more items, not yet returned, that match the |
|
1043
|
|
|
|
|
|
|
search criteria. |
|
1044
|
|
|
|
|
|
|
|
|
1045
|
|
|
|
|
|
|
Returned: Always |
|
1046
|
|
|
|
|
|
|
Details: DetailLevel: ItemReturnCategories, ItemReturnAttributes, ReturnAll, none |
|
1047
|
|
|
|
|
|
|
GranularityLevel: Coarse |
|
1048
|
|
|
|
|
|
|
|
|
1049
|
|
|
|
|
|
|
# Returns: 'xs:boolean' |
|
1050
|
|
|
|
|
|
|
|
|
1051
|
|
|
|
|
|
|
=cut |
|
1052
|
|
|
|
|
|
|
|
|
1053
|
|
|
|
|
|
|
sub isHasMoreItems { |
|
1054
|
|
|
|
|
|
|
my $self = shift; |
|
1055
|
|
|
|
|
|
|
return $self->getResponseDataType()->isHasMoreItems(); |
|
1056
|
|
|
|
|
|
|
} |
|
1057
|
|
|
|
|
|
|
|
|
1058
|
|
|
|
|
|
|
=head2 getInternationalExpansionArray() |
|
1059
|
|
|
|
|
|
|
|
|
1060
|
|
|
|
|
|
|
Can be returned if the request specifies that ExpandSearch is true. |
|
1061
|
|
|
|
|
|
|
Provides additional search results when a small result set would have |
|
1062
|
|
|
|
|
|
|
been returned with the original search. For example, on the US site (site |
|
1063
|
|
|
|
|
|
|
ID 0), if a search would normally result in fewer than 10 items, and |
|
1064
|
|
|
|
|
|
|
ExpandSearch is true, the search results are expanded to include (if |
|
1065
|
|
|
|
|
|
|
matching the query) the InternationalExpansionArray container for items, |
|
1066
|
|
|
|
|
|
|
as well as other containers. The InternationalExpansionArray container |
|
1067
|
|
|
|
|
|
|
contains items available from international sellers. |
|
1068
|
|
|
|
|
|
|
|
|
1069
|
|
|
|
|
|
|
Returned: Conditionally |
|
1070
|
|
|
|
|
|
|
Details: DetailLevel: ItemReturnCategories, ItemReturnAttributes, ReturnAll, none |
|
1071
|
|
|
|
|
|
|
# Returns: 'ns:ExpansionArrayType' |
|
1072
|
|
|
|
|
|
|
|
|
1073
|
|
|
|
|
|
|
=cut |
|
1074
|
|
|
|
|
|
|
|
|
1075
|
|
|
|
|
|
|
sub getInternationalExpansionArray { |
|
1076
|
|
|
|
|
|
|
my $self = shift; |
|
1077
|
|
|
|
|
|
|
return $self->getResponseDataType()->getInternationalExpansionArray(); |
|
1078
|
|
|
|
|
|
|
} |
|
1079
|
|
|
|
|
|
|
|
|
1080
|
|
|
|
|
|
|
=head2 getItemsPerPage() |
|
1081
|
|
|
|
|
|
|
|
|
1082
|
|
|
|
|
|
|
Indicates the maximum number of items that can be returned in a |
|
1083
|
|
|
|
|
|
|
SearchResultItemArray for any given call. |
|
1084
|
|
|
|
|
|
|
|
|
1085
|
|
|
|
|
|
|
Returned: Always |
|
1086
|
|
|
|
|
|
|
Details: DetailLevel: ItemReturnCategories, ItemReturnAttributes, ReturnAll, none |
|
1087
|
|
|
|
|
|
|
GranularityLevel: Coarse |
|
1088
|
|
|
|
|
|
|
|
|
1089
|
|
|
|
|
|
|
# Returns: 'xs:int' |
|
1090
|
|
|
|
|
|
|
|
|
1091
|
|
|
|
|
|
|
=cut |
|
1092
|
|
|
|
|
|
|
|
|
1093
|
|
|
|
|
|
|
sub getItemsPerPage { |
|
1094
|
|
|
|
|
|
|
my $self = shift; |
|
1095
|
|
|
|
|
|
|
return $self->getResponseDataType()->getItemsPerPage(); |
|
1096
|
|
|
|
|
|
|
} |
|
1097
|
|
|
|
|
|
|
|
|
1098
|
|
|
|
|
|
|
=head2 getPageNumber() |
|
1099
|
|
|
|
|
|
|
|
|
1100
|
|
|
|
|
|
|
Indicates the page of data returned by the current call. For instance, |
|
1101
|
|
|
|
|
|
|
for the first set of items can be returned, this field has a value of |
|
1102
|
|
|
|
|
|
|
one. |
|
1103
|
|
|
|
|
|
|
|
|
1104
|
|
|
|
|
|
|
Returned: Always |
|
1105
|
|
|
|
|
|
|
Details: DetailLevel: ItemReturnCategories, ItemReturnAttributes, ReturnAll, none |
|
1106
|
|
|
|
|
|
|
GranularityLevel: Coarse |
|
1107
|
|
|
|
|
|
|
|
|
1108
|
|
|
|
|
|
|
# Returns: 'xs:int' |
|
1109
|
|
|
|
|
|
|
|
|
1110
|
|
|
|
|
|
|
=cut |
|
1111
|
|
|
|
|
|
|
|
|
1112
|
|
|
|
|
|
|
sub getPageNumber { |
|
1113
|
|
|
|
|
|
|
my $self = shift; |
|
1114
|
|
|
|
|
|
|
return $self->getResponseDataType()->getPageNumber(); |
|
1115
|
|
|
|
|
|
|
} |
|
1116
|
|
|
|
|
|
|
|
|
1117
|
|
|
|
|
|
|
=head2 getPaginationResult() |
|
1118
|
|
|
|
|
|
|
|
|
1119
|
|
|
|
|
|
|
Indicates the results of the pagination, including the total number of |
|
1120
|
|
|
|
|
|
|
pages of data that can be returned and the total number of items that can |
|
1121
|
|
|
|
|
|
|
be returned. |
|
1122
|
|
|
|
|
|
|
|
|
1123
|
|
|
|
|
|
|
Returned: Always |
|
1124
|
|
|
|
|
|
|
Details: DetailLevel: ItemReturnCategories, ItemReturnAttributes, ReturnAll, none |
|
1125
|
|
|
|
|
|
|
GranularityLevel: Coarse |
|
1126
|
|
|
|
|
|
|
|
|
1127
|
|
|
|
|
|
|
# Returns: 'ns:PaginationResultType' |
|
1128
|
|
|
|
|
|
|
|
|
1129
|
|
|
|
|
|
|
=cut |
|
1130
|
|
|
|
|
|
|
|
|
1131
|
|
|
|
|
|
|
sub getPaginationResult { |
|
1132
|
|
|
|
|
|
|
my $self = shift; |
|
1133
|
|
|
|
|
|
|
return $self->getResponseDataType()->getPaginationResult(); |
|
1134
|
|
|
|
|
|
|
} |
|
1135
|
|
|
|
|
|
|
|
|
1136
|
|
|
|
|
|
|
=head2 getRelatedSearchKeywordArray() |
|
1137
|
|
|
|
|
|
|
|
|
1138
|
|
|
|
|
|
|
Container for keywords related to the original keywords in the request. |
|
1139
|
|
|
|
|
|
|
Can be returned if the request specified more than zero in the MaxRelatedSearchKeywords field. |
|
1140
|
|
|
|
|
|
|
|
|
1141
|
|
|
|
|
|
|
Returned: Conditionally |
|
1142
|
|
|
|
|
|
|
Details: DetailLevel: ItemReturnCategories, ItemReturnAttributes, ReturnAll, none |
|
1143
|
|
|
|
|
|
|
# Returns: 'ns:RelatedSearchKeywordArrayType' |
|
1144
|
|
|
|
|
|
|
|
|
1145
|
|
|
|
|
|
|
=cut |
|
1146
|
|
|
|
|
|
|
|
|
1147
|
|
|
|
|
|
|
sub getRelatedSearchKeywordArray { |
|
1148
|
|
|
|
|
|
|
my $self = shift; |
|
1149
|
|
|
|
|
|
|
return $self->getResponseDataType()->getRelatedSearchKeywordArray(); |
|
1150
|
|
|
|
|
|
|
} |
|
1151
|
|
|
|
|
|
|
|
|
1152
|
|
|
|
|
|
|
=head2 getSearchResultItemArray() |
|
1153
|
|
|
|
|
|
|
|
|
1154
|
|
|
|
|
|
|
Contains the returned item listings, if any. The data for each listing is |
|
1155
|
|
|
|
|
|
|
returned in an ItemType object. |
|
1156
|
|
|
|
|
|
|
|
|
1157
|
|
|
|
|
|
|
Returned: Conditionally |
|
1158
|
|
|
|
|
|
|
Details: DetailLevel: ItemReturnCategories, ItemReturnAttributes, ReturnAll, none |
|
1159
|
|
|
|
|
|
|
GranularityLevel: Coarse |
|
1160
|
|
|
|
|
|
|
|
|
1161
|
|
|
|
|
|
|
# Returns: 'ns:SearchResultItemArrayType' |
|
1162
|
|
|
|
|
|
|
|
|
1163
|
|
|
|
|
|
|
=cut |
|
1164
|
|
|
|
|
|
|
|
|
1165
|
|
|
|
|
|
|
sub getSearchResultItemArray { |
|
1166
|
|
|
|
|
|
|
my $self = shift; |
|
1167
|
|
|
|
|
|
|
return $self->getResponseDataType()->getSearchResultItemArray(); |
|
1168
|
|
|
|
|
|
|
} |
|
1169
|
|
|
|
|
|
|
|
|
1170
|
|
|
|
|
|
|
=head2 getSpellingSuggestion() |
|
1171
|
|
|
|
|
|
|
|
|
1172
|
|
|
|
|
|
|
Suggestion for a different spelling of the search term or terms, along |
|
1173
|
|
|
|
|
|
|
with the number of matching items that would have been returned if the |
|
1174
|
|
|
|
|
|
|
suggestions had been used. The suggestions are given in Text tags and the |
|
1175
|
|
|
|
|
|
|
suggestion for the first word is given before the suggestion for |
|
1176
|
|
|
|
|
|
|
subsequent words. Suggestions are based on correctly-spelled terms in |
|
1177
|
|
|
|
|
|
|
items, so suggestions vary over time and depend on whether a word or word |
|
1178
|
|
|
|
|
|
|
combination is in one or more items. |
|
1179
|
|
|
|
|
|
|
|
|
1180
|
|
|
|
|
|
|
Returned: Conditionally |
|
1181
|
|
|
|
|
|
|
Details: DetailLevel: ItemReturnCategories, ItemReturnAttributes, ReturnAll, none |
|
1182
|
|
|
|
|
|
|
# Returns: 'ns:SpellingSuggestionType' |
|
1183
|
|
|
|
|
|
|
|
|
1184
|
|
|
|
|
|
|
=cut |
|
1185
|
|
|
|
|
|
|
|
|
1186
|
|
|
|
|
|
|
sub getSpellingSuggestion { |
|
1187
|
|
|
|
|
|
|
my $self = shift; |
|
1188
|
|
|
|
|
|
|
return $self->getResponseDataType()->getSpellingSuggestion(); |
|
1189
|
|
|
|
|
|
|
} |
|
1190
|
|
|
|
|
|
|
|
|
1191
|
|
|
|
|
|
|
=head2 getStoreExpansionArray() |
|
1192
|
|
|
|
|
|
|
|
|
1193
|
|
|
|
|
|
|
Contains items listed in the Store Inventory Format, |
|
1194
|
|
|
|
|
|
|
if the request specifies that ExpandSearch is true. |
|
1195
|
|
|
|
|
|
|
|
|
1196
|
|
|
|
|
|
|
Returned: Conditionally |
|
1197
|
|
|
|
|
|
|
Details: DetailLevel: ItemReturnCategories, ItemReturnAttributes, ReturnAll, none |
|
1198
|
|
|
|
|
|
|
# Returns: 'ns:ExpansionArrayType' |
|
1199
|
|
|
|
|
|
|
|
|
1200
|
|
|
|
|
|
|
=cut |
|
1201
|
|
|
|
|
|
|
|
|
1202
|
|
|
|
|
|
|
sub getStoreExpansionArray { |
|
1203
|
|
|
|
|
|
|
my $self = shift; |
|
1204
|
|
|
|
|
|
|
return $self->getResponseDataType()->getStoreExpansionArray(); |
|
1205
|
|
|
|
|
|
|
} |
|
1206
|
|
|
|
|
|
|
|
|
1207
|
|
|
|
|
|
|
|
|
1208
|
|
|
|
|
|
|
|
|
1209
|
|
|
|
|
|
|
|
|
1210
|
|
|
|
|
|
|
|
|
1211
|
|
|
|
|
|
|
1; |