stevewaffles/aweber_class

There is no license information available for the latest version (dev-master) of this package.

A simple PHP class to interact with the AWeber API

dev-master 2015-08-05 15:04 UTC

This package is not auto-updated.

Last update: 2024-05-01 01:39:27 UTC


README

Basic Usage:

  1. Open aweberclass.php and add your keys
  2. Profit

Starter code:

<?php
require('aweber/aweberclass.php');

//new aweber
$app = new AWeber();
//use the list name you want to add subscribers to
$list = $app->findList($name='LIST_NAME_GOES_HERE');
//create new subscriber
$subscriber = array(
'email' => $_POST['email'],
'name' => $_POST['first_name'].' '.$_POST['last_name']
);
//add them to the list
$add_user = $app->addSubscriber($subscriber, $list);
?>