curiouswebster
asked on
Javascript/AJAX to call Create a Contact - Web Method
I need to use Javascript and AJAX to call Create a Contact - Web Method for the Ontraport CRM. It will be executed on Submit Button click
https://api.ontraport.com/doc/#create-a-contact
Can you show me how the AJAX call would look? I have the required API keys...
Can you also show me what objects need to be created and how to pass those into the AJAX call?
I only see cURL and PHP mentioned in the doc in the above link, but I have to believe that AJAX and Javascript would do fine with this API. Right?
Thanks.
https://api.ontraport.com/doc/#create-a-contact
Can you show me how the AJAX call would look? I have the required API keys...
Can you also show me what objects need to be created and how to pass those into the AJAX call?
I only see cURL and PHP mentioned in the doc in the above link, but I have to believe that AJAX and Javascript would do fine with this API. Right?
Thanks.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Oh, I was not thinking about that. Of course, I do not want to expose my credentials.
What are the language/hosting options to safely use this API?
What are the language/hosting options to safely use this API?
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Here is my follow-on question...
https://www.experts-exchange.com/questions/29217100/How-to-protect-your-own-Web-Service-call.html#questionAdd
https://www.experts-exchange.com/questions/29217100/How-to-protect-your-own-Web-Service-call.html#questionAdd
ASKER
I am not sure which, but it seems to be Header. I say that since the keys are posted at the top of the page and not as a field, with the dozens of other fields I could be passing in.