mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-12 19:05:12 +00:00
20 lines
419 B
Go
Executable File
20 lines
419 B
Go
Executable File
package example
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"go.m3o.com/user"
|
|
)
|
|
|
|
// Update the account password
|
|
func UpdateTheAccountPassword() {
|
|
userService := user.NewUserService(os.Getenv("M3O_API_TOKEN"))
|
|
rsp, err := userService.UpdatePassword(&user.UpdatePasswordRequest{
|
|
ConfirmPassword: "myEvenMoreSecretPass123",
|
|
NewPassword: "myEvenMoreSecretPass123",
|
|
OldPassword: "mySecretPass123",
|
|
})
|
|
fmt.Println(rsp, err)
|
|
}
|