describeContactVersion method

Future<DescribeContactVersionResponse> describeContactVersion({
  1. required String contactId,
  2. required int versionId,
})

Describes a specific version of a contact.

May throw DependencyException. May throw InvalidParameterException. May throw ResourceNotFoundException.

Parameter contactId : UUID of a contact.

Parameter versionId : Version ID of a contact.

Implementation

Future<DescribeContactVersionResponse> describeContactVersion({
  required String contactId,
  required int versionId,
}) async {
  _s.validateNumRange(
    'versionId',
    versionId,
    1,
    128,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/contact/${Uri.encodeComponent(contactId)}/versions/${Uri.encodeComponent(versionId.toString())}',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeContactVersionResponse.fromJson(response);
}