Sha256: b256ca584b097d66c502f6985127c9955085dc7c36dfd175404c1c379503ba04

Contents?: true

Size: 757 Bytes

Versions: 39

Compression:

Stored size: 757 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
filters_api = MuxRuby::FiltersApi.new

# ========== list-filters ==========
filters = filters_api.list_filters()
assert filters != nil
assert filters.data != nil
assert filters.data.basic != nil
assert filters.data.advanced != nil
puts "list-filters OK ✅"

# ========== list-filter-values ==========
filter_values = filters_api.list_filter_values("browser", {:timeframe => ['7:days']})
assert filter_values != nil
assert filter_values.data != nil
puts "list-filter-values OK ✅"

Version data entries

39 entries across 39 versions & 1 rubygems

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