()
| 140 | } |
| 141 | |
| 142 | func (p GroupRequest) asRequestOption() RequestOption { |
| 143 | return func(r *http.Request) { |
| 144 | q := r.URL.Query() |
| 145 | if p.ExcludeMembers { |
| 146 | q.Set("exclude_members", "true") |
| 147 | } |
| 148 | r.URL.RawQuery = q.Encode() |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | func (c *Client) Group(ctx context.Context, group uuid.UUID, req GroupRequest) (Group, error) { |
| 153 | res, err := c.Request(ctx, http.MethodGet, |
no test coverage detected