LAMS API Integration Guide
The JGRobo LAMS utilizes a SOAP-based API to allow external services to add lead data to our systems.
Integration is easy using PHP. A system administrator will provide you with the "application url" and your username and password credentials.
The first step is to establish a SOAP connection:
$options = array('uri' => 'http://api_url_here/api.php', 'location' => 'http://api_url_here/api.php');
$client = new SOAPClient(null, $options);
The next step is to fire the API's add lead handler. Only one line of code is required. The following assumes you have the first name, last name, address data, etc., in the variables indicated.
$result = $client->addlead("USERNAME", "PASSWORD", $event_id, $fname, $lname, $addr1, $addr2, $city, $state, $zip, $phone, $email, "your_domain_name.com");
Your_domain_name.com should of course be replaced with whatever domain name you are sending the leads from (for tracking purposes). Username and Password should of course be replaced by your credentials, which are as follows.
Regarding the $event_id, this will vary depending on which event the lead is being marketed to. If you require a generic event as a "catch-all", please contact us. Correct values will generally be strings that match our internal event names -- e.g. "ABCFET12345 - AA111", etc. These will be provided to you as each event is set up in the LAMS. If you wish to include an additional tracking variable, the API does provide support for this. Please contact us if you require integration information for that option.
Valid API endpoint URLs:
NVC - alpha.albertosaur.us
Development - wintergreen.constantlead123.com
If your developers have any questions, please don't hesitate to contact us for clarification.