queryLabels method
Find labels relevant to the provided AT-URI patterns. Public endpoint for moderation services, though may return different or additional results with auth.
https://atprotodart.com/docs/lexicons/com/atproto/label/queryLabels
Implementation
Future<XRPCResponse<QueryLabelsOutput>> queryLabels({
required List<String> uriPatterns,
List<String>? sources,
int? limit,
String? cursor,
Map<String, String>? $unknown,
Map<String, String>? $headers,
GetClient? $client,
}) async =>
await _ctx.get<QueryLabelsOutput>(
ns.comAtprotoLabelQueryLabels,
headers: $headers,
parameters: {
'uriPatterns': uriPatterns,
if (sources != null) 'sources': sources,
if (limit != null) 'limit': limit.toString(),
if (cursor != null) 'cursor': cursor,
...?$unknown,
},
to: const QueryLabelsOutputConverter().fromJson,
client: $client,
);