Commit from GitHub Actions (Generate Clients & Examples)

This commit is contained in:
domwong
2021-11-10 11:31:31 +00:00
parent 9394c97dc8
commit 23d6b136ea
5 changed files with 5 additions and 5 deletions

View File

@@ -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"
} }

View File

@@ -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",
}) })

View File

@@ -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
}' }'

View File

@@ -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)

View File

@@ -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);