getLinkedWhatsAppBusinessAccount method

Future<GetLinkedWhatsAppBusinessAccountOutput> getLinkedWhatsAppBusinessAccount({
  1. required String id,
})

Get the details of your linked WhatsApp Business Account.

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

Parameter id : The unique identifier, from Amazon Web Services, of the linked WhatsApp Business Account. WABA identifiers are formatted as waba-01234567890123456789012345678901. Use ListLinkedWhatsAppBusinessAccounts to list all WABAs and their details.

Implementation

Future<GetLinkedWhatsAppBusinessAccountOutput>
    getLinkedWhatsAppBusinessAccount({
  required String id,
}) async {
  final $query = <String, List<String>>{
    'id': [id],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/v1/whatsapp/waba/details',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return GetLinkedWhatsAppBusinessAccountOutput.fromJson(response);
}