comAtprotoSpaceGetRecord function

Future<XRPCResponse<SpaceGetRecordOutput>> comAtprotoSpaceGetRecord({
  1. required String space,
  2. required String repo,
  3. required String collection,
  4. required String rkey,
  5. required ServiceContext $ctx,
  6. String? $service,
  7. Map<String, String>? $headers,
  8. Map<String, String>? $unknown,
})

Get a single record from a space repo. Responses are authenticated with a MAC. Requires auth as the repo's account or with a space credential; implemented by PDS.

Implementation

Future<XRPCResponse<SpaceGetRecordOutput>> comAtprotoSpaceGetRecord({
  required String space,
  required String repo,
  required String collection,
  required String rkey,
  required ServiceContext $ctx,
  String? $service,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.comAtprotoSpaceGetRecord,
  service: $service,
  headers: $headers,
  parameters: {
    ...?$unknown,
    'space': space,
    'repo': repo,
    'collection': collection,
    'rkey': rkey,
  },
  to: const SpaceGetRecordOutputConverter().fromJson,
);