Sha256: 04cb4886d202d67b27e15d87aa2133f8c756c00b58ccce270da6a9dbccbb29b8

Contents?: true

Size: 784 Bytes

Versions: 26

Compression:

Stored size: 784 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
views_api = MuxRuby::VideoViewsApi.new

# ========== list-video-views ==========
video_views = views_api.list_video_views()
assert video_views != nil
assert video_views.data != nil
assert video_views.data.first != nil
assert video_views.data.first.id != nil
puts "list-video_views OK ✅"

# ========== get-video-view ==========
view = views_api.get_video_view(video_views.data.first.id)
assert view != nil
assert view.data != nil
assert view.data.id != video_views.data.first.id
puts "get-video-view OK ✅"

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
mux_ruby-3.6.0 examples/data/exercise-video-views.rb
mux_ruby-3.5.2 examples/data/exercise-video-views.rb
mux_ruby-3.5.1 examples/data/exercise-video-views.rb
mux_ruby-3.5.0 examples/data/exercise-video-views.rb
mux_ruby-3.4.0 examples/data/exercise-video-views.rb
mux_ruby-3.3.1 examples/data/exercise-video-views.rb
mux_ruby-3.3.0 examples/data/exercise-video-views.rb
mux_ruby-3.2.0 examples/data/exercise-video-views.rb
mux_ruby-3.1.0 examples/data/exercise-video-views.rb
mux_ruby-3.0.0 examples/data/exercise-video-views.rb
mux_ruby-2.2.0 examples/data/exercise-video-views.rb
mux_ruby-2.1.1 examples/data/exercise-video-views.rb
mux_ruby-2.1.0 examples/data/exercise-video-views.rb
mux_ruby-2.0.0 examples/data/exercise-video-views.rb
mux_ruby-2.0.0.pre.rc.2 examples/data/exercise-video-views.rb
mux_ruby-2.0.0.pre.rc.1 examples/data/exercise-video-views.rb
mux_ruby-1.9.0 examples/data/exercise-video-views.rb
mux_ruby-1.8.1 examples/data/exercise-video-views.rb
mux_ruby-1.7.0 examples/data/exercise-video-views.rb
mux_ruby-1.6.0 examples/data/exercise-video-views.rb