M
M
maxtrelle2016-08-09 15:48:35
PHP
maxtrelle, 2016-08-09 15:48:35

How to connect a subscription form to a landing page using esputnik?

Form:
name: ______________________________
email: ____________________________
phone: _________________________
>>Book<<
How to connect:
1. The fields name, email and phone must be transferred to esputnik.
2. When you click on the "Book" button, there
should be a check if there is a contact in the database. If the contact is already in the database, its fields (name, email, phone) should be updated.
If there is no contact, it should be created and the values ​​recorded in all required fields.
For these purposes, it is best to use the subscribe => method https://esputnik.com.ua/api/methods.html#/v1/conta...
In parallel with the subscribe method, in both cases it should trigger an event =>https://esputnik.com.ua/api/v1/event , which is described below:
{
"eventTypeKey" : "KondratovichFreeVebinar20160826",
"keyValue" : "[email protected]",
"params" : [ {
"name" : "email",
"value" : "[email protected]"
},
{
"name" : "json",
"value" : "{
\”firstname\”:\”TestFName\”,
\”email\” :\”[email protected]\”,
\"phone\":\"+380663655566\"
}]
}
Upon successful registration, a “Thank you for registering” page should be displayed => mySite.com/success.
html API Access
Login: ***
Password: ***

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question