search method

String search(
  1. String optsJson
)

Perform a web search.

optsJson — serialized SearchCallOptions. Returns the JSON-serialized SearchResult, or throws AimuxException.

Implementation

String search(String optsJson) {
  _checkOpen();
  checkJson(optsJson, 'opts_json');
  return withUtf8(optsJson, (optsPtr) {
    return takeString(
        (out) => _ffi.search(_handle, optsPtr, out), 'search');
  });
}