I am trying to extract all my email subscribers from Mailgun using this:
members = requests.get('https://api.mailgun.net/v3/lists/<address>/members',
auth=auth
)
This works however it limits the number of subscribers to 100. I have 600 people on my list and need to access them all to perform some logic. I understand there is a way to over-ride the 100 record limit but have not found anything. Any thoughts? I'm stuck.
Mailgun documentation: Click Here!
From the documentation, it looks like its API will take a limit
parameter. You should be able to get all your subscribers via something like:
members = requests.get('https://api.mailgun.net/v3/lists/<address>/members',
auth=auth,
params={'limit':100, 'skip': 100}
)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.