Last active
October 9, 2017 20:27
-
-
Save anchietajunior/68849cc50c97494a30f0e8a97282f3b6 to your computer and use it in GitHub Desktop.
Integration Milchimp with Httparty Ruby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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