Documentation
¶
Overview ¶
Package kinois is the official Go client for the kino.is API — a movie & TV catalogue with people, ratings, where-to-watch and live cinema showtimes. Zero third-party dependencies.
c := kinois.New()
res, err := c.Search("interstellar", "")
MIT — https://kino.is
Index ¶
- type Client
- func (c *Client) Boxoffice() (Result, error)
- func (c *Client) Calendar(params url.Values) (Result, error)
- func (c *Client) Catalog(params url.Values) (Result, error)
- func (c *Client) CinemasUA() (Result, error)
- func (c *Client) GetFilm(id int, lang string) (Result, error)
- func (c *Client) GetPerson(id int, lang string) (Result, error)
- func (c *Client) Lists() (Result, error)
- func (c *Client) NowInCinemas(country, lang string) (Result, error)
- func (c *Client) NowShowing(lang string) (Result, error)
- func (c *Client) Search(query, lang string) (Result, error)
- func (c *Client) ShowtimesKZ(city string) (Result, error)
- type Error
- type Result
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
BaseURL string
Lang string // default content language: ru en uk kk uz be de he
Token string // optional bearer token (write/user endpoints only)
HTTP *http.Client
}
Client talks to the kino.is API.
func New ¶
func New() *Client
New returns a Client with sensible defaults (base https://kino.is, lang "ru").
func (*Client) Catalog ¶
Catalog browses/filters the catalogue (type, genre, year, country, sort, page…).
func (*Client) GetPerson ¶
GetPerson returns a person (actor/director/…) by id: name, birth, filmography.
func (*Client) NowInCinemas ¶
NowInCinemas lists films currently in cinemas in a country (ISO-2 code). lang may be "".
func (*Client) NowShowing ¶
NowShowing returns the "now showing" set.
Click to show internal directories.
Click to hide internal directories.