Contactos (leads) v.0

perform: searchLead

GET https://{YOUR_CLASSLIFE_DOMAIN}/app/apilead.php

Request Body

Name
Type
Description

lead_name

string

{Nombre del contacto}

lead_lastname

string

{Apellido del contacto}

lead_email

string

{Email del contacto}

lead_phone

string

{Teléfono del contacto}

perform

string

searchLead

apiKey

string

{APIKEY}

{
    "status": "success",
    "data": [
        {
            "lead_id": "1",
            "lead_name": "Alumno",
            "lead_lastname": "Prueba",
            "lead_email": "alumno@classlife.es",
            "lead_phone": null
        }, ...
    ]
}

perform: getLead

POST https://{YOUR_CLASSLIFE_DOMAIN}/app/apilead.php

Request Body

Name
Type
Description

lead_id

string

{ID del contacto}

perform

string

getLead

apiKey

string

{APIKEY}

{
    "status": "success",
    "data": {
        ...
    }
}

perform: newLead

POST https://xxxx/app/apilead.php

Esta operación actualiza los datos principales de un alumno

Request Body

Name
Type
Description

perform*

string

newLead

apikey*

string

{ APIKEY }

name*

String

Nombre del lead

lastname

String

Primer apellido del lead

lastnameend

String

Segundo apellido del lead

email

String

Email principal del lead

phone

String

Teléfono principal el lead

course_id

String

ID de la titulación sobre la que está intersado el lead

lead_source

Integer

// ID de los CANALES https://XXXXXX.classlife.education/admin/leads/sources

source

String

Formulario X: nombre descriptivo para saber el origen

country

String

País (texto)

state

String

Província (texto)

lead_language

String

// Idiomas "es-ES" https://xxxxx.classlife.education/admin/configuration/languages

lead_segment

Int

Id del segmento

{
    "status": "success",
    "data": [
        {
            "student_id": "1",
            "student_name": "Student",
            "student_phone": null,
            "student_lastname": "Classlife",
            "student_email": "student@classlife.es"
        }, ...
    ]
}

Última actualización