Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2021-11-24 10:46:51 +00:00
parent faf22546b7
commit 3f9e5d8723
18 changed files with 916 additions and 792 deletions

View File

@@ -0,0 +1,20 @@
package main
import (
"fmt"
"os"
"go.m3o.com/news"
)
//
func main() {
newsService := news.NewNewsService(os.Getenv("M3O_API_TOKEN"))
rsp, err := newsService.Headlines(&news.HeadlinesRequest{
Date: "2021-11-24",
Language: "en",
Locale: "us",
})
fmt.Println(rsp, err)
}