Low commit activity in last 3 years
A long-lived project that still receives updates
Ruby client for Emarsys session validator service
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
>= 0

Runtime

 Project Readme

Session Validator Client Ruby Build Status

Ruby client for Emarsys session validator service.

Install

gem install session-validator-client

Usage

Copy .env.example to .env and set the necessary values for usage in your service.

Create client

require "session_validator"

client = SessionValidator::Client.new

Requests without Escher

For mTLS on GAP.

require "session_validator"

client = SessionValidator::Client.new(use_escher: false)

Validating a single MSID

client.valid?("staging_int_5ad5f96f307cf9.61063404")

Batch validating multiple MSIDs

Returns an array of the invalid MSIDs.

client.filter_invalid(["staging_int_5ad5f96f307cf9.61063404", "staging_int_5ad5f96f307cf9.61063405"])

Local development

Running tests

make test