Documentation
¶
Index ¶
- Variables
- type Authenticate
- func (a Authenticate) RequestHeader() (http.Header, error)
- func (Authenticate) RequestUrl() (string, bool)
- func (a Authenticate) URL(film *FilmResponse) (*SecureUrl, error)
- func (a *Authenticate) Unmarshal() error
- func (Authenticate) UnwrapResponse(b []byte) ([]byte, error)
- func (a Authenticate) Viewing(film *FilmResponse) error
- func (Authenticate) WrapRequest(b []byte) ([]byte, error)
- type FilmResponse
- type LinkCode
- type Namer
- type SecureUrl
- type TextTrack
- type WebAddress
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientCountry = "US"
Functions ¶
This section is empty.
Types ¶
type Authenticate ¶
func (Authenticate) RequestHeader ¶
func (a Authenticate) RequestHeader() (http.Header, error)
func (Authenticate) RequestUrl ¶
func (Authenticate) RequestUrl() (string, bool)
final slash is needed
func (Authenticate) URL ¶
func (a Authenticate) URL(film *FilmResponse) (*SecureUrl, error)
func (*Authenticate) Unmarshal ¶
func (a *Authenticate) Unmarshal() error
func (Authenticate) UnwrapResponse ¶ added in v1.8.9
func (Authenticate) UnwrapResponse(b []byte) ([]byte, error)
func (Authenticate) Viewing ¶
func (a Authenticate) Viewing(film *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
func (Authenticate) WrapRequest ¶ added in v1.8.9
func (Authenticate) WrapRequest(b []byte) ([]byte, error)
type FilmResponse ¶
type LinkCode ¶
type LinkCode struct { Data []byte V struct { AuthToken string `json:"auth_token"` LinkCode string `json:"link_code"` } }
func (LinkCode) Authenticate ¶
func (c LinkCode) Authenticate() (*Authenticate, error)
type Namer ¶ added in v1.8.3
type Namer struct {
F *FilmResponse
}
type SecureUrl ¶
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.