(resp []byte, err error)
| 32 | } |
| 33 | |
| 34 | func (c *ReactionsClient) decode(resp []byte, err error) (*ReactionResponse, error) { |
| 35 | if err != nil { |
| 36 | return nil, err |
| 37 | } |
| 38 | |
| 39 | var result ReactionResponse |
| 40 | if err := json.Unmarshal(resp, &result); err != nil { |
| 41 | return nil, err |
| 42 | } |
| 43 | return &result, nil |
| 44 | } |
| 45 | |
| 46 | // Update updates the reaction's data and/or target feeds. |
| 47 | func (c *ReactionsClient) Update(ctx context.Context, id string, data map[string]any, targetFeeds []string) (*ReactionResponse, error) { |
no outgoing calls
no test coverage detected