getUserSettings method
Retrieves settings for the specified user ID, such as any associated phone number settings.
May throw BadRequestException.
May throw ForbiddenException.
May throw NotFoundException.
May throw ServiceFailureException.
May throw ServiceUnavailableException.
May throw ThrottledClientException.
May throw UnauthorizedClientException.
Parameter accountId :
The Amazon Chime account ID.
Parameter userId :
The user ID.
Implementation
Future<GetUserSettingsResponse> getUserSettings({
required String accountId,
required String userId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/accounts/${Uri.encodeComponent(accountId)}/users/${Uri.encodeComponent(userId)}/settings',
exceptionFnMap: _exceptionFns,
);
return GetUserSettingsResponse.fromJson(response);
}