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/lex/util"
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 util.LexClient, limit int64, viewer string) (*UnspeccedGetTrendsSkeleton_Output, error) {
22 var out UnspeccedGetTrendsSkeleton_Output
23
24 params := map[string]interface{}{}
25 if limit != 0 {
26 params["limit"] = limit
27 }
28 if viewer != "" {
29 params["viewer"] = viewer
30 }
31 if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getTrendsSkeleton", params, nil, &out); err != nil {
32 return nil, err
33 }
34
35 return &out, nil
36}