Closed ineffablep closed 5 years ago
Hi, I am using your example but getting below results for search, Please let me know where is it going wrong.
Code: eBay.application.getOAuthToken({ grant_type: 'client_credentials', scope: 'https://api.ebay.com/oauth/api_scope' }).then(token => { eBay.setToken(token.access_token); eBay.browse.getItem(itemId).then(response => { res.send(response); }).catch(er => { console.log(er); res.status(500).send(er); });
eBay.application.getOAuthToken({ grant_type: 'client_credentials', scope: 'https://api.ebay.com/oauth/api_scope' }).then(token => { eBay.setToken(token.access_token); eBay.browse.getItem(itemId).then(response => { res.send(response); }).catch(er => { console.log(er); res.status(500).send(er); });
Response
{ "href": "https://api.sandbox.ebay.com/buy/browse/v1/item_summary/search?limit=50>in=5011100517&offset=0", "total": 0, "limit": 50, "offset": 0 }
@ineffablep There is nothing wrong in that. The only possibility is, their no product matched using gtin=5011100517.
gtin=5011100517
Hi, I am using your example but getting below results for search, Please let me know where is it going wrong.
Code:
eBay.application.getOAuthToken({ grant_type: 'client_credentials', scope: 'https://api.ebay.com/oauth/api_scope' }).then(token => { eBay.setToken(token.access_token); eBay.browse.getItem(itemId).then(response => { res.send(response); }).catch(er => { console.log(er); res.status(500).send(er); });
Response