Trouble getting Initial example to work
-
So I’m trying to get the basic example to work but it’s not, and I don’t know where to debug this.
The code is almost 100% similar to the example.php you have.
require_once(dirname(__FILE__) . '/../../plugins/infusionsoft/infusionsoft.php'); //this is the relative path to the file created via the infusionsoft plugin $contact = new Infusionsoft_Contact(); $contact->FirstName = $_POST['firstname']; $contact->LastName = $_POST['lasstname']; $contact->Email = $_POST['email']; $contact->Phone1 = $_POST['phone']; $contact->StreetAddress1 = $_POST['street']; $contact->City = $_POST['city']; $contact->OwnerID = $agentInfusionsoftID; $contact->ContactNotes = $_POST['message']; //Save the contact to Infusionsoft $result = $contact->save();
When this code runs, I get no errors, no contact added to infusionsoft, and $result == null when I dump it out.
Are there internal error logs for this plugin where I can see why this is failing, or figure out a way to debug this?
Thanks,
Matt
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Trouble getting Initial example to work’ is closed to new replies.