Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 946 Bytes

README.md

File metadata and controls

47 lines (33 loc) · 946 Bytes

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