appBskyFeedGetTimeline function

Future<XRPCResponse<FeedGetTimelineOutput>> appBskyFeedGetTimeline({
  1. String? algorithm,
  2. int? limit,
  3. String? cursor,
  4. required ServiceContext $ctx,
  5. Map<String, String>? $headers,
  6. Map<String, String>? $unknown,
})

Get a view of the requesting account's home timeline. This is expected to be some form of reverse-chronological feed.

Implementation

Future<XRPCResponse<FeedGetTimelineOutput>> appBskyFeedGetTimeline({
  String? algorithm,
  int? limit,
  String? cursor,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.appBskyFeedGetTimeline,
  headers: $headers,
  parameters: {
    ...?$unknown,
    if (algorithm != null) 'algorithm': algorithm,
    if (limit != null) 'limit': limit,
    if (cursor != null) 'cursor': cursor,
  },
  to: const FeedGetTimelineOutputConverter().fromJson,
);