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