Hello,
I'm trying to get all the members of a list with the following code:
client.memberships(user["user"]).each do |list|
#some validation on each list
client.list_members(list).each do |member|
#do stuff
Everything seems to be ok, but when the script process a list with more that 4.000 members, it fails due to rate limits and get stuck. What I understood is that under the hood, there's a cursor to retrieve this lists automatically.
I don't know how to solve this. Ideally I'd like to process these big lists too, but I there's no other way, at list I would like to have a "count" on the members it has and skip if there are more than 4.000.
I hope somebody can give me a hand.
Thank you very much.
Alberto