1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package bsky
4
5// schema: app.bsky.unspecced.getTrends
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/xrpc"
11)
12
13// UnspeccedGetTrends_Output is the output of a app.bsky.unspecced.getTrends call.
14type UnspeccedGetTrends_Output struct {
15 Trends []*UnspeccedDefs_TrendView `json:"trends" cborgen:"trends"`
16}
17
18// UnspeccedGetTrends calls the XRPC method "app.bsky.unspecced.getTrends".
19func UnspeccedGetTrends(ctx context.Context, c *xrpc.Client, limit int64) (*UnspeccedGetTrends_Output, error) {
20 var out UnspeccedGetTrends_Output
21
22 params := map[string]interface{}{
23 "limit": limit,
24 }
25 if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getTrends", params, nil, &out); err != nil {
26 return nil, err
27 }
28
29 return &out, nil
30}