mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-23 15:51:24 +00:00
Commit from GitHub Actions (Generate Clients & Examples)
This commit is contained in:
@@ -78,5 +78,5 @@
|
|||||||
"prepare": "npm run build"
|
"prepare": "npm run build"
|
||||||
},
|
},
|
||||||
"types": "index.d.ts",
|
"types": "index.d.ts",
|
||||||
"version": "1.0.689"
|
"version": "1.0.690"
|
||||||
}
|
}
|
||||||
@@ -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{}{
|
||||||
"user": "john",
|
|
||||||
"id": "1",
|
"id": "1",
|
||||||
"type": "signup",
|
"type": "signup",
|
||||||
|
"user": "john",
|
||||||
},
|
},
|
||||||
Topic: "user",
|
Topic: "user",
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -3,6 +3,6 @@ curl "http://localhost:8080/thumbnail/Screenshot" \
|
|||||||
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
-H "Authorization: Bearer $MICRO_API_TOKEN" \
|
||||||
-d '{
|
-d '{
|
||||||
"height": 600,
|
"height": 600,
|
||||||
"url": "https://m3o.com",
|
"url": "https://google.com",
|
||||||
"width": 600
|
"width": 600
|
||||||
}'
|
}'
|
||||||
@@ -12,7 +12,7 @@ func TakeScreenshotOfAurl() {
|
|||||||
thumbnailService := thumbnail.NewThumbnailService(os.Getenv("MICRO_API_TOKEN"))
|
thumbnailService := thumbnail.NewThumbnailService(os.Getenv("MICRO_API_TOKEN"))
|
||||||
rsp, err := thumbnailService.Screenshot(&thumbnail.ScreenshotRequest{
|
rsp, err := thumbnailService.Screenshot(&thumbnail.ScreenshotRequest{
|
||||||
Height: 600,
|
Height: 600,
|
||||||
Url: "https://m3o.com",
|
Url: "https://google.com",
|
||||||
Width: 600,
|
Width: 600,
|
||||||
})
|
})
|
||||||
fmt.Println(rsp, err)
|
fmt.Println(rsp, err)
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ async function takeScreenshotOfAurl() {
|
|||||||
let thumbnailService = new ThumbnailService(process.env.MICRO_API_TOKEN);
|
let thumbnailService = new ThumbnailService(process.env.MICRO_API_TOKEN);
|
||||||
let rsp = await thumbnailService.screenshot({
|
let rsp = await thumbnailService.screenshot({
|
||||||
height: 600,
|
height: 600,
|
||||||
url: "https://m3o.com",
|
url: "https://google.com",
|
||||||
width: 600,
|
width: 600,
|
||||||
});
|
});
|
||||||
console.log(rsp);
|
console.log(rsp);
|
||||||
|
|||||||
Reference in New Issue
Block a user