mirror of
https://github.com/kevin-DL/m3o-go.git
synced 2026-01-11 18:44:26 +00:00
23 lines
366 B
Go
Executable File
23 lines
366 B
Go
Executable File
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"go.m3o.com/movie"
|
|
)
|
|
|
|
// Search for movies by simple text search
|
|
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)
|
|
|
|
}
|