[WIP] music platform user data scraper
teal-fm atproto
at main 1.2 kB view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package bsky 4 5// schema: app.bsky.feed.getQuotes 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/xrpc" 11) 12 13// FeedGetQuotes_Output is the output of a app.bsky.feed.getQuotes call. 14type FeedGetQuotes_Output struct { 15 Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"` 16 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 17 Posts []*FeedDefs_PostView `json:"posts" cborgen:"posts"` 18 Uri string `json:"uri" cborgen:"uri"` 19} 20 21// FeedGetQuotes calls the XRPC method "app.bsky.feed.getQuotes". 22// 23// cid: If supplied, filters to quotes of specific version (by CID) of the post record. 24// uri: Reference (AT-URI) of post record 25func FeedGetQuotes(ctx context.Context, c *xrpc.Client, cid string, cursor string, limit int64, uri string) (*FeedGetQuotes_Output, error) { 26 var out FeedGetQuotes_Output 27 28 params := map[string]interface{}{ 29 "cid": cid, 30 "cursor": cursor, 31 "limit": limit, 32 "uri": uri, 33 } 34 if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getQuotes", params, nil, &out); err != nil { 35 return nil, err 36 } 37 38 return &out, nil 39}