0.0.6 • Published 3 years ago

@orbaone/api v0.0.6

Weekly downloads
28
License
ISC
Repository
-
Last release
3 years ago

Orba One Node

The official Node client for the Orba One API.


To start using Orba One's Node Client follows these simple steps:

  1. Install the Client through NPM/Yarn.
  2. Get an API and Secret Key.
  3. Start using the client.

Additional information can be found here.

1. Install the client

# Yarn
yarn add @orbaone/api

# NPM
npm install --save @orbaone/api

2. Get an API Key

The client requires the settings apiKey and apiSecret. Login to your OrbaOne account and create a new OrbaOne API and Secret key here: Developer Dashboard.

3. Usage

Initialize the Orba One Client.

Example

import { OrbaOne } from '@orbaone/api';

const client = new OrbaOne({
   apiKey: 'test',
   apiSecret: 'secret',
});

Parameters

ParameterTypeExampleDescription
apiKeystring'test'The OrbaOne API Key you obtained from the dashboard.
apiSecretstring'test'The OrbaOne Secret Key you obtained from the dashboard.
basePathstring(Optional)'https://api.orbaone.com/api'The base URL of all API endpoints.
apiVersionstring(Optional)'v1'The API version.

Methods

createApplicant(data)

This method allows you to create an Applicant.

Parameters

The data parameter is an object that consists of the following:

ParameterTypeExample
data.firstNamestring'John'
data.middleNamestring(Optional)'Daniel'
data.lastNamestring'Scott'

getApplicants(query)

This method allows you to get all the applicants.

Parameters

The query parameter is an object that consists of the following:

ParameterTypeExample
query.searchstring(Optional)'John'
query.pageSizenumber(Optional)1
query.pagenumber(Optional)1

getApplicantByID(id)

This method allows you to get a specified applicant's data.

Parameters

ParameterTypeExample
idstring'7S7S7S'

getApplicantPEPResult(id)

This method allows you to get a specified applicant's PEP scan results.

Parameters

ParameterTypeExample
idstring'7S7S7S'

getApplicantSanctionResult(id)

This method allows you to get a specified applicant's Sanction scan results.

Parameters

ParameterTypeExample
idstring'7S7S7S'

request(url, options)

This method is not dependent on the API version and allows the making of custom requests.

Parameters

ParameterTypeExampleDescription
urlstring'https://api.orbaone.com/api/v1/applicants'API endpoint.
optionsObject{method:'PUT', body: JSON.stringify(data)}An object that allows you to control a number of different options for the request.
0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago