A fork of https://github.com/teal-fm/piper
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package bsky
4
5// schema: app.bsky.feed.getAuthorFeed
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/xrpc"
11)
12
13// FeedGetAuthorFeed_Output is the output of a app.bsky.feed.getAuthorFeed call.
14type FeedGetAuthorFeed_Output struct {
15 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
16 Feed []*FeedDefs_FeedViewPost `json:"feed" cborgen:"feed"`
17}
18
19// FeedGetAuthorFeed calls the XRPC method "app.bsky.feed.getAuthorFeed".
20//
21// filter: Combinations of post/repost types to include in response.
22func FeedGetAuthorFeed(ctx context.Context, c *xrpc.Client, actor string, cursor string, filter string, includePins bool, limit int64) (*FeedGetAuthorFeed_Output, error) {
23 var out FeedGetAuthorFeed_Output
24
25 params := map[string]interface{}{
26 "actor": actor,
27 "cursor": cursor,
28 "filter": filter,
29 "includePins": includePins,
30 "limit": limit,
31 }
32 if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getAuthorFeed", params, nil, &out); err != nil {
33 return nil, err
34 }
35
36 return &out, nil
37}