voucherifyio / voucherify-nodejs-sdk

[Deprecated] Node.js SDK for Voucherify - coupons, vouchers, promo codes
http://www.voucherify.io
MIT License
27 stars 16 forks source link

Allow to scroll customers #119

Closed frakti closed 4 years ago

frakti commented 4 years ago

Standard list customers API has limitation of available pages to be shown equal to 100. To cover cases when you would like to fetch more, we must use scroll capabilities of the API. The SDK simplifies it, making listing high volume of customers seamless.

  for await (const customer of client.customers.scroll(params)) {
    console.log('Customer', customer)
  }