NAME
Mail::Chimp2 - Mailchimp V2 API
VERSION
version 0.5
SYNOPSIS
This is a very rudimentary start of a Mailchimp API version 2 integration. It will be a complete implementation eventually but for now all I needed was bulk add addresses to lists, so that is what i covered so far.
use Mail::Chimp2;
my $chimp = Mail::Chimp2->new(
debug => 1,
api_key => 'yourapikey-us1'
);
dump $chimp->lists_batch_subscribe(
id => 'list_id',
double_optin => 'false',
update_existing => 'true',
batch => [ {
email => { email => 'me@example.com' },
merge_vars => { FNAME => 'Me', LNAME => 'Example' }
} ]
);
ATTRIBUTES
dc
The datacenter attribute is set to the extension of the API key. You can force it if you need by setting this attribute.
INTERNALS
BUILD
basic configuration for the client API happens usually in the BUILD method when using Web::API
BUGS
Please report any bugs or feature requests on GitHub's issue tracker https://github.com/norbu09/Mail::Chimp2/issues. Pull requests welcome.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Mail::Chimp2
You can also look for information at:
GitHub repository
MetaCPAN
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
ACKNOWLEDGEMENTS
AUTHOR
Lenz Gschwendtner <lenz@springtimesoft.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by ideegeo Group Limited.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.