Files
m3o-go/examples/holidays/countries/listCountries/main.go
2021-11-03 15:36:34 +00:00

17 lines
308 B
Go
Executable File

package main
import (
"fmt"
"os"
"go.m3o.com/holidays"
)
// Get the list of countries that are supported by this API
func main() {
holidaysService := holidays.NewHolidaysService(os.Getenv("M3O_API_TOKEN"))
rsp, err := holidaysService.Countries(&holidays.CountriesRequest{})
fmt.Println(rsp, err)
}