'PageNumber' =>1
}
As you can see, this class has just one method, and the first thing you do is create a
hash that represents the parameters you??™ll pass to eBay??™s web services. The most important
parameter is CallName, which controls which of the various available functions you
call. In this case, you call GetSearchResults, which returns the result of an eBay search,
logically enough. A number of other function calls are available, and each can be used in
a manner similar to this one.
The second most important parameter is the Query parameter, which specifies the
keywords to search by. However, you need to optionally search by seller as well, so the
next chunk of code adds a second parameter if desired:
if seller_id # If the caller does not pass a seller id,
# this function will search across all sellers.
params['IncludeSellers'] = URI.escape(seller_id)
# eBay usernames are currently limited to alphanumeric characters
# and underscores, so this may not be necessary, but it's escaped
# just in case.
Pages:
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185