Commit from GitHub Actions (Generate Clients & Examples)

This commit is contained in:
asim
2021-11-17 20:14:58 +00:00
parent cfc3372416
commit 12c2e21b1d
8 changed files with 9 additions and 3 deletions

View File

@@ -2,5 +2,6 @@ curl "http://localhost:8080/user/VerifyEmail" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{
"email": "joe@example.com",
"token": "t2323t232t"
}'

View File

@@ -11,6 +11,7 @@ import (
func VerifyEmail() {
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := userService.VerifyEmail(&user.VerifyEmailRequest{
Email: "joe@example.com",
Token: "t2323t232t",
})
fmt.Println(rsp, err)

View File

@@ -4,6 +4,7 @@ const { UserService } = require("m3o/user");
async function verifyEmail() {
let userService = new UserService(process.env.MICRO_API_TOKEN);
let rsp = await userService.verifyEmail({
email: "joe@example.com",
token: "t2323t232t",
});
console.log(rsp);