Giter Club home page Giter Club logo

perl-mail-chimp's Introduction

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}, '[email protected]', {}, 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}, '[email protected]');
  
      # The {} is required by MailChimp to indicate that you do not want any MergeVars
      print 'success' if $chimp->listSubscribe($lists->[0]->{id}, '[email protected]', {}, 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 ([email protected])

perl-mail-chimp's People

Contributors

dpirotte avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.