Created
February 8, 2022 11:16
-
-
Save asim/1a4fdbebc87651f916caf0ed3c0960bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"os" | |
"go.m3o.com/user" | |
) | |
// Create a new user account. The email address and username for the account must be unique. | |
func main() { | |
userService := user.NewUserService(os.Getenv("M3O_API_TOKEN")) | |
rsp, err := userService.Create(&user.CreateRequest{ | |
Email: "joe@example.com", | |
Id: "user-1", | |
Password: "Password1", | |
Username: "joe", | |
}) | |
fmt.Println(rsp, err) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment