listRecords method

Future<Tuple2> listRecords(
  1. String collection,
  2. String repo, {
  3. int? limit,
  4. String? cursor,
  5. bool? reverse,
})

Implementation

Future<Tuple2> listRecords(String collection, String repo,
    {int? limit, String? cursor, bool? reverse}) async {
  http.Response res =
      await api.get("com.atproto.server.listRecords", params: {
    "collection": collection,
    "repo": repo,
    "limit": limit,
    "cursor": cursor,
    "reverse": reverse
  }, headers: {
    "Authorization": "Bearer ${api.session.accessJwt}"
  });
  return Tuple2<int, Map<String, dynamic>>(
      res.statusCode, json.decode(res.body));
}