appBskyFeedGetAuthorFeed function

Future<XRPCResponse<FeedGetAuthorFeedOutput>> appBskyFeedGetAuthorFeed({
  1. required String actor,
  2. int? limit,
  3. String? cursor,
  4. FeedGetAuthorFeedFilter? filter,
  5. bool? includePins,
  6. required ServiceContext $ctx,
  7. Map<String, String>? $headers,
  8. Map<String, String>? $unknown,
})

Get a view of an actor's 'author feed' (post and reposts by the author). Does not require auth.

Implementation

Future<XRPCResponse<FeedGetAuthorFeedOutput>> appBskyFeedGetAuthorFeed({
  required String actor,
  int? limit,
  String? cursor,
  FeedGetAuthorFeedFilter? filter,
  bool? includePins,
  required ServiceContext $ctx,
  Map<String, String>? $headers,
  Map<String, String>? $unknown,
}) async => await $ctx.get(
  ns.appBskyFeedGetAuthorFeed,
  headers: $headers,
  parameters: {
    ...?$unknown,
    'actor': actor,
    if (limit != null) 'limit': limit,
    if (cursor != null) 'cursor': cursor,
    if (filter != null) 'filter': filter.toJson(),
    if (includePins != null) 'includePins': includePins,
  },
  to: const FeedGetAuthorFeedOutputConverter().fromJson,
);