banner

passbase

Passbase - the Ruby gem for the Verification API

Introduction

This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.0.2
  • Build package: org.openapitools.codegen.languages.RubyClientCodegen

Installation

Build a gem

To build the Ruby code into a gem:

gem build passbase.gemspec

Then either install the gem locally:

gem install ./passbase-1.0.2.gem

(for development, run gem install --dev ./passbase-1.0.2.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 'passbase', '~> 1.0.2'

Install from Git

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

gem 'passbase', :git => 'https://github.com/passbase/passbase-ruby.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 'passbase'

# Setup authorization
Passbase.configure do |config|
  # Configure API key authorization: SecretApiKey
  config.api_key['X-API-KEY'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['X-API-KEY'] = 'Bearer'
end

api_instance = Passbase::IdentityApi.new
id = 'id_example' # String | Identity id
resource_id = 'resource_id_example' # String | Resource id

begin
  #Get resource
  result = api_instance.get_identity_resource_by_id(id, resource_id)
  p result
rescue Passbase::ApiError => e
  puts "Exception when calling IdentityApi->get_identity_resource_by_id: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://api.passbase.com/verification/v1

Class Method HTTP request Description
Passbase::IdentityApi get_identity_resource_by_id GET /identities/id/resource/resource_id Get resource
Passbase::IdentityApi get_identy_by_id GET /identities/id Get identity
Passbase::IdentityApi list_identities GET /identities List identities
Passbase::IdentityApi list_identity_resources GET /identities/id/resources List resources
Passbase::ProjectApi get_settings GET /settings Get project settings

Documentation for Models

Documentation for Authorization

IdentityAccessToken

  • Type: Bearer authentication (JWT)

PublishableApiKey

  • Type: API key
  • API key parameter name: X-API-KEY
  • Location: HTTP header

SecretApiKey

  • Type: API key
  • API key parameter name: X-API-KEY
  • Location: HTTP header