getLinkedWhatsAppBusinessAccountPhoneNumber method

Future<GetLinkedWhatsAppBusinessAccountPhoneNumberOutput> getLinkedWhatsAppBusinessAccountPhoneNumber({
  1. required String id,
})

Retrieve the WABA account id and phone number details of a WhatsApp business account phone number.

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

Parameter id : The unique identifier of the phone number. Phone number identifiers are formatted as phone-number-id-01234567890123456789012345678901. Use GetLinkedWhatsAppBusinessAccount to find a phone number's id.

Implementation

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