mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
16 lines
401 B
Go
Executable File
16 lines
401 B
Go
Executable File
package example
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"github.com/micro/services/clients/go/evchargers"
|
|
)
|
|
|
|
// 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{})
|
|
fmt.Println(rsp, err)
|
|
}
|