appBskyFeedGetLikes function

Future<XRPCResponse<FeedGetLikesOutput>> appBskyFeedGetLikes({
  1. required AtUri uri,
  2. String? cid,
  3. int? limit,
  4. String? cursor,
  5. required ServiceContext $ctx,
  6. Map<String, String>? $headers,
  7. Map<String, String>? $unknown,
})

Get like records which reference a subject (by AT-URI and CID).

Implementation

Future<XRPCResponse<FeedGetLikesOutput>> appBskyFeedGetLikes({
  required AtUri uri,
  String? cid,
  int? limit,
  String? cursor,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.appBskyFeedGetLikes,
  headers: $headers,
  parameters: {
    ...?$unknown,
    'uri': uri.toString(),
    if (cid != null) 'cid': cid,
    if (limit != null) 'limit': limit,
    if (cursor != null) 'cursor': cursor,
  },
  to: const FeedGetLikesOutputConverter().fromJson,
);