appBskyFeedSendInteractions function

Future<XRPCResponse<EmptyData>> appBskyFeedSendInteractions({
  1. required List<Interaction> interactions,
  2. required ServiceContext $ctx,
  3. Map<String, String>? $headers,
  4. Map<String, String>? $unknown,
})

Send information about interactions with feed items back to the feed generator that served them.

Implementation

Future<XRPCResponse<EmptyData>> appBskyFeedSendInteractions({
  required List<Interaction> interactions,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.post(
  ns.appBskyFeedSendInteractions,
  headers: {'Content-type': 'application/json', ...?$headers},
  body: {
    ...?$unknown,
    'interactions': interactions.map((e) => e.toJson()).toList(),
  },
);