I’ve got a wordpress form that sends a new lead to the contact list. This is all working perfectly:
Get the keys > build the data array > send the data > post thank you message
What I want to do is add a tag to the new contact but there doesn’t seem to be a simple way to do this. One thread says I need a separate API call and the documentation will be updated to reflect this but it doesn’t appear to have happened.
In any case, adding a new contact doesn’t return the contact ID. I’m using:
$infusionsoft->contacts(‘xml’)->add($fields);
Where $fields is the data array.
Any clues as to how to fix this?