PhoneNumbersClient Class

Definition

Synchronous client for Communication service phone number operations

public final class PhoneNumbersClient
Inheritance
java.lang.Object
PhoneNumbersClient

Inherited Members

java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.toString() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int)

Methods

beginPurchasePhoneNumbers(String searchId)

Starts the purchase of the phone number(s) in the search result associated with a given id. This function returns a Long Running Operation poller that allows you to wait indefinitely until the operation is complete.

beginPurchasePhoneNumbers(String searchId, Context context)

Starts the purchase of the phone number(s) in the search result associated with a given id. This function returns a Long Running Operation poller that allows you to wait indefinitely until the operation is complete.

beginReleasePhoneNumber(String phoneNumber)

Starts the update of capabilities for a purchased phone number. This function returns a Long Running Operation poller that allows you to wait indefinitely until the operation is complete.

beginReleasePhoneNumber(String phoneNumber, Context context)

Starts the update of capabilities for a purchased phone number. This function returns a Long Running Operation poller that allows you to wait indefinitely until the operation is complete.

beginSearchAvailablePhoneNumbers(String countryCode, PhoneNumberType phoneNumberType, PhoneNumberAssignmentType assignmentType, PhoneNumberCapabilities capabilities)

Starts the search for available phone numbers to purchase. This function returns a Long Running Operation poller that allows you to wait indefinitely until the operation is complete.

beginSearchAvailablePhoneNumbers(String countryCode, PhoneNumberType phoneNumberType, PhoneNumberAssignmentType assignmentType, PhoneNumberCapabilities capabilities, PhoneNumberSearchOptions searchOptions, Context context)

Starts the search for available phone numbers to purchase. This function returns a Long Running Operation poller that allows you to wait indefinitely until the operation is complete.

beginUpdatePhoneNumberCapabilities(String phoneNumber, PhoneNumberCapabilities capabilities)

Update capabilities of a purchased phone number. This function returns a Long Running Operation poller that allows you to wait indefinitely until the operation is complete.

beginUpdatePhoneNumberCapabilities(String phoneNumber, PhoneNumberCapabilities capabilities, Context context)

Update capabilities of a purchased phone number. This function returns a Long Running Operation poller that allows you to wait indefinitely until the operation is complete.

getPurchasedPhoneNumber(String phoneNumber)

Gets information about a purchased phone number.

getPurchasedPhoneNumberWithResponse(String phoneNumber, Context context)

Gets information about a purchased phone number with response.

listPurchasedPhoneNumbers()

Gets the list of the purchased phone numbers.

listPurchasedPhoneNumbers(Context context)

Gets the list of the purchased phone numbers with context.

Applies to