Documentation ¶
Index ¶
- Variables
- type Authenticate
- func (Authenticate) RequestBody(b []byte) ([]byte, error)
- func (a Authenticate) RequestHeader() (http.Header, error)
- func (Authenticate) RequestUrl() (string, bool)
- func (Authenticate) ResponseBody(b []byte) ([]byte, error)
- func (a Authenticate) URL(f *FilmResponse) (*SecureUrl, error)
- func (a *Authenticate) Unmarshal() error
- func (a Authenticate) Viewing(f *FilmResponse) error
- type FilmResponse
- type LinkCode
- type SecureUrl
- type WebAddress
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientCountry = "US"
Functions ¶
This section is empty.
Types ¶
type Authenticate ¶
type Authenticate struct { Data []byte // contains filtered or unexported fields }
func (Authenticate) RequestBody ¶
func (Authenticate) RequestBody(b []byte) ([]byte, error)
func (Authenticate) RequestHeader ¶
func (a Authenticate) RequestHeader() (http.Header, error)
func (Authenticate) RequestUrl ¶
func (Authenticate) RequestUrl() (string, bool)
final slash is needed
func (Authenticate) ResponseBody ¶
func (Authenticate) ResponseBody(b []byte) ([]byte, error)
func (Authenticate) URL ¶
func (a Authenticate) URL(f *FilmResponse) (*SecureUrl, error)
func (*Authenticate) Unmarshal ¶
func (a *Authenticate) Unmarshal() error
func (Authenticate) Viewing ¶
func (a Authenticate) Viewing(f *FilmResponse) error
Mubi do this sneaky thing. you cannot download a video unless you have told the API that you are watching it. so you have to call `/v3/films/%v/viewing`, otherwise it wont let you get the MPD. if you have already viewed the video on the website that counts, but if you only use the tool it will error
type FilmResponse ¶
type FilmResponse struct {
// contains filtered or unexported fields
}
func (FilmResponse) Episode ¶
func (FilmResponse) Episode() (string, bool)
func (FilmResponse) Owner ¶
func (FilmResponse) Owner() (string, bool)
func (FilmResponse) Season ¶
func (FilmResponse) Season() (string, bool)
func (FilmResponse) Show ¶
func (FilmResponse) Show() (string, bool)
func (FilmResponse) Title ¶
func (f FilmResponse) Title() (string, bool)
func (FilmResponse) Year ¶
func (f FilmResponse) Year() (string, bool)
type LinkCode ¶
type LinkCode struct { Data []byte // contains filtered or unexported fields }
func (LinkCode) Authenticate ¶
func (c LinkCode) Authenticate() (*Authenticate, error)
type WebAddress ¶
type WebAddress struct {
// contains filtered or unexported fields
}
func (WebAddress) Film ¶
func (w WebAddress) Film() (*FilmResponse, error)
func (*WebAddress) Set ¶
func (w *WebAddress) Set(s string) error
func (WebAddress) String ¶
func (w WebAddress) String() string
Click to show internal directories.
Click to hide internal directories.