Files
services/examples/user/verifyEmail/go/verifyEmail.go
2021-09-21 16:36:39 +01:00

17 lines
374 B
Go
Executable File

package example
import (
"fmt"
"github.com/micro/services/clients/go/user"
"os"
)
// Verify the email address of an account from a token sent in an email to the user.
func VerifyEmail() {
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := userService.VerifyEmail(&user.VerifyEmailRequest{
Token: "t2323t232t",
})
fmt.Println(rsp, err)
}