getRecord method

Future<Tuple2> getRecord(
  1. String repo,
  2. String collection,
  3. String rkey, {
  4. String? cid,
})

Implementation

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