Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2021-10-29 10:44:29 +00:00
parent 4e64b77e47
commit eb73d115f2
212 changed files with 970 additions and 970 deletions

View File

@@ -4,33 +4,6 @@ An [m3o.com](https://m3o.com) API. For example usage see [m3o.com/Holidays/api](
Endpoints:
## List
List the holiday dates for a given country and year
[https://m3o.com/holidays/api#List](https://m3o.com/holidays/api#List)
```go
package example
import(
"fmt"
"os"
"github.com/go.m3o.com/holidays"
)
// List the holiday dates for a given country and year
func GetHolidays() {
holidaysService := holidays.NewHolidaysService(os.Getenv("M3O_API_TOKEN"))
rsp, err := holidaysService.List(&holidays.ListRequest{
Year: 2022,
})
fmt.Println(rsp, err)
}
```
## Countries
Get the list of countries that are supported by this API
@@ -45,7 +18,7 @@ import(
"fmt"
"os"
"github.com/go.m3o.com/holidays"
"go.m3o.com/holidays"
)
// Get the list of countries that are supported by this API
@@ -57,3 +30,30 @@ func ListCountries() {
fmt.Println(rsp, err)
}
```
## List
List the holiday dates for a given country and year
[https://m3o.com/holidays/api#List](https://m3o.com/holidays/api#List)
```go
package example
import(
"fmt"
"os"
"go.m3o.com/holidays"
)
// List the holiday dates for a given country and year
func GetHolidays() {
holidaysService := holidays.NewHolidaysService(os.Getenv("M3O_API_TOKEN"))
rsp, err := holidaysService.List(&holidays.ListRequest{
Year: 2022,
})
fmt.Println(rsp, err)
}
```

View File

@@ -4,7 +4,7 @@ import (
"fmt"
"os"
"github.com/go.m3o.com/holidays"
"go.m3o.com/holidays"
)
// Get the list of countries that are supported by this API

View File

@@ -4,7 +4,7 @@ import (
"fmt"
"os"
"github.com/go.m3o.com/holidays"
"go.m3o.com/holidays"
)
// List the holiday dates for a given country and year