-
Notifications
You must be signed in to change notification settings - Fork 89
/
graphgetFollowers.go
34 lines (26 loc) · 1.01 KB
/
graphgetFollowers.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
// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
package bsky
// schema: app.bsky.graph.getFollowers
import (
"context"
"github.com/bluesky-social/indigo/xrpc"
)
// GraphGetFollowers_Output is the output of a app.bsky.graph.getFollowers call.
type GraphGetFollowers_Output struct {
Cursor *string `json:"cursor,omitempty" cborgen:"cursor,omitempty"`
Followers []*ActorDefs_ProfileView `json:"followers" cborgen:"followers"`
Subject *ActorDefs_ProfileView `json:"subject" cborgen:"subject"`
}
// GraphGetFollowers calls the XRPC method "app.bsky.graph.getFollowers".
func GraphGetFollowers(ctx context.Context, c *xrpc.Client, actor string, cursor string, limit int64) (*GraphGetFollowers_Output, error) {
var out GraphGetFollowers_Output
params := map[string]interface{}{
"actor": actor,
"cursor": cursor,
"limit": limit,
}
if err := c.Do(ctx, xrpc.Query, "", "app.bsky.graph.getFollowers", params, nil, &out); err != nil {
return nil, err
}
return &out, nil
}