Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Streamable ¶
type Streamable struct {
// contains filtered or unexported fields
}
Streamable is a client for working with the Streamable Web API TODO document these fields
func New ¶
func New(email string, pass string) *Streamable
New creates a Streamable Client that will use the specified email and password for its API requests.
func (*Streamable) GetVideoFromShortcode ¶
func (c *Streamable) GetVideoFromShortcode(shortcode string) (*Video, error)
GetVideoFromShortcode retrieves the raw mp4 video files using the specified Streamable video shortcode.
func (*Streamable) GetVideoFromURL ¶
func (c *Streamable) GetVideoFromURL(url string) (*VideoEmbed, error)
GetVideoFromURL retrieves the video embed information using the specified Streamable URL.
type Video ¶
type Video struct { Status int `json:"status"` Files struct { Mp4 mp4 `json:"mp4"` Mp4Mobile mp4 `json:"mp4-mobile"` } `json:"files"` EmbedCode string `json:"embed_code"` Source string `json:"source"` ThumbnailURL string `json:"thumbnail_url"` URL string `json:"url"` Message string `json:"message"` Title string `json:"title"` Percent int `json:"percent"` }
Video contains file information and metadata about a video.
type VideoEmbed ¶
type VideoEmbed struct { ProviderURL string `json:"provider_url"` HTML string `json:"html"` Version string `json:"version"` Title string `json:"title"` Type string `json:"type"` ProviderName string `json:"provider_name"` ThumbnailURL string `json:"thumbnail_url"` Width int `json:"width"` Height int `json:"height"` }
VideoEmbed contains the embed code and metadata about a video.
Click to show internal directories.
Click to hide internal directories.