(→Methods) |
|||
Line 3: | Line 3: | ||
==Methods== | ==Methods== | ||
The Interaction namespace includes the following methods: | The Interaction namespace includes the following methods: | ||
− | |||
* [[InteractionNamespace#deleteUserData|deleteUserData]] | * [[InteractionNamespace#deleteUserData|deleteUserData]] | ||
* [[InteractionNamespace#getByInteractionId|getByInteractionId]] | * [[InteractionNamespace#getByInteractionId|getByInteractionId]] | ||
* [[InteractionNamespace#getInteractions|getInteractions]] | * [[InteractionNamespace#getInteractions|getInteractions]] | ||
− | * [[InteractionNamespace# | + | * [[InteractionNamespace#setUserData|setUserData]] |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
===deleteUserData=== | ===deleteUserData=== | ||
Line 95: | Line 69: | ||
|} | |} | ||
− | === | + | ===setUserData=== |
{| | {| | ||
! Signature | ! Signature | ||
− | | <static> | + | | <static> setUserData(''interactionId'', ''keyValues'') |
|- | |- | ||
! Description | ! Description | ||
− | | | + | | Sets the user data on the live interaction (for voice, this means the interaction is not in the IDLE state). This request overwrites any existing keys on the user data. |
|- | |- | ||
! Parameters | ! Parameters |
Revision as of 12:54, July 29, 2015
Interaction Namespace
Methods
The Interaction namespace includes the following methods:
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> |
setUserData
Signature | <static> setUserData(interactionId, keyValues) | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
Description | Sets the user data on the live interaction (for voice, this means the interaction is not in the IDLE state). This request overwrites any existing keys on the user data. | |||||||||
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!