Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

trinsic_connect

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

trinsic_connect

  • 0.2.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

trinsic_connect

TrinsicConnect - the Ruby gem for the Connect API

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

This SDK is automatically generated by the OpenAPI Generator project:

  • API version: v1
  • Package version: 0.2.3
  • Generator version: 7.7.0
  • Build package: org.openapitools.codegen.languages.RubyClientCodegen

Installation

Build a gem

To build the Ruby code into a gem:

gem build trinsic_connect.gemspec

Then either install the gem locally:

gem install ./trinsic_connect-0.2.3.gem

(for development, run gem install --dev ./trinsic_connect-0.2.3.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'trinsic_connect', '~> 0.2.3'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:

gem 'trinsic_connect', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'trinsic_connect'

# Setup authorization
TrinsicConnect.configure do |config|
  # Configure Bearer authorization: Bearer
  config.access_token = 'YOUR_BEARER_TOKEN'
  # Configure a proc to get access tokens in lieu of the static access_token configuration
  config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' } 
end

api_instance = TrinsicConnect::AttachmentsApi.new
opts = {
  exchange_attachment_access_key_request: TrinsicConnect::ExchangeAttachmentAccessKeyRequest.new({attachment_access_key: 'attachment_access_key_example'}) # ExchangeAttachmentAccessKeyRequest | 
}

begin
  #Exchange an Attachment Access Key (from `IdentityData.Attachments`) for the raw contents of the attachment.                Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant.                In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 202 code, and you should try again later.
  api_instance.exchange_attachment_access_key(opts)
rescue TrinsicConnect::ApiError => e
  puts "Exception when calling AttachmentsApi->exchange_attachment_access_key: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://connect.trinsic.id

ClassMethodHTTP requestDescription
TrinsicConnect::AttachmentsApiexchange_attachment_access_keyPOST /api/v1/attachments/exchangeExchange an Attachment Access Key (from IdentityData.Attachments) for the raw contents of the attachment. Use this API to fetch document (front, back, portrait) or other (selfie) images from a verification, if relevant. In some cases, attachments may not be immediately available after a verification is completed. If so, this endpoint will return an HTTP 202 code, and you should try again later.
TrinsicConnect::NetworkApiidentity_lookupGET /api/v1/network/identities/{phoneNumber}Query the availability of an identity in the Trinsic Network by phone number
TrinsicConnect::NetworkApilist_providersGET /api/v1/network/providersList all identity providers available for use
TrinsicConnect::SessionsApicancel_sessionPOST /api/v1/sessions/{sessionId}/cancelCancel a Session by its ID
TrinsicConnect::SessionsApicreate_sessionPOST /api/v1/sessionsCreate a Session to verify a user's identity
TrinsicConnect::SessionsApiexchange_results_keyPOST /api/v1/sessions/{sessionId}/results/exchangeExchange a Results Access Key for Identity Data
TrinsicConnect::SessionsApiget_sessionGET /api/v1/sessions/{sessionId}Get a Session by its ID
TrinsicConnect::SessionsApilist_sessionsGET /api/v1/sessionsList Sessions created by your account
TrinsicConnect::SessionsApiredact_sessionPOST /api/v1/sessions/{sessionId}/redactRedact a Session, removing all identity data from Trinsic's servers. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

Bearer

  • Type: Bearer authentication

FAQs

Package last updated on 20 Aug 2024

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc