skip to Main Content

Ebay API – **kwargs vs 10 arguments in a python function?

I am starting out with python and trying to construct an XML request for an ebay web service: Now, my question is: Say, this is my function: def findBestMatchItemDetailsAcrossStores(): request = """<?xml version="1.0" encoding="utf-8"?> <findBestMatchItemDetailsAcrossStoresRequest xmlns="http://www.ebay.com/marketplace/search/v1/services"> <siteResultsPerPage>50</siteResultsPerPage> <entriesPerPage>50</entriesPerPage> <ignoreFeatured>true</ignoreFeatured> <keywords>ipod</keywords>…

VIEW QUESTION

Ebay API – SOAP to XML conversion in PHP

I need to generate the following XML with SOAP: ... <InternationalShippingServiceOption> <ShippingService>StandardInternational</ShippingService> <ShippingServiceCost currencyID="USD">39.99</ShippingServiceCost> <ShippingServicePriority>1</ShippingServicePriority> <ShipToLocation>CA</ShipToLocation> </InternationalShippingServiceOption> ... So I have the following SOAP array in PHP to do this: $params = array( 'InternationalShippingServiceOption' => array( 'ShippingService'=>'StandardInternational', 'ShippingServiceCost'=>39.99, 'ShippingServicePriority'=>1, 'ShipToLocation'=>'CA',…

VIEW QUESTION
Back To Top
Search