Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2021-12-07 11:30:32 +00:00
parent 1fd95a1ba2
commit 2df19f48f9
19 changed files with 784 additions and 659 deletions

View File

@@ -0,0 +1,22 @@
package main
import (
"fmt"
"os"
"go.m3o.com/movie"
)
//
func main() {
movieService := movie.NewMovieService(os.Getenv("M3O_API_TOKEN"))
rsp, err := movieService.Search(&movie.SearchRequest{
Language: "en-US",
Page: 1,
Query: "inception",
Region: "US",
Year: 2010,
})
fmt.Println(rsp, err)
}