fork of indigo with slightly nicer lexgen
at main 844 B view raw
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/lex/util" 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 util.LexClient, limit int64) (*UnspeccedGetTrends_Output, error) { 20 var out UnspeccedGetTrends_Output 21 22 params := map[string]interface{}{} 23 if limit != 0 { 24 params["limit"] = limit 25 } 26 if err := c.LexDo(ctx, util.Query, "", "app.bsky.unspecced.getTrends", params, nil, &out); err != nil { 27 return nil, err 28 } 29 30 return &out, nil 31}