// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. package bsky // schema: app.bsky.unspecced.getTrendsSkeleton import ( "context" "github.com/bluesky-social/indigo/xrpc" ) // UnspeccedGetTrendsSkeleton_Output is the output of a app.bsky.unspecced.getTrendsSkeleton call. type UnspeccedGetTrendsSkeleton_Output struct { Trends []*UnspeccedDefs_SkeletonTrend `json:"trends" cborgen:"trends"` } // UnspeccedGetTrendsSkeleton calls the XRPC method "app.bsky.unspecced.getTrendsSkeleton". // // viewer: DID of the account making the request (not included for public/unauthenticated queries). func UnspeccedGetTrendsSkeleton(ctx context.Context, c *xrpc.Client, limit int64, viewer string) (*UnspeccedGetTrendsSkeleton_Output, error) { var out UnspeccedGetTrendsSkeleton_Output params := map[string]interface{}{ "limit": limit, "viewer": viewer, } if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getTrendsSkeleton", params, nil, &out); err != nil { return nil, err } return &out, nil }