appBskyFeedGetPosts function

Future<XRPCResponse<FeedGetPostsOutput>> appBskyFeedGetPosts({
  1. required List<AtUri> uris,
  2. required ServiceContext $ctx,
  3. Map<String, String>? $headers,
  4. Map<String, String>? $unknown,
})

Gets post views for a specified list of posts (by AT-URI). This is sometimes referred to as 'hydrating' a 'feed skeleton'.

Implementation

Future<XRPCResponse<FeedGetPostsOutput>> appBskyFeedGetPosts({
  required List<AtUri> uris,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.appBskyFeedGetPosts,
  headers: $headers,
  parameters: {...?$unknown, 'uris': uris.map((e) => e.toString()).toList()},
  to: const FeedGetPostsOutputConverter().fromJson,
);