Ruby client for Emarsys session validator service.
gem install session-validator-client
Copy .env.example
to .env
and set the necessary values for usage in your service.
require "session_validator"
client = SessionValidator::Client.new
For mTLS on GAP.
require "session_validator"
client = SessionValidator::Client.new(use_escher: false)
client.valid?("staging_int_5ad5f96f307cf9.61063404")
Returns an array of the invalid MSIDs.
client.filter_invalid(["staging_int_5ad5f96f307cf9.61063404", "staging_int_5ad5f96f307cf9.61063405"])
make test