mailchimp-api-v3
Advanced tools
Comparing version 1.12.0 to 1.12.1
@@ -15,3 +15,4 @@ var Mailchimp = require('../index.js'); | ||
} | ||
// ********************************************* | ||
// check status mailchimp server / root | ||
var status = { | ||
@@ -21,3 +22,6 @@ method : 'get', | ||
} | ||
mailchimp.request(status, callback) | ||
// ********************************************* | ||
// get all list contact | ||
var get_lists = { | ||
@@ -27,3 +31,6 @@ method : 'get', | ||
} | ||
mailchimp.request(get_lists, callback) | ||
// ********************************************* | ||
// // get a list by list id | ||
var get_list_info = { | ||
@@ -33,6 +40,9 @@ method : 'get', | ||
} | ||
mailchimp.request(get_list_info, callback) | ||
// ********************************************* | ||
// // get list info with path params | ||
var get_list_info_path_params = { | ||
method : 'get', | ||
path : 'lists/{list_id}', | ||
path : '/lists/{list_id}', | ||
path_params : { | ||
@@ -42,6 +52,15 @@ list_id : example_list_id | ||
} | ||
mailchimp.request(get_list_info_path_params, callback) | ||
// mailchimp.request(status, callback) | ||
// mailchimp.request(get_lists, callback) | ||
// mailchimp.request(get_list_info, callback) | ||
mailchimp.request(get_list_info_path_params, callback) | ||
// ********************************************* | ||
// add a new member to the list | ||
var add_new_member = { | ||
method: 'post', | ||
path: `/lists/${example_list_id}/members`, | ||
body: { | ||
email_address: 'example@gmail.com', | ||
status: 'subscribed' | ||
} | ||
} | ||
mailchimp.request(add_new_member, callback) | ||
{ | ||
"name": "mailchimp-api-v3", | ||
"version": "1.12.0", | ||
"version": "1.12.1", | ||
"description": "Mailchimp wrapper for v3 of the mailchimp api, with transparant handling of batch operations", | ||
@@ -31,3 +31,3 @@ "main": "index.js", | ||
"lodash": "^4.17.10", | ||
"request": "^2.67.0", | ||
"request": "^2.88.0", | ||
"tar": "^4.0.2" | ||
@@ -34,0 +34,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30315
920
Updatedrequest@^2.88.0