-
Notifications
You must be signed in to change notification settings - Fork 89
/
actorsearchActors.go
37 lines (29 loc) · 1.11 KB
/
actorsearchActors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
package bsky
// schema: app.bsky.actor.searchActors
import (
"context"
"github.com/bluesky-social/indigo/xrpc"
)
// ActorSearchActors_Output is the output of a app.bsky.actor.searchActors call.
type ActorSearchActors_Output struct {
Actors []*ActorDefs_ProfileView `json:"actors" cborgen:"actors"`
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
}
// ActorSearchActors calls the XRPC method "app.bsky.actor.searchActors".
//
// q: Search query string. Syntax, phrase, boolean, and faceting is unspecified, but Lucene query syntax is recommended.
// term: DEPRECATED: use 'q' instead.
func ActorSearchActors(ctx context.Context, c *xrpc.Client, cursor string, limit int64, q string, term string) (*ActorSearchActors_Output, error) {
var out ActorSearchActors_Output
params := map[string]interface{}{
"cursor": cursor,
"limit": limit,
"q": q,
"term": term,
}
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.actor.searchActors", params, nil, &out); err != nil {
return nil, err
}
return &out, nil
}