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