Commit from GitHub Actions (Generate Clients & Examples)

This commit is contained in:
asim
2021-11-17 20:27:43 +00:00
parent 5ea297aaa8
commit 09113b41a9
36 changed files with 59 additions and 59 deletions

View File

@@ -2,5 +2,5 @@ curl "http://localhost:8080/user/Delete" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{
"id": "fdf34f34f34-f34f34-f43f43f34-f4f34f"
"id": "8b98acbe-0b6a-4d66-a414-5ffbf666786f"
}'

View File

@@ -11,7 +11,7 @@ import (
func DeleteUserAccount() {
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := userService.Delete(&user.DeleteRequest{
Id: "fdf34f34f34-f34f34-f43f43f34-f4f34f",
Id: "8b98acbe-0b6a-4d66-a414-5ffbf666786f",
})
fmt.Println(rsp, err)
}

View File

@@ -4,7 +4,7 @@ const { UserService } = require("m3o/user");
async function deleteUserAccount() {
let userService = new UserService(process.env.MICRO_API_TOKEN);
let rsp = await userService.delete({
id: "fdf34f34f34-f34f34-f43f43f34-f4f34f",
id: "8b98acbe-0b6a-4d66-a414-5ffbf666786f",
});
console.log(rsp);
}