import Stigg from '@stigg/typescript';const client = new Stigg({ apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted});// Automatically fetches more pages as needed.for await (const couponListResponse of client.v1.coupons.list()) { console.log(couponListResponse.id);}
import Stigg from '@stigg/typescript';const client = new Stigg({ apiKey: process.env['STIGG_API_KEY'], // This is the default and can be omitted});// Automatically fetches more pages as needed.for await (const couponListResponse of client.v1.coupons.list()) { console.log(couponListResponse.id);}