Danilo Polani
Full Stack Web Developer

MailChimp API v3

PHP Class

La classe è stata sviluppata per facilitare l’utilizzo delle API v3 di MailChimp mediante metodi semplificati e chiamate cURL già impostate.

La documentazione può essere trovata qui: https://github.com/DaniloPolani/MailChimp-API-v3/wiki

 

Getting started

  1. Install package with composer: composer require grork/mailchimp=dev-master. If you don’t want to use composer, you can download the repository and extract it in your project folder.
  2. Require the autoload with require __DIR__ . '/vendor/autoload.php' or with require __DIR__ . '/src/Mailchimp.php (or wherever you placed the folder)
  3. Init the class with $mailchimp = new Grork\Mailchimp( '<API-KEY-HERE>' ). You can obtain your API Key logging into MailChimp > Account > Extras > API Keys > Create A Key

It’s better to init the class with the following code, catching the exceptions:

try {
    $mailchimp = new Grork\Mailchimp( '<API-KEY-HERE>' );
} catch( Exception $e ) {
    die( 'Error: ' . $e->getMessage() );
}

Details

URL

Date

Platform

Languages