[WIP] music platform user data scraper
teal-fm atproto
at main 668 B view raw
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package bsky 4 5// schema: app.bsky.actor.getProfile 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/xrpc" 11) 12 13// ActorGetProfile calls the XRPC method "app.bsky.actor.getProfile". 14// 15// actor: Handle or DID of account to fetch profile of. 16func ActorGetProfile(ctx context.Context, c *xrpc.Client, actor string) (*ActorDefs_ProfileViewDetailed, error) { 17 var out ActorDefs_ProfileViewDetailed 18 19 params := map[string]interface{}{ 20 "actor": actor, 21 } 22 if err := c.Do(ctx, xrpc.Query, "", "app.bsky.actor.getProfile", params, nil, &out); err != nil { 23 return nil, err 24 } 25 26 return &out, nil 27}