listLinkedWhatsAppBusinessAccounts method

Future<ListLinkedWhatsAppBusinessAccountsOutput> listLinkedWhatsAppBusinessAccounts({
  1. int? maxResults,
  2. String? nextToken,
})

List all WhatsApp Business Accounts linked to your Amazon Web Services account.

May throw InternalServiceException. May throw InvalidParametersException. May throw ResourceNotFoundException. May throw ThrottledRequestException.

Parameter maxResults : The maximum number of results to return.

Parameter nextToken : The next token for pagination.

Implementation

Future<ListLinkedWhatsAppBusinessAccountsOutput>
    listLinkedWhatsAppBusinessAccounts({
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    100,
  );
  final $query = <String, List<String>>{
    if (maxResults != null) 'maxResults': [maxResults.toString()],
    if (nextToken != null) 'nextToken': [nextToken],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/v1/whatsapp/waba/list',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListLinkedWhatsAppBusinessAccountsOutput.fromJson(response);
}