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.2.0 examples/data/exercise-filters.rb
mux_ruby-3.1.0 examples/data/exercise-filters.rb
mux_ruby-3.0.0 examples/data/exercise-filters.rb
mux_ruby-2.2.0 examples/data/exercise-filters.rb
mux_ruby-2.1.1 examples/data/exercise-filters.rb
mux_ruby-2.1.0 examples/data/exercise-filters.rb
mux_ruby-2.0.0 examples/data/exercise-filters.rb
mux_ruby-2.0.0.pre.rc.2 examples/data/exercise-filters.rb
mux_ruby-2.0.0.pre.rc.1 examples/data/exercise-filters.rb
mux_ruby-1.9.0 examples/data/exercise-filters.rb
mux_ruby-1.8.1 examples/data/exercise-filters.rb
mux_ruby-1.7.0 examples/data/exercise-filters.rb
mux_ruby-1.6.0 examples/data/exercise-filters.rb
mux_ruby-1.5.1 examples/data/exercise-filters.rb
mux_ruby-1.5.0 examples/data/exercise-filters.rb
mux_ruby-1.4.0 examples/data/exercise-filters.rb
mux_ruby-1.3.1 examples/data/exercise-filters.rb
mux_ruby-1.3.0 examples/data/exercise-filters.rb
mux_ruby-1.0.0 examples/data/exercise-filters.rb