fork of indigo with slightly nicer lexgen
at main 1.1 kB view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package bsky 4 5// schema: app.bsky.graph.getFollowers 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13// GraphGetFollowers_Output is the output of a app.bsky.graph.getFollowers call. 14type GraphGetFollowers_Output struct { 15 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 16 Followers []*ActorDefs_ProfileView `json:"followers" cborgen:"followers"` 17 Subject *ActorDefs_ProfileView `json:"subject" cborgen:"subject"` 18} 19 20// GraphGetFollowers calls the XRPC method "app.bsky.graph.getFollowers". 21func GraphGetFollowers(ctx context.Context, c util.LexClient, actor string, cursor string, limit int64) (*GraphGetFollowers_Output, error) { 22 var out GraphGetFollowers_Output 23 24 params := map[string]interface{}{} 25 params["actor"] = actor 26 if cursor != "" { 27 params["cursor"] = cursor 28 } 29 if limit != 0 { 30 params["limit"] = limit 31 } 32 if err := c.LexDo(ctx, util.Query, "", "app.bsky.graph.getFollowers", params, nil, &out); err != nil { 33 return nil, err 34 } 35 36 return &out, nil 37}