NotifyPhoneNumber - Global
-
- UpdatedJan 30, 2025
- 6 minutes to read
- Yokohama
- API reference
The NotifyPhoneNumber API allows you to query information about a Notify phone number.
Access the global NotifyPhoneNumber class and its associated methods in the
SNC
namespace.
NotifyPhoneNumber - getDialCode()
Returns the international dialing code for a Notify phone number.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | International phone code for a country. |
Example
This example shows how to obtain the dial code for a phone number.
Scoped equivalent
To use the getDialCode() method in a scoped application, use the corresponding scoped method: Scoped NotifyPhoneNumber - getDialCode().
NotifyPhoneNumber - getID()
Returns the ID of this phone number as defined by the telephony provider.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | Identifier of the number within the telephony provider. |
Example
This example shows how to obtain the unique identifier for a phone number.
Scoped equivalent
To use the getID() method in a scoped application, use the corresponding scoped method: Scoped NotifyPhoneNumber - getID().
NotifyPhoneNumber - getNumber()
Returns the numerical phone number for the current Notify caller.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | E.164-compliant phone number. |
Example
This example shows how to obtain a Notify caller's phone number.
Scoped equivalent
To use the getNumber() method in a scoped application, use the corresponding scoped method: Scoped NotifyPhoneNumber - getNumber().
NotifyPhoneNumber - getOwner()
Returns the telephony provider associated with this phone number.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | Telephony provider associated with the number: Twilio. |
Example
This example shows how to obtain the telephony provide that owns the specified phone number.
Scoped equivalent
To use the getOwner() method in a scoped application, use the corresponding scoped method: Scoped NotifyPhoneNumber - getOwner().
NotifyPhoneNumber - getTerritory()
Returns the country associated with the phone number.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | Name of the country to which the phone number belongs. |
Example
This example shows how to obtain the country of a Notify caller.
Scoped equivalent
To use the getTerritory() method in a scoped application, use the corresponding scoped method: Scoped NotifyPhoneNumber - getTerritory().
NotifyPhoneNumber - isShortCode()
Determines whether the current Notify phone number is a short code.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Boolean | Flag that indicates whether the current Notify phone number is a short code.
|
Example
This example shows how to check if the current Notify phone number is a short code.
NotifyPhoneNumber - supportsConferenceCall()
Determines if the Notify phone number supports conference calling.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Boolean | Value that indicates whether the Notify phone number supports conference
calling.
|
Example
This example shows how to determine if a Notify caller supports conference calls.
Scoped equivalent
To use the supportsConferenceCall() method in a scoped application, use the corresponding scoped method: Scoped NotifyPhoneNumber - supportsConferenceCall().
NotifyPhoneNumber - supportsIncomingPhoneCall()
Determines if the Notify phone number supports receiving phone calls.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Boolean | Value that indicates whether the Notify phone number supports incoming phone
calls.
|
Example
This example shows how to determine if a Notify caller can receive incoming phone calls.
Scoped equivalent
To use the supportsIncomingPhoneCall() method in a scoped application, use the corresponding scoped method: Scoped NotifyPhoneNumber - supportsIncomingPhoneCall().
NotifyPhoneNumber - supportsIncomingSMS()
Determines if the Notify phone number supports receiving SMS messages.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Boolean | Value that indicates whether the Notify phone number supports receiving
incoming MMS messages.
|
Example
This example shows how to determine if a Notify caller can receive incoming SMS messages.
Scoped equivalent
To use the supportsIncomingSMS() method in a scoped application, use the corresponding scoped method: Scoped NotifyPhoneNumber - supportsIncomingSMS().
NotifyPhoneNumber - supportsOutgoingPhoneCall()
Determines if the Notify phone number supports initiating phone calls.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Boolean | Value that indicates whether the Notify phone number supports initiating
outgoing phone calls.
|
Example
This example shows how to determine if a Notify caller can make outgoing phone calls.
Scoped equivalent
To use the supportsOutgoingPhoneCall() method in a scoped application, use the corresponding scoped method: Scoped NotifyPhoneNumber - supportsOutgoingPhoneCall().
NotifyPhoneNumber - supportsOutgoingSMS()
Determines if the Notify phone number supports sending SMS messages.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Boolean | Value that indicates whether the Notify phone number supports sending SMS
messages.
|
Example
This example shows how to determine if a Notify caller can initiate outgoing SMS messages.
Scoped equivalent
To use the supportsOutgoingSMS() method in a scoped application, use the corresponding scoped method: Scoped NotifyPhoneNumber - supportsOutgoingSMS().
NotifyPhoneNumber - supportsRecording()
Determines if the Notify phone number supports recording phone calls.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Boolean | Value that indicates whether the Notify phone number supports recording phone
calls.
|
Example
This example shows how to determine if a Notify caller can record calls.
Scoped equivalent
To use the supportsRecording() method in a scoped application, use the corresponding scoped method: Scoped NotifyPhoneNumber - supportsRecording().
NotifyPhoneNumber - supportsWebRTC()
Determines if the Notify phone number supports calls to a browser, such as in a WebRTC implementation.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Boolean | Value that indicates whether the Notify phone number supports calls to a
browser.
|
Example
This example shows how to determine if a Notify caller can initiate/accept browser-to-browser calls.
Scoped equivalent
To use the supportsWebRTC() method in a scoped application, use the corresponding scoped method: Scoped NotifyPhoneNumber - supportsWebRTC().
On this page
- NotifyPhoneNumber - getDialCode()
- NotifyPhoneNumber - getID()
- NotifyPhoneNumber - getNumber()
- NotifyPhoneNumber - getOwner()
- NotifyPhoneNumber - getTerritory()
- NotifyPhoneNumber - isShortCode()
- NotifyPhoneNumber - supportsConferenceCall()
- NotifyPhoneNumber - supportsIncomingPhoneCall()
- NotifyPhoneNumber - supportsIncomingSMS()
- NotifyPhoneNumber - supportsOutgoingPhoneCall()
- NotifyPhoneNumber - supportsOutgoingSMS()
- NotifyPhoneNumber - supportsRecording()
- NotifyPhoneNumber - supportsWebRTC()