Line 2: | Line 2: | ||
__TOC__ | __TOC__ | ||
==Methods== | ==Methods== | ||
+ | The Interaction namespace includes the following methods: | ||
+ | * [[InteractionNamespace#attachUserData|attachUserData]] | ||
+ | * [[InteractionNamespace#deleteUserData|deleteUserData]] | ||
+ | * [[InteractionNamespace#getByInteractionId|getByInteractionId]] | ||
+ | * [[InteractionNamespace#getInteractions|getInteractions]] | ||
+ | * [[InteractionNamespace#updateUserData|updateUserData]] | ||
+ | |||
===attachUserData=== | ===attachUserData=== | ||
{| | {| | ||
Line 114: | Line 121: | ||
==Type Definitions== | ==Type Definitions== | ||
+ | The Interaction namespace includes the following object types: | ||
+ | * [[InteractionNamespace#Interaction|Interaction]] | ||
+ | * [[InteractionNamespace#Party|Party]] | ||
+ | |||
===Interaction=== | ===Interaction=== | ||
{| | {| |
Revision as of 18:05, July 14, 2015
Interaction Namespace
Methods
The Interaction namespace includes the following methods:
attachUserData
Signature | <static> attachUserData(interactionId, keyValues) | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Description | Attaches key/value pairs of user data to the live interaction. | |||||||||
Parameters |
|
deleteUserData
Signature | <static> deleteUserData(interactionId, key) | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Description | Deletes the user data attached to the interaction. | |||||||||
Parameters |
|
getByInteractionId
Signature | <static> getByInteractionId(interactionId) → {interaction.Interaction} | ||||||
---|---|---|---|---|---|---|---|
Description | Gets an interaction by its unique identifier. | ||||||
Parameters |
| ||||||
Return Type | interaction.Interaction or null if the interaction doesn't exist. |
getInteractions
Signature | <static> getInteractions() → {Array.<interaction.Interaction>} |
---|---|
Description | Gets all the interactions. |
Return Type | Array.<interaction.Interaction> |
updateUserData
Signature | <static> updateUserData(interactionId, keyValues) | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Description | Updates the user data on the live interaction. | |||||||||
Parameters |
|
Type Definitions
The Interaction namespace includes the following object types:
Interaction
Description | Represents the JSON structure of an interaction. Specific attributes to voice interaction are: callUuid, direction, callType, ani, dnis and recordingState. | |||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Type | Object | |||||||||||||||||||||||||||||||||||||||||||||||||||
Properties |
|
Party
Description | Represents the JSON structure of a party. | ||||||
---|---|---|---|---|---|---|---|
Type | Object | ||||||
Properties |
|
Comments or questions about this documentation? Contact us for support!