Minor fixes for evchargers (#220)

This commit is contained in:
Dominic Wong
2021-10-02 00:00:54 +01:00
committed by GitHub
parent 6c2579b0fd
commit 684d5aa041
10 changed files with 265 additions and 239 deletions

View File

@@ -6,7 +6,7 @@ import (
"os"
)
// Retrieve reference data as used by this API
// Retrieve reference data as used by this API and in conjunction with the Search endpoint
func GetReferenceData() {
evchargersService := evchargers.NewEvchargersService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := evchargersService.ReferenceData(&evchargers.ReferenceDataRequest{})

View File

@@ -1,6 +1,6 @@
import * as evchargers from "m3o/evchargers";
// Retrieve reference data as used by this API
// Retrieve reference data as used by this API and in conjunction with the Search endpoint
async function GetReferenceData() {
let evchargersService = new evchargers.EvchargersService(
process.env.MICRO_API_TOKEN

View File

@@ -11,9 +11,9 @@ func PublishAmessage() {
streamService := stream.NewStreamService(os.Getenv("MICRO_API_TOKEN"))
rsp, err := streamService.Publish(&stream.PublishRequest{
Message: map[string]interface{}{
"id": "1",
"type": "signup",
"user": "john",
"id": "1",
},
Topic: "events",
})