mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-19 05:55:19 +00:00
Minor fixes for evchargers (#220)
This commit is contained in:
@@ -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{})
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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",
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user