MCPcopy Create free account
hub / github.com/GetStream/stream-go2 / Get

Method Get

reactions.go:58–62  ·  view source on GitHub ↗

Get retrieves a reaction having the given id.

(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

56
57// Get retrieves a reaction having the given id.
58func (c *ReactionsClient) Get(ctx context.Context, id string) (*ReactionResponse, error) {
59 endpoint := c.client.makeEndpoint("reaction/%s/", id)
60
61 return c.decode(c.client.get(ctx, endpoint, nil, c.client.authenticator.reactionsAuth))
62}
63
64// Delete deletes a reaction having the given id.
65// The reaction is permanently deleted and cannot be restored.

Callers

nothing calls this directly

Calls 3

decodeMethod · 0.95
makeEndpointMethod · 0.80
getMethod · 0.80

Tested by

no test coverage detected