http://github.com/leadtune/leadtune-php
Copyright 2010 LeadTune, LLC
John David Eriksen ([email protected])
For details about the LeadTune API, see: http://leadtune.com/api
From your system's command line, enter the "test" directory and run the command "php LeadTuneProspects.php live". If this test completes successfully, then your system is able to interact with the LeadTune API.
Place LeadTuneProspect.php in your project's include_path.
Below is a simple example that demonstrates how to create and retrieve prospects.
$ltp = new LeadTuneProspect(MY_ACCOUNT_API_KEY);
/**
* "organization", "event", and "email" are the minimum factors needed to create a prospect,
* but the more factors you provide, the more accurate the appraisals will be.
*/
$prospect_created = $ltp->create(array("organization" => MY_ORGANIZATION_CODE, "event" => "lead_accepted", "email" => "[email protected]"));
$prospect_retrieved = $ltp->read($prospect_created['prospect_id'], MY_ORGANIZATION_CODE);