A fork of https://github.com/teal-fm/piper
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package bsky
4
5// schema: app.bsky.actor.getProfiles
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/xrpc"
11)
12
13// ActorGetProfiles_Output is the output of a app.bsky.actor.getProfiles call.
14type ActorGetProfiles_Output struct {
15 Profiles []*ActorDefs_ProfileViewDetailed `json:"profiles" cborgen:"profiles"`
16}
17
18// ActorGetProfiles calls the XRPC method "app.bsky.actor.getProfiles".
19func ActorGetProfiles(ctx context.Context, c *xrpc.Client, actors []string) (*ActorGetProfiles_Output, error) {
20 var out ActorGetProfiles_Output
21
22 params := map[string]interface{}{
23 "actors": actors,
24 }
25 if err := c.Do(ctx, xrpc.Query, "", "app.bsky.actor.getProfiles", params, nil, &out); err != nil {
26 return nil, err
27 }
28
29 return &out, nil
30}