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"
},
"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"))
rsp, err := eventService.Publish(&event.PublishRequest{
Message: map[string]interface{}{
"user": "john",
"id": "1",
"type": "signup",
"user": "john",
},
Topic: "user",
})

View File

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

View File

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

View File

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