Skip to content
This repository was archived by the owner on Jun 28, 2021. It is now read-only.

Latest commit

 

History

History
40 lines (24 loc) · 1.29 KB

File metadata and controls

40 lines (24 loc) · 1.29 KB

Lexer Identities Official Ruby Client Library

Build Status Code Climate Gem Version

Lexer Identity Gem is the official Ruby Client for the Lexer Identity API. The Lexer Identity API lets brands contribute and consume from Lexer's Identity database directly from their apps.

Installation

Add to your Gemfile:

gem 'lexer-identity'

or install from Rubygems:

gem install lexer-identity

And include it in your project as:

require 'lexer'

Use

# Configure using the provided tokens
Lexer::Identity.configure do |config|
  config.api_token = "..."
  config.contributor_token = "..."
  config.consumer_token = "..."
end

# Communicate via the enrich method
Lexer::Identity.enrich( links: { email: "test@lexer.io", twitter: "camplexer" }, attributes: { "io.lexer.name": { value: "Jane Smith", confidence: Lexer::Identity::CONFIDENCE_PROVIDED, ... } )

Further Reading

See the full documentation at http://developer.lexer.io.