From Bright Pattern Documentation
(Created page with "<translate> =getDIDNumber= Gets the selected direct inward dialing (DID) number data; returns ''null'' if the selection is empty. ==Request== ''Syntax'' {| class="wikitable...") |
(No difference)
|
Revision as of 13:44, 16 September 2022
• 5.19
<translate>
getDIDNumber
Gets the selected direct inward dialing (DID) number data; returns null if the selection is empty.
Request
Syntax
getDIDNumber(): Promise<OperationResult<DIDNumber | null>> |
Where:
type DIDNumber = {
id: string number: string isSMS: boolean isVoice: boolean } |
Parameters
(None)
Example Request
getDIDNumberButton.onclick = () => {
adApi.getDIDNumber()
}
Return Value
Object | Object Values | Data Type | Optional?
(Y/N) |
Value Description |
DIDNumber | ||||
id | String | N | The service’s unique ID | |
number | String | The available DID number | ||
isSMS | Boolean | Returns true if you can initiate SMS interactions with this DID number; returns false if you cannot | ||
isVoice | Boolean | Returns true if you can initiate a voice call with this DID number; returns false if you cannot |
</translate>