From Bright Pattern Documentation
< 5.19:AgentDesktop-client-side-javascript-api-specification
Revision as of 04:01, 29 May 2024 by BpDeeplTranslateMaintenance (talk | contribs) (Updated via BpDeleteTranslateTags script)
• 5.19
setDIDNumber
Selects the direct inward dialing (DID) number for the next outgoing conversation. The DID number may be set by ID or by the number itself.
Request
Syntax
setDIDNumber(did: string | null): Promise<OperationResult<null>> |
Parameters
Parameters | Parameter Values | Data Type | Optional/Required | Description |
did | String | Required | The specific DID number you wish to set; it may be set by the DID’s ID or the by actual number itself. You may set the value to null if you would like to clear the selection. |
Example Request
setDIDNumberButton.onclick = () => {
const didPhoneNumber = didPhoneInput.value
adApi.setDIDNumber(didPhoneNumber)
}
Return Value
null