Skip to content

onboardiq/onboardiq-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Note: This gem is for API v1, which has been deprecated, and does not include many of the new API calls.

For V2 documentation, please refer to: https://onboardiq.com/docs/apiv2/


=====================

OnboardIQ API

This is a Ruby wrapper to quickly use OnboardIQ's API V1: https://onboardiq.readme.io/v1.0.

Installation

Add this line to your application's Gemfile:

gem 'onboardiq'

And then execute:

$ bundle

Or install it yourself as:

$ gem install onboardiq

Usage

Configure authentication keys

Create a new file in config/initializers/onboardiq.rb

  ONBOARDIQ  = OnboardIQ.new(token: "123l4cva_mdlkVamk31") #account api token from OnboardIQ

Create Applicant

Required attributes: [name, email, phone_number]
Email must be valid and unique
Phone_number must be unique
'Key' is reserved for our identifier
All keys at the root level.
You can pass in any additional keys you would like (availability, location, vehicle, address, phone, etc.)

# minimum
ONBOARDIQ.create_applicant(name: "Dwight Schrute", email: "dwight@dundermifflin.com", phone_number: "1112223333")

# optional info
ONBOARDIQ.create_applicant(name: "Dwight Schrute", email: "dwight@dundermifflin.com", phone_number: "1112223333", any: "other", keys: "you want", address[street]: "123 main st", address[city]: "San Francisco, CA")

Update Applicant

ONBOARDIQ.update_applicant(applicant_key, attributes)

# example
ONBOARDIQ.update_applicant("deb3648f", availability: "monday, tuesday", location: "SF")  

List Applicants

ONBOARDIQ.list_applicants

Get Applicant

ONBOARDIQ.get_applicant(applicant_key)

# example
ONBOARDIQ.get_applicant("deb3648f")  

Releases

No releases published

Packages

No packages published

Languages