Files
m3o-go/examples/app/regions/listRegions/main.go
2021-12-15 11:22:20 +00:00

16 lines
243 B
Go
Executable File

package main
import (
"fmt"
"os"
"go.m3o.com/app"
)
// Return the support regions
func main() {
appService := app.NewAppService(os.Getenv("M3O_API_TOKEN"))
rsp, err := appService.Regions(&app.RegionsRequest{})
fmt.Println(rsp, err)
}