mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-21 15:05:01 +00:00
Commit from GitHub Actions (Generate Clients & Examples)
This commit is contained in:
@@ -79,5 +79,5 @@
|
|||||||
"prepare": "npm run build"
|
"prepare": "npm run build"
|
||||||
},
|
},
|
||||||
"types": "index.d.ts",
|
"types": "index.d.ts",
|
||||||
"version": "1.0.767"
|
"version": "1.0.769"
|
||||||
}
|
}
|
||||||
@@ -12,9 +12,9 @@ func PublishAnEvent() {
|
|||||||
eventService := event.NewEventService(os.Getenv("MICRO_API_TOKEN"))
|
eventService := event.NewEventService(os.Getenv("MICRO_API_TOKEN"))
|
||||||
rsp, err := eventService.Publish(&event.PublishRequest{
|
rsp, err := eventService.Publish(&event.PublishRequest{
|
||||||
Message: map[string]interface{}{
|
Message: map[string]interface{}{
|
||||||
"id": "1",
|
|
||||||
"type": "signup",
|
"type": "signup",
|
||||||
"user": "john",
|
"user": "john",
|
||||||
|
"id": "1",
|
||||||
},
|
},
|
||||||
Topic: "user",
|
Topic: "user",
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ func PublishAmessage() {
|
|||||||
mqService := mq.NewMqService(os.Getenv("MICRO_API_TOKEN"))
|
mqService := mq.NewMqService(os.Getenv("MICRO_API_TOKEN"))
|
||||||
rsp, err := mqService.Publish(&mq.PublishRequest{
|
rsp, err := mqService.Publish(&mq.PublishRequest{
|
||||||
Message: map[string]interface{}{
|
Message: map[string]interface{}{
|
||||||
|
"id": "1",
|
||||||
"type": "signup",
|
"type": "signup",
|
||||||
"user": "john",
|
"user": "john",
|
||||||
"id": "1",
|
|
||||||
},
|
},
|
||||||
Topic: "events",
|
Topic: "events",
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ curl "http://localhost:8080/user/Create" \
|
|||||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||||
-d '{
|
-d '{
|
||||||
"email": "joe@example.com",
|
"email": "joe@example.com",
|
||||||
"id": "usrid-1",
|
"id": "user-1",
|
||||||
"password": "mySecretPass123",
|
"password": "Password1",
|
||||||
"username": "usrname-1"
|
"username": "joe"
|
||||||
}'
|
}'
|
||||||
@@ -12,9 +12,9 @@ func CreateAnAccount() {
|
|||||||
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
||||||
rsp, err := userService.Create(&user.CreateRequest{
|
rsp, err := userService.Create(&user.CreateRequest{
|
||||||
Email: "joe@example.com",
|
Email: "joe@example.com",
|
||||||
Id: "usrid-1",
|
Id: "user-1",
|
||||||
Password: "mySecretPass123",
|
Password: "Password1",
|
||||||
Username: "usrname-1",
|
Username: "joe",
|
||||||
})
|
})
|
||||||
fmt.Println(rsp, err)
|
fmt.Println(rsp, err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ async function createAnAccount() {
|
|||||||
let userService = new UserService(process.env.MICRO_API_TOKEN);
|
let userService = new UserService(process.env.MICRO_API_TOKEN);
|
||||||
let rsp = await userService.create({
|
let rsp = await userService.create({
|
||||||
email: "joe@example.com",
|
email: "joe@example.com",
|
||||||
id: "usrid-1",
|
id: "user-1",
|
||||||
password: "mySecretPass123",
|
password: "Password1",
|
||||||
username: "usrname-1",
|
username: "joe",
|
||||||
});
|
});
|
||||||
console.log(rsp);
|
console.log(rsp);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@ curl "http://localhost:8080/user/Delete" \
|
|||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||||
-d '{
|
-d '{
|
||||||
"id": "fdf34f34f34-f34f34-f43f43f34-f4f34f"
|
"id": "8b98acbe-0b6a-4d66-a414-5ffbf666786f"
|
||||||
}'
|
}'
|
||||||
@@ -11,7 +11,7 @@ import (
|
|||||||
func DeleteUserAccount() {
|
func DeleteUserAccount() {
|
||||||
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
||||||
rsp, err := userService.Delete(&user.DeleteRequest{
|
rsp, err := userService.Delete(&user.DeleteRequest{
|
||||||
Id: "fdf34f34f34-f34f34-f43f43f34-f4f34f",
|
Id: "8b98acbe-0b6a-4d66-a414-5ffbf666786f",
|
||||||
})
|
})
|
||||||
fmt.Println(rsp, err)
|
fmt.Println(rsp, err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ const { UserService } = require("m3o/user");
|
|||||||
async function deleteUserAccount() {
|
async function deleteUserAccount() {
|
||||||
let userService = new UserService(process.env.MICRO_API_TOKEN);
|
let userService = new UserService(process.env.MICRO_API_TOKEN);
|
||||||
let rsp = await userService.delete({
|
let rsp = await userService.delete({
|
||||||
id: "fdf34f34f34-f34f34-f43f43f34-f4f34f",
|
id: "8b98acbe-0b6a-4d66-a414-5ffbf666786f",
|
||||||
});
|
});
|
||||||
console.log(rsp);
|
console.log(rsp);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,5 +3,5 @@ curl "http://localhost:8080/user/Login" \
|
|||||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||||
-d '{
|
-d '{
|
||||||
"email": "joe@example.com",
|
"email": "joe@example.com",
|
||||||
"password": "mySecretPass123"
|
"password": "Password1"
|
||||||
}'
|
}'
|
||||||
@@ -13,7 +13,7 @@ func LogAuserIn() {
|
|||||||
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
||||||
rsp, err := userService.Login(&user.LoginRequest{
|
rsp, err := userService.Login(&user.LoginRequest{
|
||||||
Email: "joe@example.com",
|
Email: "joe@example.com",
|
||||||
Password: "mySecretPass123",
|
Password: "Password1",
|
||||||
})
|
})
|
||||||
fmt.Println(rsp, err)
|
fmt.Println(rsp, err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ async function logAuserIn() {
|
|||||||
let userService = new UserService(process.env.MICRO_API_TOKEN);
|
let userService = new UserService(process.env.MICRO_API_TOKEN);
|
||||||
let rsp = await userService.login({
|
let rsp = await userService.login({
|
||||||
email: "joe@example.com",
|
email: "joe@example.com",
|
||||||
password: "mySecretPass123",
|
password: "Password1",
|
||||||
});
|
});
|
||||||
console.log(rsp);
|
console.log(rsp);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@ curl "http://localhost:8080/user/Logout" \
|
|||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||||
-d '{
|
-d '{
|
||||||
"sessionId": "sds34s34s34-s34s34-s43s43s34-s4s34s"
|
"sessionId": "df91a612-5b24-4634-99ff-240220ab8f55"
|
||||||
}'
|
}'
|
||||||
@@ -11,7 +11,7 @@ import (
|
|||||||
func LogAuserOut() {
|
func LogAuserOut() {
|
||||||
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
||||||
rsp, err := userService.Logout(&user.LogoutRequest{
|
rsp, err := userService.Logout(&user.LogoutRequest{
|
||||||
SessionId: "sds34s34s34-s34s34-s43s43s34-s4s34s",
|
SessionId: "df91a612-5b24-4634-99ff-240220ab8f55",
|
||||||
})
|
})
|
||||||
fmt.Println(rsp, err)
|
fmt.Println(rsp, err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ const { UserService } = require("m3o/user");
|
|||||||
async function logAuserOut() {
|
async function logAuserOut() {
|
||||||
let userService = new UserService(process.env.MICRO_API_TOKEN);
|
let userService = new UserService(process.env.MICRO_API_TOKEN);
|
||||||
let rsp = await userService.logout({
|
let rsp = await userService.logout({
|
||||||
sessionId: "sds34s34s34-s34s34-s43s43s34-s4s34s",
|
sessionId: "df91a612-5b24-4634-99ff-240220ab8f55",
|
||||||
});
|
});
|
||||||
console.log(rsp);
|
console.log(rsp);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@ curl "http://localhost:8080/user/Read" \
|
|||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||||
-d '{
|
-d '{
|
||||||
"username": "usrname-1"
|
"username": "joe"
|
||||||
}'
|
}'
|
||||||
@@ -2,5 +2,5 @@ curl "http://localhost:8080/user/Read" \
|
|||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||||
-d '{
|
-d '{
|
||||||
"id": "usrid-1"
|
"id": "user-1"
|
||||||
}'
|
}'
|
||||||
@@ -11,7 +11,7 @@ import (
|
|||||||
func ReadAccountByUsernameOrEmail() {
|
func ReadAccountByUsernameOrEmail() {
|
||||||
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
||||||
rsp, err := userService.Read(&user.ReadRequest{
|
rsp, err := userService.Read(&user.ReadRequest{
|
||||||
Username: "usrname-1",
|
Username: "joe",
|
||||||
})
|
})
|
||||||
fmt.Println(rsp, err)
|
fmt.Println(rsp, err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import (
|
|||||||
func ReadAnAccountById() {
|
func ReadAnAccountById() {
|
||||||
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
||||||
rsp, err := userService.Read(&user.ReadRequest{
|
rsp, err := userService.Read(&user.ReadRequest{
|
||||||
Id: "usrid-1",
|
Id: "user-1",
|
||||||
})
|
})
|
||||||
fmt.Println(rsp, err)
|
fmt.Println(rsp, err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ const { UserService } = require("m3o/user");
|
|||||||
async function readAccountByUsernameOrEmail() {
|
async function readAccountByUsernameOrEmail() {
|
||||||
let userService = new UserService(process.env.MICRO_API_TOKEN);
|
let userService = new UserService(process.env.MICRO_API_TOKEN);
|
||||||
let rsp = await userService.read({
|
let rsp = await userService.read({
|
||||||
username: "usrname-1",
|
username: "joe",
|
||||||
});
|
});
|
||||||
console.log(rsp);
|
console.log(rsp);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ const { UserService } = require("m3o/user");
|
|||||||
async function readAnAccountById() {
|
async function readAnAccountById() {
|
||||||
let userService = new UserService(process.env.MICRO_API_TOKEN);
|
let userService = new UserService(process.env.MICRO_API_TOKEN);
|
||||||
let rsp = await userService.read({
|
let rsp = await userService.read({
|
||||||
id: "usrid-1",
|
id: "user-1",
|
||||||
});
|
});
|
||||||
console.log(rsp);
|
console.log(rsp);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,5 +2,5 @@ curl "http://localhost:8080/user/ReadSession" \
|
|||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||||
-d '{
|
-d '{
|
||||||
"sessionId": "sds34s34s34-s34s34-s43s43s34-s4s34s"
|
"sessionId": "df91a612-5b24-4634-99ff-240220ab8f55"
|
||||||
}'
|
}'
|
||||||
@@ -11,7 +11,7 @@ import (
|
|||||||
func ReadAsessionByTheSessionId() {
|
func ReadAsessionByTheSessionId() {
|
||||||
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
||||||
rsp, err := userService.ReadSession(&user.ReadSessionRequest{
|
rsp, err := userService.ReadSession(&user.ReadSessionRequest{
|
||||||
SessionId: "sds34s34s34-s34s34-s43s43s34-s4s34s",
|
SessionId: "df91a612-5b24-4634-99ff-240220ab8f55",
|
||||||
})
|
})
|
||||||
fmt.Println(rsp, err)
|
fmt.Println(rsp, err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ const { UserService } = require("m3o/user");
|
|||||||
async function readAsessionByTheSessionId() {
|
async function readAsessionByTheSessionId() {
|
||||||
let userService = new UserService(process.env.MICRO_API_TOKEN);
|
let userService = new UserService(process.env.MICRO_API_TOKEN);
|
||||||
let rsp = await userService.readSession({
|
let rsp = await userService.readSession({
|
||||||
sessionId: "sds34s34s34-s34s34-s43s43s34-s4s34s",
|
sessionId: "df91a612-5b24-4634-99ff-240220ab8f55",
|
||||||
});
|
});
|
||||||
console.log(rsp);
|
console.log(rsp);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ curl "http://localhost:8080/user/ResetPassword" \
|
|||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||||
-d '{
|
-d '{
|
||||||
"code": "some-code-from-email",
|
"code": "012345",
|
||||||
"confirmPassword": "newpass123",
|
"confirmPassword": "NewPassword1",
|
||||||
"email": "joe@example.com",
|
"email": "joe@example.com",
|
||||||
"newPassword": "newpass123"
|
"newPassword": "NewPassword1"
|
||||||
}'
|
}'
|
||||||
@@ -11,10 +11,10 @@ import (
|
|||||||
func ResetPassword() {
|
func ResetPassword() {
|
||||||
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
||||||
rsp, err := userService.ResetPassword(&user.ResetPasswordRequest{
|
rsp, err := userService.ResetPassword(&user.ResetPasswordRequest{
|
||||||
Code: "some-code-from-email",
|
Code: "012345",
|
||||||
ConfirmPassword: "newpass123",
|
ConfirmPassword: "NewPassword1",
|
||||||
Email: "joe@example.com",
|
Email: "joe@example.com",
|
||||||
NewPassword: "newpass123",
|
NewPassword: "NewPassword1",
|
||||||
})
|
})
|
||||||
fmt.Println(rsp, err)
|
fmt.Println(rsp, err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ const { UserService } = require("m3o/user");
|
|||||||
async function resetPassword() {
|
async function resetPassword() {
|
||||||
let userService = new UserService(process.env.MICRO_API_TOKEN);
|
let userService = new UserService(process.env.MICRO_API_TOKEN);
|
||||||
let rsp = await userService.resetPassword({
|
let rsp = await userService.resetPassword({
|
||||||
code: "some-code-from-email",
|
code: "012345",
|
||||||
confirmPassword: "newpass123",
|
confirmPassword: "NewPassword1",
|
||||||
email: "joe@example.com",
|
email: "joe@example.com",
|
||||||
newPassword: "newpass123",
|
newPassword: "NewPassword1",
|
||||||
});
|
});
|
||||||
console.log(rsp);
|
console.log(rsp);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,6 @@ curl "http://localhost:8080/user/Update" \
|
|||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||||
-d '{
|
-d '{
|
||||||
"email": "joeotheremail@example.com",
|
"email": "joe+2@example.com",
|
||||||
"id": "usrid-1"
|
"id": "user-1"
|
||||||
}'
|
}'
|
||||||
@@ -11,8 +11,8 @@ import (
|
|||||||
func UpdateAnAccount() {
|
func UpdateAnAccount() {
|
||||||
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
||||||
rsp, err := userService.Update(&user.UpdateRequest{
|
rsp, err := userService.Update(&user.UpdateRequest{
|
||||||
Email: "joeotheremail@example.com",
|
Email: "joe+2@example.com",
|
||||||
Id: "usrid-1",
|
Id: "user-1",
|
||||||
})
|
})
|
||||||
fmt.Println(rsp, err)
|
fmt.Println(rsp, err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ const { UserService } = require("m3o/user");
|
|||||||
async function updateAnAccount() {
|
async function updateAnAccount() {
|
||||||
let userService = new UserService(process.env.MICRO_API_TOKEN);
|
let userService = new UserService(process.env.MICRO_API_TOKEN);
|
||||||
let rsp = await userService.update({
|
let rsp = await userService.update({
|
||||||
email: "joeotheremail@example.com",
|
email: "joe+2@example.com",
|
||||||
id: "usrid-1",
|
id: "user-1",
|
||||||
});
|
});
|
||||||
console.log(rsp);
|
console.log(rsp);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ curl "http://localhost:8080/user/UpdatePassword" \
|
|||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||||
-d '{
|
-d '{
|
||||||
"confirmPassword": "myEvenMoreSecretPass123",
|
"confirmPassword": "Password2",
|
||||||
"id": "usrid-1",
|
"id": "user-1",
|
||||||
"newPassword": "myEvenMoreSecretPass123",
|
"newPassword": "Password2",
|
||||||
"oldPassword": "mySecretPass123"
|
"oldPassword": "Password1"
|
||||||
}'
|
}'
|
||||||
@@ -11,9 +11,9 @@ import (
|
|||||||
func UpdateTheAccountPassword() {
|
func UpdateTheAccountPassword() {
|
||||||
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
||||||
rsp, err := userService.UpdatePassword(&user.UpdatePasswordRequest{
|
rsp, err := userService.UpdatePassword(&user.UpdatePasswordRequest{
|
||||||
ConfirmPassword: "myEvenMoreSecretPass123",
|
ConfirmPassword: "Password2",
|
||||||
NewPassword: "myEvenMoreSecretPass123",
|
NewPassword: "Password2",
|
||||||
OldPassword: "mySecretPass123",
|
OldPassword: "Password1",
|
||||||
})
|
})
|
||||||
fmt.Println(rsp, err)
|
fmt.Println(rsp, err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ const { UserService } = require("m3o/user");
|
|||||||
async function updateTheAccountPassword() {
|
async function updateTheAccountPassword() {
|
||||||
let userService = new UserService(process.env.MICRO_API_TOKEN);
|
let userService = new UserService(process.env.MICRO_API_TOKEN);
|
||||||
let rsp = await userService.updatePassword({
|
let rsp = await userService.updatePassword({
|
||||||
confirmPassword: "myEvenMoreSecretPass123",
|
confirmPassword: "Password2",
|
||||||
id: "usrid-1",
|
id: "user-1",
|
||||||
newPassword: "myEvenMoreSecretPass123",
|
newPassword: "Password2",
|
||||||
oldPassword: "mySecretPass123",
|
oldPassword: "Password1",
|
||||||
});
|
});
|
||||||
console.log(rsp);
|
console.log(rsp);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,5 +3,5 @@ curl "http://localhost:8080/user/VerifyEmail" \
|
|||||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||||
-d '{
|
-d '{
|
||||||
"email": "joe@example.com",
|
"email": "joe@example.com",
|
||||||
"token": "t2323t232t"
|
"token": "012345"
|
||||||
}'
|
}'
|
||||||
@@ -12,7 +12,7 @@ func VerifyEmail() {
|
|||||||
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
||||||
rsp, err := userService.VerifyEmail(&user.VerifyEmailRequest{
|
rsp, err := userService.VerifyEmail(&user.VerifyEmailRequest{
|
||||||
Email: "joe@example.com",
|
Email: "joe@example.com",
|
||||||
Token: "t2323t232t",
|
Token: "012345",
|
||||||
})
|
})
|
||||||
fmt.Println(rsp, err)
|
fmt.Println(rsp, err)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ async function verifyEmail() {
|
|||||||
let userService = new UserService(process.env.MICRO_API_TOKEN);
|
let userService = new UserService(process.env.MICRO_API_TOKEN);
|
||||||
let rsp = await userService.verifyEmail({
|
let rsp = await userService.verifyEmail({
|
||||||
email: "joe@example.com",
|
email: "joe@example.com",
|
||||||
token: "t2323t232t",
|
token: "012345",
|
||||||
});
|
});
|
||||||
console.log(rsp);
|
console.log(rsp);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user