isCustomerWhatsappSessionActive

Returns an object that indicates if a whatsapp customer session is still active.

Parameters:

Name

Mandatory

Type

Description

Name

Mandatory

Type

Description

customer_phone

yes

string

Customer phone number

service_phone

yes

string

Unique service identifier

Returns:

Type

Description

Type

Description

JS Promise


A Javascript Promise that return an object containing the following properties:

  • result: if true, the service response was performed correctly

  • error: contains the error description if an error has occurred in the request

  • isCustomerWhatsappSessionActive: a boolean that indicates if the customer session is still active.

Example:

LIVECHAT.isCustomerWhatsappSessionActive("393401234567","447491163403") .then(function(data){ console.log(data); }); /* Example of data { "result": true, "isCustomerWhatsappSessionActive": true, "error": null } */