Unit::Base
|
Mux |
Base
|
Base |
allows configuration to be passed in as params
|
Base |
allows configuration to be passed in via environment variables
|
- |
prioritizes params over environment variables
|
- |
allows configuration to be passed in via the parent instance
|
- |
http requests
|
- |
fire an event on a request
|
- |
fire an event on a response
|
- |
Unit::Data
|
Data |
Data
|
Data |
throws an error if an api key is not given
|
Data |
throws an error if a secret key is not given
|
Data |
creates a new Data instance
|
Data |
Unit::Errors
|
Errors |
Unit::Exports
|
Exports |
Unit::Filters
|
Filters |
Filters
|
Filters |
throws an error if an api key is not given
|
Filters |
throws an error if a secret key is not given
|
Filters |
creates a new Filters instance
|
Filters |
Filters.get
|
Filters.get |
throws an error if a filter Id is not provided
|
Filters.get |
Unit::Incidents
|
Incidents |
Incidents
|
Incidents |
throws an error if an api key is not given
|
Incidents |
throws an error if a secret key is not given
|
Incidents |
creates a new Incidents instance
|
Incidents |
Incidents.get
|
Incidents.get |
throws an error if an incident Id is not provided
|
Incidents.get |
Incidents.related
|
Incidents.related |
throws an error if an incident Id is not provided
|
Incidents.related |
makes a get request to the Mux data incidents route
|
- |
Unit::Metrics
|
Metrics |
Metrics
|
Metrics |
throws an error if an api key is not given
|
Metrics |
throws an error if a secret key is not given
|
Metrics |
creates a new Metrics instance
|
Metrics |
Metrics.comparison
|
Metrics.comparison |
throws an error if the value query parameter is not provided
|
Metrics.comparison |
Metrics.insights
|
Metrics.insights |
throws an error if a metric Id is not provided
|
Metrics.insights |
Metrics.overall
|
Metrics.overall |
throws an error if a metric Id is not provided
|
Metrics.overall |
Metrics.timeseries
|
Metrics.timeseries |
throws an error if a metric Id is not provided
|
Metrics.timeseries |
Unit::RealTime
|
RealTime |
RealTime
|
RealTime |
throws an error if an api key is not given
|
RealTime |
throws an error if a secret key is not given
|
RealTime |
creates a new RealTime instance
|
RealTime |
RealTime.breakdown
|
RealTime.breakdown |
throws an error if the value query parameter is not provided
|
RealTime.breakdown |
RealTime.histogramTimeseries
|
RealTime.histogramTimeseries |
throws an error if the value query parameter is not provided
|
RealTime.histogramTimeseries |
RealTime.timeseries
|
RealTime.timeseries |
throws an error if the value query parameter is not provided
|
RealTime.timeseries |
Unit::VideoViews
|
VideoViews |
VideoViews
|
VideoViews |
throws an error if an api key is not given
|
VideoViews |
throws an error if a secret key is not given
|
VideoViews |
creates a new VideoViews instance
|
VideoViews |
Unit::Mux
|
Mux |
Mux
|
Mux |
exposes Mux Video and Data as instance methods
|
Mux |
exposes JWT Helper utilities as static methods
|
Mux.JTW |
exposes Webhooks.verifyHeader
|
Mux.Webhooks |
Utils::JWT
|
Mux.Utils.JWT |
sign
|
Mux.Utils.JWT.sign |
defaults to video and includes an expiration
|
Mux.Utils.JWT.sign |
maps type video to v
|
- |
maps type thumbnail to t
|
- |
maps type gif to g
|
- |
maps type storyboard to s
|
- |
takes a file path for a secret
|
- |
falls back to using environment variables for the key and secret
|
- |
accepts a timestamp or time shorthand
|
- |
Unit::Assets
|
Assets |
Assets
|
Assets |
throws an error if an api key is not given
|
Assets |
throws an error if a secret key is not given
|
Assets |
creates a new Assets instance
|
Assets |
Assets.create
|
Assets.create |
throws an error if no asset params are given
|
Assets.create |
Assets.get
|
Assets.get |
throws an error when an asset id is not given
|
Assets.get |
Assets.del
|
Assets.del |
throws an error when an asset id is not given
|
Assets.del |
Assets.inputInfo
|
Assets.inputInfo |
throws an error when an asset id is not given
|
Assets.inputInfo |
Assets.list
|
Assets.list |
makes a GET request to list 100 assets offset by 2 pages
|
Assets.list |
Assets.deletePlaybackId
|
Assets.deletePlaybackId |
makes a DELETE request to delete a Playback Id for an asset
|
Assets.deletePlaybackId |
throws an error if an asset id is not given
|
Assets.deletePlaybackId |
Assets.playbackId
|
Assets.playbackId |
makes a GET request to get a Playback Id for an asset
|
Assets.playbackId |
throws an error if an asset id is not given
|
Assets.playbackId |
throws an error if playbackId params are not given
|
Assets.playbackId |
Assets.createTrack
|
Assets.createTrack |
makes a POST request to create a text track for an asset
|
Assets.createTrack |
throws an error if an asset id is not given
|
Assets.createTrack |
throws an error if track params are not given
|
Assets.createTrack |
Assets.deleteTrack
|
Assets.deleteTrack |
makes a DELETE request to delete a text track for an asset
|
Assets.deleteTrack |
throws an error if an asset id is not given
|
Assets.deleteTrack |
throws an error if text track ID is not given
|
Assets.deleteTrack |
Unit::DeliveryUsage
|
DeliveryUsage |
DeliveryUsage.list
|
DeliveryUsage.list |
makes a GET request to list 100 delivery usage records offset by 2 pages with a timeframe
|
DeliveryUsage.list |
Unit::LiveStreams
|
LiveStreams |
LiveStreams
|
LiveStreams |
throws an error if an api key is not given
|
LiveStreams |
throws an error if a secret key is not given
|
LiveStreams |
creates a new LiveStreams instance
|
LiveStreams |
LiveStreams.del
|
LiveStreams.del |
throws an error when a live stream ID is not given
|
LiveStreams.del |
LiveStreams.list
|
LiveStreams.list |
makes a GET request to list 100 live streams offset by 2 pages
|
LiveStreams.list |
LiveStreams.get
|
LiveStreams.get |
throws an error when a live stream ID is not given
|
LiveStreams.get |
LiveStreams.signalComplete
|
LiveStreams.signalComplete |
throws an error when a live stream ID is not given
|
LiveStreams.signalComplete |
LiveStreams.resetStreamKey
|
LiveStreams.resetStreamKey |
throws an error when a live stream ID is not given
|
LiveStreams.resetStreamKey |
LiveStreams.createPlaybackId
|
LiveStreams.createPlaybackId |
throws an error if a live stream ID is not given
|
LiveStreams.createPlaybackId |
LiveStreams.deletePlaybackId
|
LiveStreams.deletePlaybackId |
throws an error if a live stream ID is not given
|
LiveStreams.deletePlaybackId |
LiveStreams.createSimulcastTarget
|
LiveStreams.createSimulcastTarget |
throws an error if a live stream ID is not given
|
LiveStreams.createSimulcastTarget |
LiveStreams.getSimulcastTarget
|
LiveStreams.getSimulcastTarget |
throws an error if a live stream ID is not given
|
LiveStreams.getSimulcastTarget |
throws an error if a simulcast target id is not given
|
LiveStreams.createSimulcastTarget |
LiveStreams.deleteSimulcastTarget
|
LiveStreams.deleteSimulcastTarget |
throws an error if a live stream ID is not given
|
LiveStreams.deleteSimulcastTarget |
throws an error if a simulcast target id is not given
|
LiveStreams.deleteSimulcastTarget |
LiveStreams.enable
|
LiveStreams.enable |
throws an error if a live stream ID is not given
|
LiveStreams.enable |
LiveStreams.disable
|
LiveStreams.disable |
throws an error if a live stream ID is not given
|
LiveStreams.disable |
Unit::PlaybackIds
|
PlaybackIds |
PlaybackIds
|
PlaybackIds |
throws an error if an api key is not given
|
PlaybackIds |
throws an error if a secret key is not given
|
PlaybackIds |
creates a new PlaybackIds instance
|
PlaybackIds |
PlaybackIds.get
|
PlaybackIds.get |
throws an error when an playback ID is not given
|
PlaybackIds.get |
Unit::SigningKeys
|
SigningKeys |
SigningKeys.get
|
SigningKeys.get |
throws an error when an key id is not given
|
SigningKeys.get |
SigningKeys.del
|
SigningKeys.del |
throws an error when an key id is not given
|
SigningKeys.del |
SigningKeys.list
|
SigningKeys.list |
makes a GET request to list 100 signing keys offset by 2 pages
|
SigningKeys.list |
Unit::Uploads
|
Uploads |
Uploads.create
|
Uploads.create |
throws an error if no params are given
|
Uploads.create |
Uploads.get
|
Uploads.get |
throws an error when an upload id is not given
|
Uploads.get |
Uploads.cancel
|
Uploads.cancel |
throws an error when an upload id is not given
|
Uploads.del |
Uploads.list
|
Uploads.list |
makes a GET request to list 100 uploads offset by 2 pages
|
Uploads.list |
Unit::Video
|
Video |
Video
|
Video |
throws an error if an api key is not given
|
Video |
throws an error if a secret key is not given
|
Video |
creates a new Video instance
|
Video |
Unit::VerifyHeader
|
VerifyHeader |
VerifyHeader
|
VerifyHeader |
parseHeader with a known-hard coded header value
|
VerifyHeader.parseHeader |
will correctly parse the header value to the known timestamp and signature
|
- |
verify
|
VerifyHeader.verify |
with a malformatted header value
|
VerifyHeader.verify |
will throw an unable to extract timestamp and signatures error
|
VerifyHeader.verify |
with a header value that has the wrong scheme
|
VerifyHeader.verify |
will throw a no signatures found with expected scheme error
|
VerifyHeader.verify |
with a header value that is valid expect that it is outside the tolerated time range
|
VerifyHeader.verify |
will throw a timestamp outside the tolerance zone error
|
VerifyHeader.verify |
with a header value that is actually valid
|
VerifyHeader.verify |
will return true when the payload is a string
|
VerifyHeader.verify |
will return true when the payload is a buffer
|
VerifyHeader.verify |
Unit::Webhooks
|
Webhooks |
verifyHeader
|
Webhooks.verifyHeader |
returns true for a valid header
|
Webhooks.verifyHeader |