getRecord method
Get a single record from a repository. Does not require auth.
https://atprotodart.com/docs/lexicons/com/atproto/repo/getRecord
Implementation
Future<XRPCResponse<GetRecordOutput>> getRecord({
String? repo,
required NSID collection,
required String rkey,
String? cid,
Map<String, String>? $unknown,
Map<String, String>? $headers,
GetClient? $client,
}) async =>
await _ctx.get<GetRecordOutput>(
ns.comAtprotoRepoGetRecord,
headers: $headers,
parameters: {
'repo': repo ?? _ctx.repo,
'collection': collection.toString(),
'rkey': rkey,
if (cid != null) 'cid': cid,
...?$unknown,
},
to: const GetRecordOutputConverter().fromJson,
client: $client,
);