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
Requires
- php: >=5.4.0
This package is not auto-updated.
Last update: 2024-12-11 04:34:15 UTC
README
Basic Usage:
- Open aweberclass.php and add your keys
- 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);
?>