All URIs are relative to https://api.stackone.com
| Method | HTTP request | Description |
|---|---|---|
| accounts_delete | DELETE /accounts/{id} | Delete Account |
| accounts_get | GET /accounts/{id} | Get Account |
| accounts_list | GET /accounts | List Accounts |
| accounts_meta_get | GET /accounts/{id}/meta | Get meta information of the account |
accounts_delete(id)
Delete Account
require 'time'
require 'stackone_hris_client'
# setup authorization
StackOneHRIS.configure do |config|
# Configure HTTP basic authorization: basic
config.api_key_token = 'YOUR API KEY'
end
api_instance = StackOneHRIS::AccountsApi.new
id = 'id_example' # String |
begin
# Delete Account
result = api_instance.accounts_delete(id)
p result
rescue StackOneHRIS::ApiError => e
puts "Error when calling AccountsApi->accounts_delete: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> accounts_delete_with_http_info(id)
begin
# Delete Account
data, status_code, headers = api_instance.accounts_delete_with_http_info(id)
p status_code # => 2xx
p headers # => { ... }
p data # => <Account>
rescue StackOneHRIS::ApiError => e
puts "Error when calling AccountsApi->accounts_delete_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
- Content-Type: Not defined
- Accept: application/json
accounts_get(id)
Get Account
require 'time'
require 'stackone_hris_client'
# setup authorization
StackOneHRIS.configure do |config|
# Configure HTTP basic authorization: basic
config.api_key_token = 'YOUR API KEY'
end
api_instance = StackOneHRIS::AccountsApi.new
id = 'id_example' # String |
begin
# Get Account
result = api_instance.accounts_get(id)
p result
rescue StackOneHRIS::ApiError => e
puts "Error when calling AccountsApi->accounts_get: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> accounts_get_with_http_info(id)
begin
# Get Account
data, status_code, headers = api_instance.accounts_get_with_http_info(id)
p status_code # => 2xx
p headers # => { ... }
p data # => <Account>
rescue StackOneHRIS::ApiError => e
puts "Error when calling AccountsApi->accounts_get_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
- Content-Type: Not defined
- Accept: application/json
<Array> accounts_list(opts)
List Accounts
require 'time'
require 'stackone_hris_client'
# setup authorization
StackOneHRIS.configure do |config|
# Configure HTTP basic authorization: basic
config.api_key_token = 'YOUR API KEY'
end
api_instance = StackOneHRIS::AccountsApi.new
opts = {
provider: 'provider_example', # String | The provider of the results to fetch
origin_owner_id: 'origin_owner_id_example' # String | The origin owner identifier of the results to fetch
}
begin
# List Accounts
result = api_instance.accounts_list(opts)
p result
rescue StackOneHRIS::ApiError => e
puts "Error when calling AccountsApi->accounts_list: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(<Array>, Integer, Hash)> accounts_list_with_http_info(opts)
begin
# List Accounts
data, status_code, headers = api_instance.accounts_list_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <Array<Account>>
rescue StackOneHRIS::ApiError => e
puts "Error when calling AccountsApi->accounts_list_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| provider | String | The provider of the results to fetch | [optional] |
| origin_owner_id | String | The origin owner identifier of the results to fetch | [optional] |
- Content-Type: Not defined
- Accept: application/json
accounts_meta_get(id)
Get meta information of the account
require 'time'
require 'stackone_hris_client'
# setup authorization
StackOneHRIS.configure do |config|
# Configure HTTP basic authorization: basic
config.api_key_token = 'YOUR API KEY'
end
api_instance = StackOneHRIS::AccountsApi.new
id = 'id_example' # String |
begin
# Get meta information of the account
result = api_instance.accounts_meta_get(id)
p result
rescue StackOneHRIS::ApiError => e
puts "Error when calling AccountsApi->accounts_meta_get: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> accounts_meta_get_with_http_info(id)
begin
# Get meta information of the account
data, status_code, headers = api_instance.accounts_meta_get_with_http_info(id)
p status_code # => 2xx
p headers # => { ... }
p data # => <AccountMeta>
rescue StackOneHRIS::ApiError => e
puts "Error when calling AccountsApi->accounts_meta_get_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| id | String |
- Content-Type: Not defined
- Accept: application/json