Instantly share code, notes, and snippets.

Embed
What would you like to do?
retrive lists from mailshimp
lists = client.lists.all(get_all=True, fields="lists.name,lists.id")['lists']
#get_all intends to provide you with all the available lists
#fields are the collumns you want to extract
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment