Last active
September 21, 2018 17:51
-
-
Save scorredoira/fc697d3f1d5b97004fde8bc4a22e687e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
let data = { "email_address": time.unixNano() + "@prueba.com", "status": "subscribed" }; | |
let r = http.newRequest("POST", "https://us19.api.mailchimp.com/3.0/lists/1652876acb/members", data) | |
r.setBasicAuth("xx", "xx") | |
r.execute() | |
r = http.newRequest("GET", "https://us19.api.mailchimp.com/3.0/lists/1652876acb/members", data) | |
r.setBasicAuth("xxx", "xx") | |
let res = json.unmarshal(r.execute()) | |
fmt.println(res.total_items) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment