Versions in this module Expand all Collapse all v0 v0.1.2 Feb 10, 2019 v0.1.1 Jan 18, 2019 v0.1.0 Jan 2, 2019 Changes in this version + var ErrNotFound = errors.New("404: API Error") + var ErrUnauthorized = errors.New("401: API Error") + type CaptionsFormat string + const ADBE + const CPTXML + const DFX + const QT + const QTXML + const SMI + const SRT + const STL + const WebVTT + type Client struct + func NewClient(apiKey, apiSecret string) *Client + func NewClientWithHTTPClient(apiKey, apiSecret string, client *http.Client) *Client + func (c *Client) AddTag(fileID uint, tag string) ([]string, error) + func (c *Client) GetCaptions(opts GetCaptionsOptions) ([]byte, error) + func (c *Client) GetCaptionsByVideoID(id string, format CaptionsFormat) ([]byte, error) + func (c *Client) GetFile(id uint) (*File, error) + func (c *Client) GetFiles(params, filters url.Values) (*FilesPage, error) + func (c *Client) GetTags(fileID uint) ([]string, error) + func (c *Client) GetTranscript(fileID uint) (*Transcript, error) + func (c *Client) GetTranscriptByVideoID(videoID string) (*Transcript, error) + func (c *Client) GetTranscriptByVideoIDWithFormat(id string, format TranscriptFormat) ([]byte, error) + func (c *Client) GetTranscriptWithFormat(id uint, format TranscriptFormat) ([]byte, error) + func (c *Client) RemoveTag(fileID uint, tag string) ([]string, error) + func (c *Client) UpdateFile(fileID uint, data url.Values) error + func (c *Client) UploadFileFromURL(fileURL string, options url.Values) (uint, error) + type Error struct + Errors map[string]string + IsError bool + type File struct + Attribute1 string + Attribute2 string + Attribute3 string + BatchID uint + BatchName string + CallbackURL string + CreatedAt string + Deadline string + DefaultServiceTypeID int + Description string + Downloaded bool + Duration uint + ErrorDescription string + ID uint + LanguageID int + Name string + ProjectID uint + State string + ThumbnailURL string + TurnaroundLevelID int + UpdatedAt string + VideoID string + WordCount uint + type FilesPage struct + Files []File + type GetCaptionsOptions struct + FileID uint + Format CaptionsFormat + OutputFormat string + VideoID string + type Summary struct + CurrentPage json.Number + PerPage json.Number + TotalEntries json.Number + TotalPages json.Number + type Transcript struct + Paragraphs []int + Speakers map[string]string + Words []Word + type TranscriptFormat string + const HTML + const JSON + const TXT + type Word [2]string