Open eswarreddy43 opened 8 years ago
If this is still relevant, or interests anyone.
To add the attribute <productId type="ReferenceID">53039031</productId>
with the xml module which ebay-api use, you should take a different approach while building the xml.
It's easy to add.
You can edit buildXmlInput(options) function in xml-request.js.
if (options.serviceName === 'Finding') { root.push({'_attr': {'xmlns': 'http://www.ebay.com/marketplace/search/v1/services'}}); /////////////////Added code to support find items by product/////////////////////////////// if(options.opType=== 'findItemsByProduct'){ root.push({'productId': [{ '_attr': { 'type': 'ReferenceID'}}, options.productId]}); } ////////////////////End added code//////////////////////////////////////// }
You should also add a productId field in the options Object of course.
@eswarreddy43 The alternative is here : https://www.npmjs.com/package/ebay-node-client#search-1
Hello Dev,
I am using this nodejs-ebay-api module for searching the book using ISBN in app. So I took reference of this findItemsByProduct from eBay developers site. I have tried my code like following
But getting error as
Please suggest me on this.