Link to home
Create AccountLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

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.
ASKER CERTIFIED SOLUTION
Avatar of Jonathan D.
Jonathan D.
Flag of Israel image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of curiouswebster

ASKER

Hi,
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.





User generated image



User generated image


SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
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? 
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.