PHP DIA API
a PHP library to talk to DemocracyInAction's API
usage
OO method:
require_once('DIA/API.php');
$api =& new DIA_API();
$key = $api->process('supporter', array('Email' => $email, 'First_Name' => $first_name));
$supporter = $api->getSupporter($key);
functional method (currently limited to get and process):
require_once('DIA/API.php');
dia_api_get('supporter', $key);
$key = dia_api_process('supporter', array('Email' => $email, 'First_Name' => $first_name));
$supporter = dia_api_get($key);
more examples can be found in the test directory
Attachments
- dia_api-0.1.tar.gz (37.3 kB) -
latest tarball (alpha-0.1)
, added by seth on 01/05/06 15:25:01. - dia_api-r72.tar.gz (52.5 kB) - added by seth on 02/05/07 17:58:02.
- members_example.php (1.1 kB) -
example use of library for adding members to groups, checking membership
, added by seth on 02/05/07 17:58:36.
