mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-14 03:54:47 +00:00
Commit from GitHub Actions (Generate Clients & Examples)
This commit is contained in:
@@ -2,5 +2,5 @@ curl "http://localhost:8080/user/ReadSession" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||
-d '{
|
||||
"sessionId": "sds34s34s34-s34s34-s43s43s34-s4s34s"
|
||||
"sessionId": "df91a612-5b24-4634-99ff-240220ab8f55"
|
||||
}'
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
func ReadAsessionByTheSessionId() {
|
||||
userService := user.NewUserService(os.Getenv("MICRO_API_TOKEN"))
|
||||
rsp, err := userService.ReadSession(&user.ReadSessionRequest{
|
||||
SessionId: "sds34s34s34-s34s34-s43s43s34-s4s34s",
|
||||
SessionId: "df91a612-5b24-4634-99ff-240220ab8f55",
|
||||
})
|
||||
fmt.Println(rsp, err)
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ const { UserService } = require("m3o/user");
|
||||
async function readAsessionByTheSessionId() {
|
||||
let userService = new UserService(process.env.MICRO_API_TOKEN);
|
||||
let rsp = await userService.readSession({
|
||||
sessionId: "sds34s34s34-s34s34-s43s43s34-s4s34s",
|
||||
sessionId: "df91a612-5b24-4634-99ff-240220ab8f55",
|
||||
});
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user