Formulario HTML / Script JS Newsletter
Cómo enviar contactos a Woowup desde el popup de registro en tu web mediante un script
Ejemplo jQuery
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My Ecommerce</title>
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<script>
var settings = {
"async": true,
"crossDomain": true,
"url": "https://events.woowup.com/events/users",
"type": "POST",
"headers": {
"cache-control": "no-cache",
"content-type": "application/json"
},
"data": JSON.stringify({
"app": "CLAVE_PUBLICA_WOOWUP",
"service_uid": "9988776655",
"document": "1122334455",
"email": "john@doe.com",
"tags": "ecommerce,newsletter",
"birthdate": "1989-06-22",
"telephone": "+549116655443322",
"gender": "M",
"first_name": "John",
"last_name": "Doe",
"custom_attributes": {
"one_attribute": "one value",
"other_attribute": "other value",
}
})
}
$.ajax(settings).done(function (response) {
console.log(response);
}).fail(function (error){
console.log(JSON.stringify(error))
});
</script>
</head>
<body>
</body>
</html>Parámetros disponibles para enviar
Request Body
Name
Type
Description
Request Body
Name
Type
Description
HTTP Response Codes
Ejemplo funcional jQuery 2.2.4
Last updated
Was this helpful?