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:
require 'stackone_hris_client'
StackOneHRIS.configure do |config|
config.api_key_token = 'YOUR API KEY'
end
api_instance = StackOneHRIS::AccountsApi.new
id = 'id_example'
begin
result = api_instance.accounts_delete(id)
p result
rescue StackOneHRIS::ApiError => e
puts "Exception when calling AccountsApi->accounts_delete: #{e}"
end
Documentation for API Endpoints
All URIs are relative to https://api.stackone.com
Documentation for Models
Documentation for Authorization
Authentication schemes defined for the API:
basic
- Type: HTTP basic authentication