Files
m3o-go/examples/user/updatePassword/updateTheAccountPassword/main.go
2021-12-09 15:06:12 +00:00

20 lines
362 B
Go
Executable File

package main
import (
"fmt"
"os"
"go.m3o.com/user"
)
// Update the account password
func main() {
userService := user.NewUserService(os.Getenv("M3O_API_TOKEN"))
rsp, err := userService.UpdatePassword(&user.UpdatePasswordRequest{
ConfirmPassword: "Password2",
NewPassword: "Password2",
OldPassword: "Password1",
})
fmt.Println(rsp, err)
}