Sha256: ec96af15f3d7d58954fd4d98456b770277a90954fd44ec33cc17f65a47855822

Contents?: true

Size: 602 Bytes

Versions: 38

Compression:

Stored size: 602 Bytes

Contents

#!/usr/bin/env ruby 

require 'mux_ruby'
require 'solid_assert'

SolidAssert.enable_assertions

# Authentication Setup
openapi = MuxRuby.configure do |config|
  config.username = ENV['MUX_TOKEN_ID']
  config.password = ENV['MUX_TOKEN_SECRET']
end

# API Client Initialization
usage_api = MuxRuby::DeliveryUsageApi.new

# ========== list-delivery-usage ==========
# Example with a valid timeframe:
# usage = usage_api.list_delivery_usage({:timeframe => ['1574175600', '1574305200']})
usage = usage_api.list_delivery_usage()
assert usage != nil
assert usage.data != nil
puts "list-delivery-usage OK ✅"

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
mux_ruby-3.20.0 examples/video/exercise-delivery-usage.rb
mux_ruby-3.19.0 examples/video/exercise-delivery-usage.rb
mux_ruby-3.18.0 examples/video/exercise-delivery-usage.rb
mux_ruby-3.17.0 examples/video/exercise-delivery-usage.rb
mux_ruby-3.15.0 examples/video/exercise-delivery-usage.rb
mux_ruby-3.14.0 examples/video/exercise-delivery-usage.rb
mux_ruby-3.13.0 examples/video/exercise-delivery-usage.rb
mux_ruby-3.12.0 examples/video/exercise-delivery-usage.rb
mux_ruby-3.11.1 examples/video/exercise-delivery-usage.rb
mux_ruby-3.11.0 examples/video/exercise-delivery-usage.rb
mux_ruby-3.9.0 examples/video/exercise-delivery-usage.rb
mux_ruby-3.8.0 examples/video/exercise-delivery-usage.rb
mux_ruby-3.7.0 examples/video/exercise-delivery-usage.rb
mux_ruby-3.6.0 examples/video/exercise-delivery-usage.rb
mux_ruby-3.5.2 examples/video/exercise-delivery-usage.rb
mux_ruby-3.5.1 examples/video/exercise-delivery-usage.rb
mux_ruby-3.5.0 examples/video/exercise-delivery-usage.rb
mux_ruby-3.4.0 examples/video/exercise-delivery-usage.rb
mux_ruby-3.3.1 examples/video/exercise-delivery-usage.rb
mux_ruby-3.3.0 examples/video/exercise-delivery-usage.rb