Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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

Parameters:

Name

Mandatory

Type

Description

customer_phone

YES

STRING

Customer phone number

service_phone

YES

STRING

Unique service identifier

Returns:

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
}
*/
  • No labels