From Bright Pattern Documentation
Jump to: navigation, search
m
 
Line 1: Line 1:
 
<translate>
 
<translate>
= getCallRecordingStatus(callback) =
+
= getCallRecordingStatus(item_id) =
 
Gets call recording status information.
 
Gets call recording status information.
  
Line 7: Line 7:
 
== Request ==
 
== Request ==
 
=== Syntax ===
 
=== Syntax ===
window.bpspat.api.getCallRecordingStatus(callback)
+
<syntaxhighlight lang="JavaScript">
callback = function(data) {
+
window.bpspat.api.addCallRecordingStatusHandler(function(data){});
}
+
window.bpspat.api.getCallRecordingStatus(item_id);
 +
</syntaxhighlight>
  
 
=== Arguments ===
 
=== Arguments ===
Line 17: Line 18:
 
| '''Description'''
 
| '''Description'''
 
|-
 
|-
| callback
+
| item_id
| function
+
| string
| JavaScript method executed when API method request is completed
+
| interaction item_id, obtained by tracking interactions using [[Embedded-agent-desktop-api-specification/Events/AddInteractionRenderedHandlerCallback | addInteractionRenderedHandler]]
 
|}
 
|}
  

Latest revision as of 20:44, 14 September 2023

• 5.19 • 5.3 • 5.8

getCallRecordingStatus(item_id)

Gets call recording status information.

See the Embedded Agent Desktop Specification's Use Cases section for ways to use this method.

Request

Syntax

window.bpspat.api.addCallRecordingStatusHandler(function(data){});
window.bpspat.api.getCallRecordingStatus(item_id);

Arguments

Parameter Type Description
item_id string interaction item_id, obtained by tracking interactions using addInteractionRenderedHandler


Response

Response Parameters

The response object may contain the following.

Name Data Type Description Example
item_id string Interaction ID "AA9ED493-8EB5-4120-A631-0919856E8358"
call_id string Call identifier "7A741A68-7F75-458A-ADB0-842D0F3BA8C3/203"
command string The command used for the callback function "call_recording_status"
recording boolean Whether a call is being recorded ("1") or not ("0") "1"
muted boolean Whether the call recording is muted ("1") or not ("0") "0"

Example Response

 {
  "item_id": "D3FA4B4F-244A-41E4-AE89-022BF2AA8D11",
  "call_id": "7A741A68-7F75-458A-ADB0-842D0F3BA8C3\/211",
  "command": "call_recording_status",
  "recording": "1",
  "muted": "0"
 }


< Previous | Next >