Lexer Identities Official Ruby Client Library
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.