getPhoneNumberSettings method

Future<GetPhoneNumberSettingsResponse> getPhoneNumberSettings()

Retrieves the phone number settings for the administrator's AWS account, such as the default outbound calling name.

May throw UnauthorizedClientException. May throw ForbiddenException. May throw BadRequestException. May throw ThrottledClientException. May throw ServiceUnavailableException. May throw ServiceFailureException.

Implementation

Future<GetPhoneNumberSettingsResponse> getPhoneNumberSettings() async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/settings/phone-number',
    exceptionFnMap: _exceptionFns,
  );
  return GetPhoneNumberSettingsResponse.fromJson(response);
}