Files
m3o-go/examples/evchargers/referenceData/getReferenceData.go
2021-10-29 06:38:17 +00:00

16 lines
384 B
Go
Executable File

package example
import (
"fmt"
"os"
"github.com/go.m3o.com/evchargers"
)
// Retrieve reference data as used by this API and in conjunction with the Search endpoint
func GetReferenceData() {
evchargersService := evchargers.NewEvchargersService(os.Getenv("M3O_API_TOKEN"))
rsp, err := evchargersService.ReferenceData(&evchargers.ReferenceDataRequest{})
fmt.Println(rsp, err)
}