Live video on the AT Protocol
1// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.
2
3package streamplace
4
5// schema: place.stream.server.getWebhook
6
7import (
8 "context"
9
10 "github.com/bluesky-social/indigo/lex/util"
11)
12
13// ServerGetWebhook_Output is the output of a place.stream.server.getWebhook call.
14type ServerGetWebhook_Output struct {
15 Webhook *ServerDefs_Webhook `json:"webhook" cborgen:"webhook"`
16}
17
18// ServerGetWebhook calls the XRPC method "place.stream.server.getWebhook".
19//
20// id: The ID of the webhook to retrieve.
21func ServerGetWebhook(ctx context.Context, c util.LexClient, id string) (*ServerGetWebhook_Output, error) {
22 var out ServerGetWebhook_Output
23
24 params := map[string]interface{}{}
25 params["id"] = id
26 if err := c.LexDo(ctx, util.Query, "", "place.stream.server.getWebhook", params, nil, &out); err != nil {
27 return nil, err
28 }
29
30 return &out, nil
31}