Skip to content

Repository files navigation

stackone_hris_client

StackOneHRIS - the Ruby gem for the StackOne Unified API - HRIS

The documentation for the StackOne Unified API - HRIS

This SDK is automatically generated by the OpenAPI Generator project:

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

Installation

Build a gem

To build the Ruby code into a gem:

gem build stackone_hris_client.gemspec

Then either install the gem locally:

gem install ./stackone_hris_client-1.7.1.gem

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

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 'stackone_hris_client', :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 gemrequire'stackone_hris_client'# Setup authorizationStackOneHRIS.configuredo |config|
# Configure HTTP basic authorization: basicconfig.api_key_token='YOUR API KEY'endapi_instance=StackOneHRIS::AccountsApi.newid='id_example'# String |begin#Delete Accountresult=api_instance.accounts_delete(id)presultrescueStackOneHRIS::ApiError=>eputs"Exception when calling AccountsApi->accounts_delete: #{e}"end

Documentation for API Endpoints

All URIs are relative to https://api.stackone.com

ClassMethodHTTP requestDescription
StackOneHRIS::AccountsApiaccounts_deleteDELETE /accounts/{id}Delete Account
StackOneHRIS::AccountsApiaccounts_getGET /accounts/{id}Get Account
StackOneHRIS::AccountsApiaccounts_listGET /accountsList Accounts
StackOneHRIS::AccountsApiaccounts_meta_getGET /accounts/{id}/metaGet meta information of the account
StackOneHRIS::CompaniesApihris_companies_getGET /unified/hris/companies/{id}Get Company
StackOneHRIS::CompaniesApihris_companies_listGET /unified/hris/companiesList Companies
StackOneHRIS::ConnectSessionsApiconnect_sessions_authenticatePOST /connect_sessions/authenticateAuthenticate Session
StackOneHRIS::ConnectSessionsApiconnect_sessions_createPOST /connect_sessionsCreate Session
StackOneHRIS::EmployeesApiemployee_createPOST /unified/hris/employeesCreates an employee
StackOneHRIS::EmployeesApiemployee_replacePUT /unified/hris/employees/{id}Replaces an employee
StackOneHRIS::EmployeesApiemployee_updatePATCH /unified/hris/employees/{id}Updates an employee
StackOneHRIS::EmployeesApihris_employees_getGET /unified/hris/employees/{id}Get Employee
StackOneHRIS::EmployeesApihris_employees_listGET /unified/hris/employeesList Employees
StackOneHRIS::EmploymentsApihris_employments_getGET /unified/hris/employments/{id}Get Employment
StackOneHRIS::EmploymentsApihris_employments_listGET /unified/hris/employmentsList Employments
StackOneHRIS::LocationsApihris_locations_getGET /unified/hris/locations/{id}Get location
StackOneHRIS::LocationsApihris_locations_listGET /unified/hris/locationsList locations

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

basic

  • Type: HTTP basic authentication

About

StackOne HRIS ruby client

Topics

Resources

Stars

3 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages