From Bright Pattern Documentation
• 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