A fork of https://github.com/teal-fm/piper
at main 36 lines 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.getList 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/xrpc" 11) 12 13// GraphGetList_Output is the output of a app.bsky.graph.getList call. 14type GraphGetList_Output struct { 15 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 16 Items []*GraphDefs_ListItemView `json:"items" cborgen:"items"` 17 List *GraphDefs_ListView `json:"list" cborgen:"list"` 18} 19 20// GraphGetList calls the XRPC method "app.bsky.graph.getList". 21// 22// list: Reference (AT-URI) of the list record to hydrate. 23func GraphGetList(ctx context.Context, c *xrpc.Client, cursor string, limit int64, list string) (*GraphGetList_Output, error) { 24 var out GraphGetList_Output 25 26 params := map[string]interface{}{ 27 "cursor": cursor, 28 "limit": limit, 29 "list": list, 30 } 31 if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getList", params, nil, &out); err != nil { 32 return nil, err 33 } 34 35 return &out, nil 36}