getRecord method

Future<XRPCResponse<Uint8List>> getRecord({
  1. required String did,
  2. required NSID collection,
  3. required String rkey,
  4. String? commit,
  5. Map<String, String>? $unknown,
  6. Map<String, String>? $headers,
  7. GetClient? $client,
})

Get data blocks needed to prove the existence or non-existence of record in the current version of repo. Does not require auth.

https://atprotodart.com/docs/lexicons/com/atproto/sync/getRecord

Implementation

Future<XRPCResponse<Uint8List>> getRecord({
  required String did,
  required NSID collection,
  required String rkey,
  String? commit,
  Map<String, String>? $unknown,
  Map<String, String>? $headers,
  GetClient? $client,
}) async =>
    await _ctx.get<Uint8List>(
      ns.comAtprotoSyncGetRecord,
      headers: $headers,
      parameters: {
        'did': did,
        'collection': collection.toString(),
        'rkey': rkey,
        if (commit != null) 'commit': commit,
        ...?$unknown,
      },
      client: $client,
    );