Socket
Book a DemoInstallSign in
Socket

persona-ruby

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

persona-ruby

0.2.1
bundlerRubygems
Version published
Maintainers
2
Created
Source

persona-ruby

Persona is a service which is used to collect, verify, understand and orchestrate customer identities. This API is designed to allow Ruby developers to interact with the Persona API programmatically.

For reference, the Persona API documentation can be found here:

https://docs.withpersona.com/docs

Install

Add to your Gemfile:

gem 'persona-ruby'

Then bundle install.

Usage

API Client

The Persona API client uses an access token to authenticate API requests.

To obtain an access code you must visit the Persona Dashboard (https://app.withpersona.com/dashboard/api-keys).

Then you can create a Persona API client.

client = Persona::Client.new(
    access_token: 'access_token', # Access token from authorization flow
    timeout: 30, # Optional setting for timeouts of all requests (default 60)
)

API Endpoints

For use of each endpoint please consult the Persona API reference.

List Inquiries

API docs

Example: client.inquiry_list()

Get Inquiry

API docs

Example: client.inquiry_get('abcd1234')

Create Inquiry

API docs

Example: client.inquiry_create(data = {"attribute1": "abc", "attribute2": "vcdf"})

Update Inquiry Update

API docs

Example: client.inquiry_update('abcd1234', data = {"attribute1": "abc", "attribute2": "vcdf"})

Delete Inquiry

API docs

Example: client.inquiry_update('abcd1234')

Errors

Any error code returned by the Persona API will result in one of the following expections

CodeException
400Persona::BadRequest
401Persona::Unauthorized
403Persona::Forbidden
404Persona::NotFound
429Persona::TooManyRequests
400...499Persona::ClientError
500Persona::InternalServerError
502Persona::BadGateway
503Persona::ServiceUnavailable
500...599Persona::ServerError

FAQs

Package last updated on 14 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.