Mux v1.9.0 Mux.Video.DeliveryUsage View Source

This module provides functions for reading delivery usage in Mux Video. API Documentation

Link to this section Summary

Functions

Get delivery usage for a specified timeframe. API Documentation

Link to this section Functions

Link to this function

list(client, options \\ [])

View Source

Get delivery usage for a specified timeframe. API Documentation

Returns {:ok, delivery_usage, %Tesla.Env{}}.

Examples

iex> client = Mux.Base.new("my_token_id", "my_token_secret")
iex> {:ok, delivery_usage, _env} = Mux.Video.DeliveryUsage.list(client, %{timeframe: [1564617600, 1569283200]})
iex> delivery_usage
[%{asset_duration: 480.533333, asset_id: "XwYTXo41yZD2xDIOKp2p00", asset_state: "ready", created_at: "1566324794", delivered_seconds: 2040.533333, passthrough: "Example 1"}, %{asset_duration: 480.533333, asset_id: "XwYTXo41yZD2xDIOKp2p00", asset_state: "ready", created_at: "1566324794", delivered_seconds: 2040.533333, passthrough: "Example 1"}]