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