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