getContactList method

Future<GetContactListResponse> getContactList({
  1. required String contactListName,
})

Returns contact list metadata. It does not return any information about the contacts present in the list.

May throw TooManyRequestsException. May throw NotFoundException. May throw BadRequestException.

Parameter contactListName : The name of the contact list.

Implementation

Future<GetContactListResponse> getContactList({
  required String contactListName,
}) async {
  ArgumentError.checkNotNull(contactListName, 'contactListName');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/v2/email/contact-lists/${Uri.encodeComponent(contactListName)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetContactListResponse.fromJson(response);
}