Skip to content

leadtune/leadtune-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LeadTune API PHP Library

http://github.com/leadtune/leadtune-php

Copyright 2010 LeadTune, LLC

John David Eriksen (devs@leadtune.com)

For details about the LeadTune API, see: http://leadtune.com/api

Installation

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.

Usage

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" => "wanna@learn.edu"));

$prospect_retrieved = $ltp->read($prospect_created['prospect_id'], MY_ORGANIZATION_CODE);

Releases

No releases published

Packages

No packages published

Languages