getQuickResponse method
Retrieves the quick response.
May throw AccessDeniedException.
May throw ResourceNotFoundException.
May throw UnauthorizedException.
May throw ValidationException.
Parameter knowledgeBaseId :
The identifier of the knowledge base. This should be a QUICK_RESPONSES
type knowledge base.
Parameter quickResponseId :
The identifier of the quick response.
Implementation
Future<GetQuickResponseResponse> getQuickResponse({
required String knowledgeBaseId,
required String quickResponseId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/knowledgeBases/${Uri.encodeComponent(knowledgeBaseId)}/quickResponses/${Uri.encodeComponent(quickResponseId)}',
exceptionFnMap: _exceptionFns,
);
return GetQuickResponseResponse.fromJson(response);
}