I am using the code in the github example page to check followers with node.js. The command works well, except when the number of followers exceeds the max.results (1000). When this happens, the code resends the request using the nextToken parameter. But the response is a 400 error (Bad Request).
After prodding through the documentation I discovered the proper parameter is pagination_token, instead of next_token. So, in the code, line 53 should change to:
params.pagination_token = nextToken;
I am using the code in the github example page to check followers with node.js. The command works well, except when the number of followers exceeds the max.results (1000). When this happens, the code resends the request using the nextToken parameter. But the response is a 400 error (Bad Request).
After prodding through the documentation I discovered the proper parameter is
pagination_token
, instead ofnext_token.
So, in the code, line 53 should change to:params.pagination_token = nextToken;
(Info from: quickstart followers documentation )