bhushankummar / eBay-node-client

Ebay NodeJS Wrapper
MIT License
55 stars 66 forks source link

pagination does not work #19

Closed alsguimaraes closed 4 years ago

alsguimaraes commented 5 years ago

Calls to eBay.inventory.getInventoryItems({ offset: 25, limit: 25}) do not work. Ignores all parameters. Apparently library does not set offset and limit anywhere.

bhushankummar commented 4 years ago

@alsguimaraes Please check this example. https://github.com/bhushankumarl/eBay-node-client/blob/master/examples/javaScript/sell/inventory/getInventoryItems.js

    var data = {
        limit: '10'
    };
    try {
        var response = await eBay.inventory.getInventoryItems(data);
        console.log('response', response);
    } catch (error) {
        console.log('error ', error);
        return;
    }