appBskyFeedGetPostThread function

Future<XRPCResponse<FeedGetPostThreadOutput>> appBskyFeedGetPostThread({
  1. required AtUri uri,
  2. int? depth,
  3. int? parentHeight,
  4. required ServiceContext $ctx,
  5. Map<String, String>? $headers,
  6. Map<String, String>? $unknown,
})

Get posts in a thread. Does not require auth, but additional metadata and filtering will be applied for authed requests.

Implementation

Future<XRPCResponse<FeedGetPostThreadOutput>> appBskyFeedGetPostThread({
  required AtUri uri,
  int? depth,
  int? parentHeight,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.appBskyFeedGetPostThread,
  headers: $headers,
  parameters: {
    ...?$unknown,
    'uri': uri.toString(),
    if (depth != null) 'depth': depth,
    if (parentHeight != null) 'parentHeight': parentHeight,
  },
  to: const FeedGetPostThreadOutputConverter().fromJson,
);