[WIP] music platform user data scraper
teal-fm atproto
at main 1.9 kB view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package bsky 4 5// schema: app.bsky.unspecced.getSuggestionsSkeleton 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/xrpc" 11) 12 13// UnspeccedGetSuggestionsSkeleton_Output is the output of a app.bsky.unspecced.getSuggestionsSkeleton call. 14type UnspeccedGetSuggestionsSkeleton_Output struct { 15 Actors []*UnspeccedDefs_SkeletonSearchActor `json:"actors" cborgen:"actors"` 16 Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"` 17 // recId: Snowflake for this recommendation, use when submitting recommendation events. 18 RecId *int64 `json:"recId,omitempty" cborgen:"recId,omitempty"` 19 // relativeToDid: DID of the account these suggestions are relative to. If this is returned undefined, suggestions are based on the viewer. 20 RelativeToDid *string `json:"relativeToDid,omitempty" cborgen:"relativeToDid,omitempty"` 21} 22 23// UnspeccedGetSuggestionsSkeleton calls the XRPC method "app.bsky.unspecced.getSuggestionsSkeleton". 24// 25// relativeToDid: DID of the account to get suggestions relative to. If not provided, suggestions will be based on the viewer. 26// viewer: DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking. 27func UnspeccedGetSuggestionsSkeleton(ctx context.Context, c *xrpc.Client, cursor string, limit int64, relativeToDid string, viewer string) (*UnspeccedGetSuggestionsSkeleton_Output, error) { 28 var out UnspeccedGetSuggestionsSkeleton_Output 29 30 params := map[string]interface{}{ 31 "cursor": cursor, 32 "limit": limit, 33 "relativeToDid": relativeToDid, 34 "viewer": viewer, 35 } 36 if err := c.Do(ctx, xrpc.Query, "", "app.bsky.unspecced.getSuggestionsSkeleton", params, nil, &out); err != nil { 37 return nil, err 38 } 39 40 return &out, nil 41}