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