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,6 +2,6 @@ curl "http://localhost:8080/user/Update" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $MICRO_API_TOKEN" \
-d '{
"email": "joeotheremail@example.com",
"id": "usrid-1"
"email": "joe+2@example.com",
"id": "user-1"
}'

View File

@@ -11,8 +11,8 @@ import (
func UpdateAnAccount() {
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := userService.Update(&user.UpdateRequest{
Email: "joeotheremail@example.com",
Id: "usrid-1",
Email: "joe+2@example.com",
Id: "user-1",
})
fmt.Println(rsp, err)
}

View File

@@ -4,8 +4,8 @@ const { UserService } = require("m3o/user");
async function updateAnAccount() {
let userService = new UserService(process.env.MICRO_API_TOKEN);
let rsp = await userService.update({
email: "joeotheremail@example.com",
id: "usrid-1",
email: "joe+2@example.com",
id: "user-1",
});
console.log(rsp);
}