Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Insert a new lead into the Noojee Campaigner. Lead data is to be POSTed and encoded as json.

Entry point:

http://<server host>/servicemanager/rest/CampaignAPI/insertLead

Parameters:

ParameterDescription
fTemplateIdCampaign Template id of the Template that the lead will be associated with.
fCampaignIdCampaign id of the Campaign that the lead will be associated with.
fAllocationIdAllocation id of the Campaign that the lead will be associated with.
allowDuplicatesIf true checking for duplicate phone numbers will NOT be performed .
timeStampthe authentication timestamp.
hashthe authentication signature or hash.


Sample query:

curl -v -H "Accept: application/json" -H "Content-Type: application/json" -X POST -d '{"Name":"Jane Smith","StreetAddress":"Suite 8/10 Hoddle St", "City": "Abbotsford", "State":"Vic", "PostCode":"3064", "FirstPhone":"0383218199"}' 'http://<server host>/servicemanager/rest/CampaignAPI/insertLead?fTemplateId=41&fCampaignId=41&fAllocationId=38&apiKey=f863246a-973e-11e6-8784-08002718f5b5&allowDuplicates=true'


Sample success response:

{"code":0,"message":"Imported 1 Updated 0 Rejected 0 leads.\n\nErrors (If any):\n Name,State,PostCode,FirstPhone,City,StreetAddress,Error Reason,\n"}
  • No labels