'currency': 'USD', 'item_specifics': {'name_value_list': [ {'name': 'Brand', 'value': 'HJC'}, {'name': 'Color', 'value': 'Anthracite'}, {'name': 'Size', 'value': 'XXL'} ] }, } #Update the AddItemRequest data structure that will be used to build the xml request #This is also the step that validates the incoming structure for correctness add_item.update( data ) #Build the AddItemRequest xml dom #This function call also returns the etree._Element that was built request = add_item.get_element() add_item.prettyprint() #Create an EbayAPIConnection for our AddItemRequest #Once a request is properly built, it's easy to create a connection object #by simply passing the AddItemRequest object as the argument to #the EbayAPIConnection constructor connection = ebay.EbayAPIConnection( request=add_item ) #Send the request connection.send_request() #Get the response #For now, just print it out #Eventually will have a response parser response = connection.get_response().read()
'ship_to_location': 'CA', }, { 'shipping_service': 'StandardInternational', 'shipping_service_cost': 39.98, 'shipping_service_priority': 3, 'ship_to_location': ['Americas', 'Europe', 'Asia', 'AU'], },], 'exclude_ship_to_location': [], }, 'site': 'eBayMotors', 'country': 'US', 'currency': 'USD', } ) print etree.tostring( request.get_element(), pretty_print=True ) ''' ########################################## # # Testing EndItem # ########################################## end_item = EndItemRequest( False, False ) end_item.update( { 'item_id': '033195015359', 'ending_reason': 'Hmmm', }) print etree.tostring( end_item.get_element(), pretty_print=True ) ''' """