comAtprotoRepoGetRecord function

Future<XRPCResponse<RepoGetRecordOutput>> comAtprotoRepoGetRecord({
  1. required String repo,
  2. required String collection,
  3. required String rkey,
  4. String? cid,
  5. required ServiceContext $ctx,
  6. Map<String, String>? $headers,
  7. Map<String, String>? $unknown,
})

Get a single record from a repository. Does not require auth.

Implementation

Future<XRPCResponse<RepoGetRecordOutput>> comAtprotoRepoGetRecord({
  required String repo,
  required String collection,
  required String rkey,
  String? cid,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.comAtprotoRepoGetRecord,
  headers: $headers,
  parameters: {
    ...?$unknown,
    'repo': repo,
    'collection': collection,
    'rkey': rkey,
    if (cid != null) 'cid': cid,
  },
  to: const RepoGetRecordOutputConverter().fromJson,
);