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:
@@ -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"
|
||||
}'
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user