listCommandAutocompleteSuggestionsWithHttpInfo method

Future<Response> listCommandAutocompleteSuggestionsWithHttpInfo(
  1. String teamId,
  2. String userInput
)

List commands' autocomplete data

List commands' autocomplete data for the team. ##### Permissions view_team for the team. Minimum server version: 5.24

Note: This method returns the HTTP Response.

Parameters:

  • String teamId (required): Team GUID

  • String userInput (required): String inputted by the user.

Implementation

Future<Response> listCommandAutocompleteSuggestionsWithHttpInfo(
  String teamId,
  String userInput,
) async {
  // ignore: prefer_const_declarations
  final path = r'/teams/{team_id}/commands/autocomplete_suggestions'.replaceAll('{team_id}', teamId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <MmQueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  queryParams.addAll(_queryParams('', 'user_input', userInput));

  const contentTypes = <String>[];

  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}