comAtprotoAdminGetInviteCodes function
Get an admin view of invite codes.
Implementation
Future<XRPCResponse<AdminGetInviteCodesOutput>> comAtprotoAdminGetInviteCodes({
AdminGetInviteCodesSort? sort,
int? limit,
String? cursor,
required ServiceContext $ctx,
String? $service,
Map<String, String>? $headers,
Map<String, String>? $unknown,
}) async => await $ctx.get(
ns.comAtprotoAdminGetInviteCodes,
service: $service,
headers: $headers,
parameters: {
...?$unknown,
if (sort != null) 'sort': sort.toJson(),
if (limit != null) 'limit': limit,
if (cursor != null) 'cursor': cursor,
},
to: const AdminGetInviteCodesOutputConverter().fromJson,
);