Reference Source Test
public class | source

DeliveryUsage

Extends:

events~EventEmittersrc/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(params: Object): Promise

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:

NameTypeAttributeDescription
params Object

Request JSON parameters (e.g timeframe)

Return:

Promise

Returns a resolved Promise with a response from the Mux API

Example:

const { Video } = new Mux(accessToken, secret);

// List all delivery usage for a Mux Environment within a timeframe
Video.DeliveryUsage.list({timeframe: [1574076240, 1573471440]});

Test:

See: