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.getFeed
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/xrpc"
11)
12
13// FeedGetFeed_Output is the output of a app.bsky.feed.getFeed call.
14type FeedGetFeed_Output struct {
15 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
16 Feed []*FeedDefs_FeedViewPost `json:"feed" cborgen:"feed"`
17}
18
19// FeedGetFeed calls the XRPC method "app.bsky.feed.getFeed".
20func FeedGetFeed(ctx context.Context, c *xrpc.Client, cursor string, feed string, limit int64) (*FeedGetFeed_Output, error) {
21 var out FeedGetFeed_Output
22
23 params := map[string]interface{}{
24 "cursor": cursor,
25 "feed": feed,
26 "limit": limit,
27 }
28 if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getFeed", params, nil, &out); err != nil {
29 return nil, err
30 }
31
32 return &out, nil
33}