[WIP] music platform user data scraper
teal-fm atproto
at main 1.0 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.getFollows 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/xrpc" 11) 12 13// GraphGetFollows_Output is the output of a app.bsky.graph.getFollows call. 14type GraphGetFollows_Output struct { 15 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 16 Follows []*ActorDefs_ProfileView `json:"follows" cborgen:"follows"` 17 Subject *ActorDefs_ProfileView `json:"subject" cborgen:"subject"` 18} 19 20// GraphGetFollows calls the XRPC method "app.bsky.graph.getFollows". 21func GraphGetFollows(ctx context.Context, c *xrpc.Client, actor string, cursor string, limit int64) (*GraphGetFollows_Output, error) { 22 var out GraphGetFollows_Output 23 24 params := map[string]interface{}{ 25 "actor": actor, 26 "cursor": cursor, 27 "limit": limit, 28 } 29 if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getFollows", params, nil, &out); err != nil { 30 return nil, err 31 } 32 33 return &out, nil 34}