{"id":23131208,"url":"https://github.com/emartech/session-validator-client-ruby","last_synced_at":"2025-04-04T07:27:37.554Z","repository":{"id":56895150,"uuid":"89707676","full_name":"emartech/session-validator-client-ruby","owner":"emartech","description":"Ruby client for Emarsys session validator service","archived":false,"fork":false,"pushed_at":"2022-12-02T09:07:52.000Z","size":23,"stargazers_count":0,"open_issues_count":5,"forks_count":1,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-04-14T07:41:07.407Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emartech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-28T13:16:56.000Z","updated_at":"2024-04-14T07:41:07.408Z","dependencies_parsed_at":"2023-01-22T22:30:27.283Z","dependency_job_id":null,"html_url":"https://github.com/emartech/session-validator-client-ruby","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emartech%2Fsession-validator-client-ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emartech%2Fsession-validator-client-ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emartech%2Fsession-validator-client-ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emartech%2Fsession-validator-client-ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emartech","download_url":"https://codeload.github.com/emartech/session-validator-client-ruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247137666,"owners_count":20889909,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-17T11:12:18.465Z","updated_at":"2025-04-04T07:27:37.534Z","avatar_url":"https://github.com/emartech.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Session Validator Client Ruby ![Build Status](https://github.com/emartech/session-validator-client-ruby/actions/workflows/ruby.yml/badge.svg)\n\nRuby client for Emarsys session validator service.\n\n## Install\n\n```bash\ngem install session-validator-client\n```\n\n## Usage\n\nCopy `.env.example` to `.env` and set the necessary values for usage in your service.\n\n### Create client\n```ruby\nrequire \"session_validator\"\n\nclient = SessionValidator::Client.new\n```\n\n### Requests without Escher\nFor mTLS on GAP.\n\n```ruby\nrequire \"session_validator\"\n\nclient = SessionValidator::Client.new(use_escher: false)\n```\n\n### Validating a single MSID\n```ruby\nclient.valid?(\"staging_int_5ad5f96f307cf9.61063404\")\n```\n\n### Batch validating multiple MSIDs\nReturns an array of the invalid MSIDs.\n```ruby\nclient.filter_invalid([\"staging_int_5ad5f96f307cf9.61063404\", \"staging_int_5ad5f96f307cf9.61063405\"])\n```\n\n## Local development\n\n### Running tests\n```bash\nmake test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femartech%2Fsession-validator-client-ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femartech%2Fsession-validator-client-ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femartech%2Fsession-validator-client-ruby/lists"}