Line 79: | Line 79: | ||
|} | |} | ||
|- | |- | ||
− | ! | + | ! Returns |
| [[InteractionNamespace#Interaction|interaction.Interaction]] or null if the interaction doesn't exist. | | [[InteractionNamespace#Interaction|interaction.Interaction]] or null if the interaction doesn't exist. | ||
|} | |} | ||
Line 91: | Line 91: | ||
| Gets all the interactions. | | Gets all the interactions. | ||
|- | |- | ||
− | ! | + | ! Returns |
| Array.<[[InteractionNamespace#Interaction|interaction.Interaction]]> | | Array.<[[InteractionNamespace#Interaction|interaction.Interaction]]> | ||
|} | |} |
Revision as of 18:48, 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 |
| ||||||
Returns | interaction.Interaction or null if the interaction doesn't exist. |
getInteractions
Signature | <static> getInteractions() → {Array.<interaction.Interaction>} |
---|---|
Description | Gets all the interactions. |
Returns | 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!