Get retrieves a user having the given id.
(ctx context.Context, id string)
| 42 | |
| 43 | // Get retrieves a user having the given id. |
| 44 | func (c *UsersClient) Get(ctx context.Context, id string) (*UserResponse, error) { |
| 45 | endpoint := c.client.makeEndpoint("user/%s/", id) |
| 46 | |
| 47 | return c.decode(c.client.get(ctx, endpoint, nil, c.client.authenticator.usersAuth)) |
| 48 | } |
| 49 | |
| 50 | // Delete deletes a user having the given id. |
| 51 | func (c *UsersClient) Delete(ctx context.Context, id string) (*BaseResponse, error) { |