Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mailchimp-api-v3

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mailchimp-api-v3 - npm Package Compare versions

Comparing version 1.12.0 to 1.12.1

31

examples/example.js

@@ -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)

4

package.json
{
"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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc