[WIP] music platform user data scraper
teal-fm atproto
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.feed.getTimeline 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/xrpc" 11) 12 13// FeedGetTimeline_Output is the output of a app.bsky.feed.getTimeline call. 14type FeedGetTimeline_Output struct { 15 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 16 Feed []*FeedDefs_FeedViewPost `json:"feed" cborgen:"feed"` 17} 18 19// FeedGetTimeline calls the XRPC method "app.bsky.feed.getTimeline". 20// 21// algorithm: Variant 'algorithm' for timeline. Implementation-specific. NOTE: most feed flexibility has been moved to feed generator mechanism. 22func FeedGetTimeline(ctx context.Context, c *xrpc.Client, algorithm string, cursor string, limit int64) (*FeedGetTimeline_Output, error) { 23 var out FeedGetTimeline_Output 24 25 params := map[string]interface{}{ 26 "algorithm": algorithm, 27 "cursor": cursor, 28 "limit": limit, 29 } 30 if err := c.Do(ctx, xrpc.Query, "", "app.bsky.feed.getTimeline", params, nil, &out); err != nil { 31 return nil, err 32 } 33 34 return &out, nil 35}