Files
m3o-go/examples/user/verifyEmail/verifyEmail.go
2021-10-29 06:38:17 +00:00

18 lines
358 B
Go
Executable File

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