Project

onboardiq

0.0
No commit activity in last 3 years
No release in over 3 years
This is a simple way to use OnboardIQ's API with a Ruby on Rails app.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

 Project Readme

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")