Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

Parameters:

Name

Mandatory

Type

Description

customer_phone

Status
colourRed
titleyes

Status
titlestring

Customer phone number

service_phone

Status
colourRed
titleyes

Status
titlestring

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:

Code Block
languagejs
LIVECHAT.isCustomerWhatsappSessionActive("393401234567","447491163403")
.then(function(data){
  console.log(data);
});

/*
Example of data
{
  "result": true,
  "isCustomerWhatsappSessionActive": true,
  "error": null
}
*/