Files
m3o-go/examples/user/verifyEmail/verifyEmail/main.go
2021-11-03 15:36:34 +00:00

19 lines
338 B
Go
Executable File

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