$get method
Autocomplete a query.
Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers.
Throws a DynamiteApiException if the API call does not return an expected status code.
Parameters:
searchText to search for.itemTypeType of the items to search for.itemIdID of the items to search for.sortercan be piped, top prio first, e.g.: "commenters|share-recipients".shareTypesTypes of shares to search for. Defaults to[].limitMaximum number of results to return. Defaults to10.oCSAPIRequestRequired to be true for the API request to pass. Defaults totrue.
Status codes:
- 200: Autocomplete results returned
See:
- $getRaw for an experimental operation that returns a
DynamiteRawResponsethat can be serialized.
Implementation
Future<_i1.DynamiteResponse<AutoCompleteGetResponseApplicationJson, void>> $get({
required String search,
String? itemType,
String? itemId,
String? sorter,
BuiltList<int>? shareTypes,
int? limit,
bool? oCSAPIRequest,
}) async {
final rawResponse = $getRaw(
search: search,
itemType: itemType,
itemId: itemId,
sorter: sorter,
shareTypes: shareTypes,
limit: limit,
oCSAPIRequest: oCSAPIRequest,
);
return rawResponse.future;
}