UNPKG
mailchimp-v3
Version:
latest (1.0.5)
1.0.5
1.0.4
1.0.2
1.0.1
1.0.0
Basic wrapper for MailChimp API V3.0 with some nice toppings
bitbucket.org/recaptureio/mailchimp-v3
mailchimp-v3
/
examples
/
get-lists.js
13 lines
(10 loc)
•
255 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
var
mailchimp =
require
(
'../index.js'
); mailchimp.
setApiKey
(
'YOUR-API-KEY-HERE'
);
//mailchimp.setDebug(true);
mailchimp .
get
(
'lists'
) .
then
(
function
(
data
){
console
.
log
(data); }).
catch
(
function
(
error
){
console
.
log
(error); });