Urban Airship Tags
This script is something that I created to easily generate a full list of the available Tags on Urban Airship for the various Tag Groups. At the time of writing this there was no easy way to view the list of Tags through the Urban Airship web interface.
Check out the Urban Airship docs for more information on Urban Airship Tags and Tag Groups.
rbenvand install Ruby 2.5.3. This script should work with current versions of Ruby, so this step might not be necessary.
$ brew install rbenv $ rbenv install 2.5.3 $ ruby --version
bundlergem and use it to install the dependencies listed in the
Gemfile. If you're using Ruby 2.6+ you should just be able to run
bundle installsince the
bundlergem is now one of the standard gems shipped with Ruby.
$ gem install bundler $ bundle install
$ cp .env.sample .env
.envfile with the configuration for your Urban Airship project. In the Urban Airhsip dashboard, navigate to Settings > APIs & Integrations and copy the
App Master Secretvalues into the
.envfile you just created.
Now that your environment is configured, all that's left is to run the script:
$ ruby urban_airship.rb