| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
|
2
|
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package eBay::API::XML::Call::GetProductFinder; |
|
4
|
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
2423
|
use strict; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
33
|
|
|
6
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
30
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
########################################################################## |
|
9
|
|
|
|
|
|
|
# |
|
10
|
|
|
|
|
|
|
# Module: ............... eBay/API/XML |
|
11
|
|
|
|
|
|
|
# File: ................. GetProductFinder.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::GetProductFinder |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=cut |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 INHERITANCE |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
eBay::API::XML::Call::GetProductFinder 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::GetProductFinder::GetProductFinderRequestType; |
|
41
|
|
|
|
|
|
|
use eBay::API::XML::Call::GetProductFinder::GetProductFinderResponseType; |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 Subroutines: |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=cut |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
sub getApiCallName { |
|
49
|
|
|
|
|
|
|
return 'GetProductFinder'; |
|
50
|
|
|
|
|
|
|
} |
|
51
|
|
|
|
|
|
|
sub getRequestDataTypeFullPackage { |
|
52
|
|
|
|
|
|
|
return 'eBay::API::XML::Call::GetProductFinder::GetProductFinderRequestType'; |
|
53
|
|
|
|
|
|
|
} |
|
54
|
|
|
|
|
|
|
sub getResponseDataTypeFullPackage { |
|
55
|
|
|
|
|
|
|
return 'eBay::API::XML::Call::GetProductFinder::GetProductFinderResponseType'; |
|
56
|
|
|
|
|
|
|
} |
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
# |
|
59
|
|
|
|
|
|
|
# input properties |
|
60
|
|
|
|
|
|
|
# |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head2 setAttributeSystemVersion() |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
A version of the product finder attribute definitions for the site. |
|
65
|
|
|
|
|
|
|
Typically, an application passes the version value that was returned the last |
|
66
|
|
|
|
|
|
|
time the application executed this call. |
|
67
|
|
|
|
|
|
|
Filter that causes the call to return only the Product Finders |
|
68
|
|
|
|
|
|
|
for which the attribute meta-data has changed since the specified version. |
|
69
|
|
|
|
|
|
|
The latest version value is not necessarily greater than the previous |
|
70
|
|
|
|
|
|
|
value that was returned. Therefore, when comparing versions, only |
|
71
|
|
|
|
|
|
|
compare whether the value has changed. |
|
72
|
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
RequiredInput: No |
|
74
|
|
|
|
|
|
|
# Argument: 'xs:string' |
|
75
|
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=cut |
|
77
|
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
sub setAttributeSystemVersion { |
|
79
|
|
|
|
|
|
|
my $self = shift; |
|
80
|
|
|
|
|
|
|
my $sAttributeSystemVersion = shift; |
|
81
|
|
|
|
|
|
|
$self->getRequestDataType()->setAttributeSystemVersion($sAttributeSystemVersion); |
|
82
|
|
|
|
|
|
|
} |
|
83
|
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=head2 setProductFinderID() |
|
85
|
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
A number that uniquely identifies a product finder. |
|
87
|
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
For sell-side searches, you can determine the |
|
89
|
|
|
|
|
|
|
product finder IDs for a category by calling GetCategory2CS. |
|
90
|
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
For buy-side searches, you can't use GetCategory2CS to reliably determine |
|
92
|
|
|
|
|
|
|
the product finder IDs for an eBay category. |
|
93
|
|
|
|
|
|
|
GetProductFinder may work for some attributes. Alternatively, you can |
|
94
|
|
|
|
|
|
|
use the pfid parameter from the URL of the Product Finder search page |
|
95
|
|
|
|
|
|
|
on the site you're interested in. |
|
96
|
|
|
|
|
|
|
See the Knowledge Base article referenced below for more details. |
|
97
|
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
Multiple categories can be mapped to the same product finder ID. |
|
99
|
|
|
|
|
|
|
You can pass zero or multiple IDs in the request. When IDs are specified, the call |
|
100
|
|
|
|
|
|
|
only returns product finder meta-data for the specified product finders. |
|
101
|
|
|
|
|
|
|
When no IDs are specified, the call returns all the current product finder |
|
102
|
|
|
|
|
|
|
meta-data available on the site. |
|
103
|
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
SeeLink: URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=AttrGPF |
|
105
|
|
|
|
|
|
|
Title: Retrieving Product Finder Meta-Data |
|
106
|
|
|
|
|
|
|
, URL: http://developer.ebay.com/DevZone/XML/docs/WebHelp/index.htm?context=eBay_XML_API&topic=SearchingByItemSpecifics |
|
107
|
|
|
|
|
|
|
Title: Searching by Item Specifics (Buy-Side Product Finder) |
|
108
|
|
|
|
|
|
|
, URL: https://ebay.custhelp.com/cgi-bin/ebay.cfg/php/enduser/std_adp.php?p_faqid=560 |
|
109
|
|
|
|
|
|
|
Title: Knowledge Base: ProductFinderID for Buy-Side Searches |
|
110
|
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
RequiredInput: No |
|
113
|
|
|
|
|
|
|
# Argument: reference to an array |
|
114
|
|
|
|
|
|
|
of 'xs:int' |
|
115
|
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
=cut |
|
117
|
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
sub setProductFinderID { |
|
119
|
|
|
|
|
|
|
my $self = shift; |
|
120
|
|
|
|
|
|
|
my $sProductFinderID = shift; |
|
121
|
|
|
|
|
|
|
$self->getRequestDataType()->setProductFinderID($sProductFinderID); |
|
122
|
|
|
|
|
|
|
} |
|
123
|
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
|
|
126
|
|
|
|
|
|
|
# |
|
127
|
|
|
|
|
|
|
# output properties |
|
128
|
|
|
|
|
|
|
# |
|
129
|
|
|
|
|
|
|
|
|
130
|
|
|
|
|
|
|
=head2 getAttributeSystemVersion() |
|
131
|
|
|
|
|
|
|
|
|
132
|
|
|
|
|
|
|
Current version of the product search page data for the site. |
|
133
|
|
|
|
|
|
|
This value changes each time changes are made to the search page data. |
|
134
|
|
|
|
|
|
|
The current version value is not necessarily greater than the previous |
|
135
|
|
|
|
|
|
|
value. Therefore, when comparing versions, only compare whether the |
|
136
|
|
|
|
|
|
|
value has changed. |
|
137
|
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
Returned: Conditionally |
|
139
|
|
|
|
|
|
|
Details: DetailLevel: none, ReturnAll |
|
140
|
|
|
|
|
|
|
# Returns: 'xs:string' |
|
141
|
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
=cut |
|
143
|
|
|
|
|
|
|
|
|
144
|
|
|
|
|
|
|
sub getAttributeSystemVersion { |
|
145
|
|
|
|
|
|
|
my $self = shift; |
|
146
|
|
|
|
|
|
|
return $self->getResponseDataType()->getAttributeSystemVersion(); |
|
147
|
|
|
|
|
|
|
} |
|
148
|
|
|
|
|
|
|
|
|
149
|
|
|
|
|
|
|
=head2 getProductFinderData() |
|
150
|
|
|
|
|
|
|
|
|
151
|
|
|
|
|
|
|
A string containing a list of search attributes that can be used in a |
|
152
|
|
|
|
|
|
|
"Product Finder" style query, along with related meta-data. The meta-data |
|
153
|
|
|
|
|
|
|
specifies possible values of each attribute, the logic for presenting |
|
154
|
|
|
|
|
|
|
attributes to a user, and rules for validating the user's selections. For |
|
155
|
|
|
|
|
|
|
backward compatibility, this data is in the same XML format that was used |
|
156
|
|
|
|
|
|
|
in the Legacy XML API so that you can apply the same Product Finder XSL |
|
157
|
|
|
|
|
|
|
stylesheet to it. That is, individual elements are not described using the |
|
158
|
|
|
|
|
|
|
new eBay XML schema format. For information about each element in the |
|
159
|
|
|
|
|
|
|
ProductFinderData string, see the product finder model documentation in |
|
160
|
|
|
|
|
|
|
the eBay Web Services guide (see links below). |
|
161
|
|
|
|
|
|
|
|
|
162
|
|
|
|
|
|
|
Because this is returned as a string, the XML markup is escaped with |
|
163
|
|
|
|
|
|
|
character entity references (e.g., <eBay><ProductFinders>...). |
|
164
|
|
|
|
|
|
|
See the appendices in the eBay Web Services guide for general information about |
|
165
|
|
|
|
|
|
|
string data types. |
|
166
|
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
Returned: Conditionally |
|
168
|
|
|
|
|
|
|
Details: DetailLevel: ReturnAll |
|
169
|
|
|
|
|
|
|
# Returns: 'xs:string' |
|
170
|
|
|
|
|
|
|
|
|
171
|
|
|
|
|
|
|
=cut |
|
172
|
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
sub getProductFinderData { |
|
174
|
|
|
|
|
|
|
my $self = shift; |
|
175
|
|
|
|
|
|
|
return $self->getResponseDataType()->getProductFinderData(); |
|
176
|
|
|
|
|
|
|
} |
|
177
|
|
|
|
|
|
|
|
|
178
|
|
|
|
|
|
|
|
|
179
|
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
|
|
182
|
|
|
|
|
|
|
1; |