mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-15 04:24:44 +00:00
Commit from GitHub Actions (Generate Clients & Examples)
This commit is contained in:
@@ -3,5 +3,5 @@ curl "http://localhost:8080/user/VerifyEmail" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
"email": "joe@example.com",
|
||||
"token": "t2323t232t"
|
||||
"token": "012345"
|
||||
}'
|
||||
@@ -12,7 +12,7 @@ func VerifyEmail() {
|
||||
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
||||
rsp, err := userService.VerifyEmail(&user.VerifyEmailRequest{
|
||||
Email: "joe@example.com",
|
||||
Token: "t2323t232t",
|
||||
Token: "012345",
|
||||
})
|
||||
fmt.Println(rsp, err)
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ async function verifyEmail() {
|
||||
let userService = new UserService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await userService.verifyEmail({
|
||||
email: "joe@example.com",
|
||||
token: "t2323t232t",
|
||||
token: "012345",
|
||||
});
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user