getIndices method

Future getIndices()

Implementation

Future getIndices() async {
  try {
    String _url = '${this._host}indexes';
    Response response = await get(
      Uri.parse(_url),
      headers: this._header,
    );
    print(response);
    Map<String, dynamic> body = json.decode(response.body);
    print(body);
    return AlgoliaIndexesSnapshot._(this, body);
  } catch (err) {
    return err;
  }
}