From Bright Pattern Documentation
(Created page with "<translate> =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. ==Requ...") |
(Updated via BpDeleteTranslateTags script) |
||
Line 1: | Line 1: | ||
− | + | ||
=setDIDNumber= | =setDIDNumber= | ||
Line 39: | Line 39: | ||
''null'' | ''null'' | ||
− | |||
− | |||
− |
Latest revision as of 04:01, 29 May 2024
• 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