harture
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
users.go
|
|
|
@ -160,3 +160,8 @@ func (c *Client) UpdateAccount(accessToken string, realm string, user UserRepres |
|
|
|
_, err := c.post(accessToken, nil, url.Path(accountPath), url.Param("realm", realm), body.JSON(user)) |
|
|
|
return err |
|
|
|
} |
|
|
|
|
|
|
|
// DeleteAccount delete current user
|
|
|
|
func (c *Client) DeleteAccount(accessToken string, realmName string) error { |
|
|
|
return c.delete(accessToken, url.Path(accountPath), url.Param("realm", realmName), headers.Set("Accept", "application/json")) |
|
|
|
} |
|
|
|
|