This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
David Pirotte (author)
Sat Apr 11 12:35:56 -0700 2009
commit c0683298e2b9f7e3b17e6a2aac236db2cce2459b
tree 37d1e6d63ff33d9ed121e6aa682b21b402a610ab
parent a545594a7f185ff92b6c5e6175a33282fd6c01c0
tree 37d1e6d63ff33d9ed121e6aa682b21b402a610ab
parent a545594a7f185ff92b6c5e6175a33282fd6c01c0
| name | age | message | |
|---|---|---|---|
| |
Changes | ||
| |
LICENSE | Thu Mar 12 21:44:24 -0700 2009 | |
| |
MANIFEST | Thu Mar 12 21:44:24 -0700 2009 | |
| |
Makefile.PL | Thu Mar 12 21:44:24 -0700 2009 | |
| |
README | Thu Mar 12 21:46:44 -0700 2009 | |
| |
Todo | Thu Mar 12 21:44:24 -0700 2009 | |
| |
lib/ | Sat Apr 11 12:35:56 -0700 2009 | |
| |
t/ | Mon Apr 06 06:20:10 -0700 2009 |
README
NAME
Mail::Chimp::API - Perl wrapper around the Mailchimp v1.1 API
SYNOPSIS
use strict;
use Mail::Chimp::API;
my $chimp = Mail::Chimp::API->new($username, $password);
my $campaigns = $chimp->campaigns;
my $lists = $chimp->lists;
my $subscribers = $chimp->listMembers($lists->[0]->{id});
print 'success' if $chimp->listSubscribe($lists->[0]->{id}, 'someone@somewhere.com', {}, 1);
DESCRIPTION
Mail::Chimp::API is a simple Perl wrapper around the MailChimp v1.1 API.
The object exposes the MailChimp XML-RPC methods and confesses fault
codes/messages when errors occur. Further, it keeps track of your API
key for you so you do not need to enter it each time.
Method parameters are passed straight through, in order, to MailChimp.
Thus, you do need to understand the MailChimp v1.1 API as documented at
<http://www.mailchimp.com/api/1.1/> so that you will know the
appropriate parameters to pass to each method.
NOTES
If you find yourself getting '-32602' errors, you are probably missing a
required (even if empty) hash. The API documentation should be your
first destination to verify the validity of your parameters. For
example:
# MailChimp Error -32602: server error. invalid method parameters
print 'fail' if $chimp->listSubscribe($lists->[0]->{id}, 'someone@somewhere.com');
# The {} is required by MailChimp to indicate that you do not want any MergeVars
print 'success' if $chimp->listSubscribe($lists->[0]->{id}, 'someone@somewhere.com', {}, 1);
Also, the only security method implemented is login. This is likely to
change at some point in the future.
DEPENDENCIES
Mouse
XMLRPC::Lite
SEE ALSO
XMLRPC::Lite
<http://www.mailchimp.com/api/1.1/>
COPYRIGHT
Copyright (C) 2009 Dave Pirotte. All rights reserved.
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
AUTHOR
Dave Pirotte (dpirotte@gmail.com)








