Monorepo for Tangled
0

Configure Feed

Select the types of activity you want to include in your feed.

tangled-core / api / tangled / actorgetProfile.go
1.1 kB 38 lines
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT. 2 3package tangled 4 5// schema: sh.tangled.actor.getProfile 6 7import ( 8 "context" 9 10 "github.com/bluesky-social/indigo/lex/util" 11) 12 13const ( 14 ActorGetProfileNSID = "sh.tangled.actor.getProfile" 15) 16 17// ActorGetProfile_Output is the output of a sh.tangled.actor.getProfile call. 18type ActorGetProfile_Output struct { 19 Cid *string `json:"cid,omitempty" cborgen:"cid,omitempty"` 20 Uri string `json:"uri" cborgen:"uri"` 21 // value: Embedded sh.tangled.actor.profile record. 22 Value *util.LexiconTypeDecoder `json:"value" cborgen:"value"` 23} 24 25// ActorGetProfile calls the XRPC method "sh.tangled.actor.getProfile". 26// 27// actor: AT-URI of the sh.tangled.actor.profile record to fetch. 28func ActorGetProfile(ctx context.Context, c util.LexClient, actor string) (*ActorGetProfile_Output, error) { 29 var out ActorGetProfile_Output 30 31 params := map[string]interface{}{} 32 params["actor"] = actor 33 if err := c.LexDo(ctx, util.Query, "", "sh.tangled.actor.getProfile", params, nil, &out); err != nil { 34 return nil, err 35 } 36 37 return &out, nil 38}