From 38189d3bf4ac16d6cc031e452eca208b4a638c54 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 25 Apr 2022 11:14:15 +0000 Subject: [PATCH] document next_token --- src/report/ReportPoll.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/report/ReportPoll.ts b/src/report/ReportPoll.ts index 99f276c..ec93029 100644 --- a/src/report/ReportPoll.ts +++ b/src/report/ReportPoll.ts @@ -96,6 +96,11 @@ export class ReportPoll { }); } + /* + * This API endpoint returns an opaque `next_token` number that we + * need to give back to subsequent requests for pagination, so here we + * save it in account data + */ if (response.next_token !== undefined) { this.from = response.next_token; try {