import DeliveryUsage from '@mux/mux-node/src/video/resources/deliveryUsage.js'
DeliveryUsage
Extends:
events~EventEmitter → src/base.js~Base → DeliveryUsage
DeliveryUsage Class - Provides access to the Mux Video Delivery Usage API
Example:
const { Video } = new Mux(accessToken, secret);
// List delivery usage within a timeframe
Video.DeliveryUsage.list({timeframe: [1574076240, 1573471440]});
Test:
Method Summary
Public Methods | ||
public |
List all delivery usage during a timeframe for a Mux Environment (tied to your access token) |
Public Methods
public list(params: Object): Promise source
List all delivery usage during a timeframe for a Mux Environment (tied to your access token)
Params:
Name | Type | Attribute | Description |
params | Object | Request JSON parameters (e.g timeframe) |
Example:
const { Video } = new Mux(accessToken, secret);
// List all delivery usage for a Mux Environment within a timeframe
Video.DeliveryUsage.list({timeframe: [1574076240, 1573471440]});