searchApiKeys method

Future<SearchResult> searchApiKeys(
  1. String userId,
  2. Map<String, dynamic> query, {
  3. int? from,
  4. int? size,
  5. String? lang,
})

Searches for a user API keys.

Implementation

Future<SearchResult> searchApiKeys(String userId, Map<String, dynamic> query,
    {int? from, int? size, String? lang}) async {
  final request = KuzzleRequest(
    controller: name,
    action: 'searchApiKeys',
    userId: userId,
    body: query,
    from: from,
    size: size,
    lang: lang,
  );

  final response = await kuzzle.query(request);
  return SearchResult(kuzzle, request: request, response: response);
}