this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at DavidBuchanan314/oauth-docs 29 lines 852 B view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package bsky 4 5// schema: app.bsky.feed.getFeedGenerators 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13// FeedGetFeedGenerators_Output is the output of a app.bsky.feed.getFeedGenerators call. 14type FeedGetFeedGenerators_Output struct { 15 Feeds []*FeedDefs_GeneratorView `json:"feeds" cborgen:"feeds"` 16} 17 18// FeedGetFeedGenerators calls the XRPC method "app.bsky.feed.getFeedGenerators". 19func FeedGetFeedGenerators(ctx context.Context, c util.LexClient, feeds []string) (*FeedGetFeedGenerators_Output, error) { 20 var out FeedGetFeedGenerators_Output 21 22 params := map[string]interface{}{} 23 params["feeds"] = feeds 24 if err := c.LexDo(ctx, util.Query, "", "app.bsky.feed.getFeedGenerators", params, nil, &out); err != nil { 25 return nil, err 26 } 27 28 return &out, nil 29}