Skip to content

Instantly share code, notes, and snippets.

@anchietajunior
Last active October 9, 2017 20:27
Show Gist options
  • Save anchietajunior/68849cc50c97494a30f0e8a97282f3b6 to your computer and use it in GitHub Desktop.
Save anchietajunior/68849cc50c97494a30f0e8a97282f3b6 to your computer and use it in GitHub Desktop.
Integration Milchimp with Httparty Ruby
# BASIC AUTHO
request = HTTParty.get("https://api.mailchimp.com/3.0/",
basic_auth: {username: 'anystring', password: "your-api-key" })
# GET ALL LISTS INFO
request = HTTParty.get("https://api.mailchimp.com/3.0/lists",
basic_auth: {username: 'anystring', password: "your-api-key" })
# SEARCH SPECIFIC USER
request = HTTParty.get("https://api.mailchimp.com/3.0/search-members?query=email_a_buscar@email.com",
basic_auth: {username: 'anystring', password: "your-api-key" })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment