getContactAttributes method

Future<GetContactAttributesResponse> getContactAttributes({
  1. required String initialContactId,
  2. required String instanceId,
})

Retrieves the contact attributes for the specified contact.

May throw InternalServiceException. May throw InvalidRequestException. May throw ResourceNotFoundException.

Parameter initialContactId : The identifier of the initial contact.

Parameter instanceId : The identifier of the Connect Customer instance.

Implementation

Future<GetContactAttributesResponse> getContactAttributes({
  required String initialContactId,
  required String instanceId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/contact/attributes/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(initialContactId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetContactAttributesResponse.fromJson(response);
}