Skip to content

Instantly share code, notes, and snippets.

@diogo22santos
Created December 6, 2018 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diogo22santos/f7a119c1db2788890ca511cc60c65ba7 to your computer and use it in GitHub Desktop.
Save diogo22santos/f7a119c1db2788890ca511cc60c65ba7 to your computer and use it in GitHub Desktop.
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