Limited Time Cyber Monday Deal! Up to 40% off
It's useful if you want to capture leads from your website or from other apps. It works like public contact registration and no api key is required.
api/create-lead
Param | is required ? | |
---|---|---|
last_name | Yes | Last name |
first_name | No | First name |
title | No | Title |
company | No | Company |
website | No | Website |
No | ||
phone | No | Phone |
street | No | Street / Address line 1 |
city | No | City |
state | No | State |
zip | No | ZIP / Postal code |
country | No | Country |
const requestConfig = {
headers: {
"Content-Type": "application/x-www-form-urlencoded"
}
};
const clx_url = "https://demo.cloudonex.com"
let formData = new FormData();
formData.append("first_name", values.first_name);
formData.append("last_name", values.last_name);
formData.append("email", values.last_name);
formData.append("company", values.last_name);
axios
.post(
clx_url + "/?ng=api/create-lead",
formData,
requestConfig
)
.then(response => {
if (response.data.success) {} else {
this.setState({
errors: response.data.errors
});
}
actions.setSubmitting(false);
})
.catch(function(response) {
actions.setSubmitting(false);
console.log(response);
});