stackone_hris_client 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +15 -4
- data/docs/Account.md +32 -0
- data/docs/AccountsApi.md +147 -0
- data/docs/ConnectSession.md +34 -0
- data/docs/ConnectSessionAuthenticate.md +18 -0
- data/docs/ConnectSessionCreate.md +28 -0
- data/docs/ConnectSessionToken.md +36 -0
- data/docs/ConnectSessionsApi.md +143 -0
- data/docs/EmployeesApi.md +6 -2
- data/gem-config.yml +1 -1
- data/lib/stackone_hris_client/api/accounts_api.rb +144 -0
- data/lib/stackone_hris_client/api/connect_sessions_api.rb +154 -0
- data/lib/stackone_hris_client/api/employees_api.rb +6 -0
- data/lib/stackone_hris_client/configuration.rb +9 -8
- data/lib/stackone_hris_client/models/account.rb +320 -0
- data/lib/stackone_hris_client/models/connect_session.rb +348 -0
- data/lib/stackone_hris_client/models/connect_session_authenticate.rb +223 -0
- data/lib/stackone_hris_client/models/connect_session_create.rb +302 -0
- data/lib/stackone_hris_client/models/connect_session_token.rb +362 -0
- data/lib/stackone_hris_client/version.rb +1 -1
- data/lib/stackone_hris_client.rb +7 -0
- data/spec/api/accounts_api_spec.rb +58 -0
- data/spec/api/connect_sessions_api_spec.rb +57 -0
- data/spec/models/account_spec.rb +76 -0
- data/spec/models/connect_session_authenticate_spec.rb +34 -0
- data/spec/models/connect_session_create_spec.rb +68 -0
- data/spec/models/connect_session_spec.rb +86 -0
- data/spec/models/connect_session_token_spec.rb +92 -0
- metadata +30 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e3fcb0d1dde740779af40d971309c57e698435f3cf1204cfa64a70c5aab1003
|
4
|
+
data.tar.gz: 3357889e461742ed18574323cc7525054afc452a394e8f0d603495818dc6f1de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa13bc5f05a3f1ea7446c02e51c39752e2f19107a3251d8de90274ee1c7d20dbab7e297138822339ad19e79f52f74d966ca0e9b03c2dd949e48a122951cc4712
|
7
|
+
data.tar.gz: de6d30d22dd7b25fd5b81de49e4cd6a391e323b95d3950126df96652e58e29c39f19d451fdddaf992fa54abe227f948f87961d49a54e8cdf5d3431c6e5929a01
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -7,7 +7,7 @@ The documentation for the StackOne Unified API
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: 1.0
|
10
|
-
- Package version: 1.
|
10
|
+
- Package version: 1.1.0
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,16 +23,16 @@ gem build stackone_hris_client.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./stackone_hris_client-1.
|
26
|
+
gem install ./stackone_hris_client-1.1.0.gem
|
27
27
|
```
|
28
28
|
|
29
|
-
(for development, run `gem install --dev ./stackone_hris_client-1.
|
29
|
+
(for development, run `gem install --dev ./stackone_hris_client-1.1.0.gem` to install the development dependencies)
|
30
30
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
32
32
|
|
33
33
|
Finally add this to the Gemfile:
|
34
34
|
|
35
|
-
gem 'stackone_hris_client', '~> 1.
|
35
|
+
gem 'stackone_hris_client', '~> 1.1.0'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -89,15 +89,26 @@ All URIs are relative to *http://localhost*
|
|
89
89
|
|
90
90
|
Class | Method | HTTP request | Description
|
91
91
|
------------ | ------------- | ------------- | -------------
|
92
|
+
*StackOneHrisClient::AccountsApi* | [**accounts_get**](docs/AccountsApi.md#accounts_get) | **GET** /accounts/{id} |
|
93
|
+
*StackOneHrisClient::AccountsApi* | [**accounts_list**](docs/AccountsApi.md#accounts_list) | **GET** /accounts |
|
94
|
+
*StackOneHrisClient::ConnectSessionsApi* | [**connect_sessions_authenticate**](docs/ConnectSessionsApi.md#connect_sessions_authenticate) | **POST** /connect_sessions/authenticate |
|
95
|
+
*StackOneHrisClient::ConnectSessionsApi* | [**connect_sessions_create**](docs/ConnectSessionsApi.md#connect_sessions_create) | **POST** /connect_sessions |
|
92
96
|
*StackOneHrisClient::EmployeesApi* | [**employees_get**](docs/EmployeesApi.md#employees_get) | **GET** /unified/hris/employees/{id} |
|
93
97
|
*StackOneHrisClient::EmployeesApi* | [**employees_list**](docs/EmployeesApi.md#employees_list) | **GET** /unified/hris/employees |
|
94
98
|
|
99
|
+
|
95
100
|
## Documentation for Models
|
96
101
|
|
102
|
+
- [StackOneHrisClient::Account](docs/Account.md)
|
103
|
+
- [StackOneHrisClient::ConnectSession](docs/ConnectSession.md)
|
104
|
+
- [StackOneHrisClient::ConnectSessionAuthenticate](docs/ConnectSessionAuthenticate.md)
|
105
|
+
- [StackOneHrisClient::ConnectSessionCreate](docs/ConnectSessionCreate.md)
|
106
|
+
- [StackOneHrisClient::ConnectSessionToken](docs/ConnectSessionToken.md)
|
97
107
|
- [StackOneHrisClient::Employee](docs/Employee.md)
|
98
108
|
- [StackOneHrisClient::EmployeeResult](docs/EmployeeResult.md)
|
99
109
|
- [StackOneHrisClient::EmployeesPaginated](docs/EmployeesPaginated.md)
|
100
110
|
|
111
|
+
|
101
112
|
## Documentation for Authorization
|
102
113
|
|
103
114
|
|
data/docs/Account.md
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# StackOneHrisClient::Account
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | | |
|
8
|
+
| **provider** | **String** | | |
|
9
|
+
| **origin_owner_id** | **String** | | |
|
10
|
+
| **origin_owner_name** | **String** | | |
|
11
|
+
| **origin_username** | **String** | | |
|
12
|
+
| **credentials** | **Object** | | |
|
13
|
+
| **created_at** | **Time** | | |
|
14
|
+
| **updated_at** | **Time** | | |
|
15
|
+
|
16
|
+
## Example
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'stackone_hris_client'
|
20
|
+
|
21
|
+
instance = StackOneHrisClient::Account.new(
|
22
|
+
id: null,
|
23
|
+
provider: null,
|
24
|
+
origin_owner_id: null,
|
25
|
+
origin_owner_name: null,
|
26
|
+
origin_username: null,
|
27
|
+
credentials: null,
|
28
|
+
created_at: null,
|
29
|
+
updated_at: null
|
30
|
+
)
|
31
|
+
```
|
32
|
+
|
data/docs/AccountsApi.md
ADDED
@@ -0,0 +1,147 @@
|
|
1
|
+
# StackOneHrisClient::AccountsApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**accounts_get**](AccountsApi.md#accounts_get) | **GET** /accounts/{id} | |
|
8
|
+
| [**accounts_list**](AccountsApi.md#accounts_list) | **GET** /accounts | |
|
9
|
+
|
10
|
+
|
11
|
+
## accounts_get
|
12
|
+
|
13
|
+
> <Account> accounts_get(id)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
### Examples
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'time'
|
21
|
+
require 'stackone_hris_client'
|
22
|
+
# setup authorization
|
23
|
+
StackOneHrisClient.configure do |config|
|
24
|
+
# Configure HTTP basic authorization: basic
|
25
|
+
config.api_key_token = 'YOUR API KEY'
|
26
|
+
end
|
27
|
+
|
28
|
+
api_instance = StackOneHrisClient::AccountsApi.new
|
29
|
+
id = 'id_example' # String |
|
30
|
+
|
31
|
+
begin
|
32
|
+
#
|
33
|
+
result = api_instance.accounts_get(id)
|
34
|
+
p result
|
35
|
+
rescue StackOneHrisClient::ApiError => e
|
36
|
+
puts "Error when calling AccountsApi->accounts_get: #{e}"
|
37
|
+
end
|
38
|
+
```
|
39
|
+
|
40
|
+
#### Using the accounts_get_with_http_info variant
|
41
|
+
|
42
|
+
This returns an Array which contains the response data, status code and headers.
|
43
|
+
|
44
|
+
> <Array(<Account>, Integer, Hash)> accounts_get_with_http_info(id)
|
45
|
+
|
46
|
+
```ruby
|
47
|
+
begin
|
48
|
+
#
|
49
|
+
data, status_code, headers = api_instance.accounts_get_with_http_info(id)
|
50
|
+
p status_code # => 2xx
|
51
|
+
p headers # => { ... }
|
52
|
+
p data # => <Account>
|
53
|
+
rescue StackOneHrisClient::ApiError => e
|
54
|
+
puts "Error when calling AccountsApi->accounts_get_with_http_info: #{e}"
|
55
|
+
end
|
56
|
+
```
|
57
|
+
|
58
|
+
### Parameters
|
59
|
+
|
60
|
+
| Name | Type | Description | Notes |
|
61
|
+
| ---- | ---- | ----------- | ----- |
|
62
|
+
| **id** | **String** | | |
|
63
|
+
|
64
|
+
### Return type
|
65
|
+
|
66
|
+
[**Account**](Account.md)
|
67
|
+
|
68
|
+
### Authorization
|
69
|
+
|
70
|
+
[basic](../README.md#basic)
|
71
|
+
|
72
|
+
### HTTP request headers
|
73
|
+
|
74
|
+
- **Content-Type**: Not defined
|
75
|
+
- **Accept**: application/json
|
76
|
+
|
77
|
+
|
78
|
+
## accounts_list
|
79
|
+
|
80
|
+
> <Array<Account>> accounts_list(opts)
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
### Examples
|
85
|
+
|
86
|
+
```ruby
|
87
|
+
require 'time'
|
88
|
+
require 'stackone_hris_client'
|
89
|
+
# setup authorization
|
90
|
+
StackOneHrisClient.configure do |config|
|
91
|
+
# Configure HTTP basic authorization: basic
|
92
|
+
config.api_key_token = 'YOUR API KEY'
|
93
|
+
end
|
94
|
+
|
95
|
+
api_instance = StackOneHrisClient::AccountsApi.new
|
96
|
+
opts = {
|
97
|
+
provider: 'provider_example', # String | The provider of the results to fetch
|
98
|
+
origin_owner_id: 'origin_owner_id_example' # String | The origin owner identifier of the results to fetch
|
99
|
+
}
|
100
|
+
|
101
|
+
begin
|
102
|
+
#
|
103
|
+
result = api_instance.accounts_list(opts)
|
104
|
+
p result
|
105
|
+
rescue StackOneHrisClient::ApiError => e
|
106
|
+
puts "Error when calling AccountsApi->accounts_list: #{e}"
|
107
|
+
end
|
108
|
+
```
|
109
|
+
|
110
|
+
#### Using the accounts_list_with_http_info variant
|
111
|
+
|
112
|
+
This returns an Array which contains the response data, status code and headers.
|
113
|
+
|
114
|
+
> <Array(<Array<Account>>, Integer, Hash)> accounts_list_with_http_info(opts)
|
115
|
+
|
116
|
+
```ruby
|
117
|
+
begin
|
118
|
+
#
|
119
|
+
data, status_code, headers = api_instance.accounts_list_with_http_info(opts)
|
120
|
+
p status_code # => 2xx
|
121
|
+
p headers # => { ... }
|
122
|
+
p data # => <Array<Account>>
|
123
|
+
rescue StackOneHrisClient::ApiError => e
|
124
|
+
puts "Error when calling AccountsApi->accounts_list_with_http_info: #{e}"
|
125
|
+
end
|
126
|
+
```
|
127
|
+
|
128
|
+
### Parameters
|
129
|
+
|
130
|
+
| Name | Type | Description | Notes |
|
131
|
+
| ---- | ---- | ----------- | ----- |
|
132
|
+
| **provider** | **String** | The provider of the results to fetch | [optional] |
|
133
|
+
| **origin_owner_id** | **String** | The origin owner identifier of the results to fetch | [optional] |
|
134
|
+
|
135
|
+
### Return type
|
136
|
+
|
137
|
+
[**Array<Account>**](Account.md)
|
138
|
+
|
139
|
+
### Authorization
|
140
|
+
|
141
|
+
[basic](../README.md#basic)
|
142
|
+
|
143
|
+
### HTTP request headers
|
144
|
+
|
145
|
+
- **Content-Type**: Not defined
|
146
|
+
- **Accept**: application/json
|
147
|
+
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# StackOneHrisClient::ConnectSession
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | | |
|
8
|
+
| **organization_id** | **String** | | |
|
9
|
+
| **project_id** | **String** | | |
|
10
|
+
| **categories** | **Array<String>** | | [optional] |
|
11
|
+
| **provider** | **String** | | |
|
12
|
+
| **origin_owner_id** | **String** | | |
|
13
|
+
| **origin_owner_name** | **String** | | |
|
14
|
+
| **origin_username** | **String** | | [optional] |
|
15
|
+
| **created_at** | **Time** | | |
|
16
|
+
|
17
|
+
## Example
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'stackone_hris_client'
|
21
|
+
|
22
|
+
instance = StackOneHrisClient::ConnectSession.new(
|
23
|
+
id: null,
|
24
|
+
organization_id: null,
|
25
|
+
project_id: null,
|
26
|
+
categories: ["ats","hris","crm"],
|
27
|
+
provider: null,
|
28
|
+
origin_owner_id: null,
|
29
|
+
origin_owner_name: null,
|
30
|
+
origin_username: null,
|
31
|
+
created_at: null
|
32
|
+
)
|
33
|
+
```
|
34
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# StackOneHrisClient::ConnectSessionAuthenticate
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **token** | **String** | The token to authenticate with | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'stackone_hris_client'
|
13
|
+
|
14
|
+
instance = StackOneHrisClient::ConnectSessionAuthenticate.new(
|
15
|
+
token: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# StackOneHrisClient::ConnectSessionCreate
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **categories** | **Array<String>** | The categories of the provider to connect to | [optional] |
|
8
|
+
| **provider** | **String** | The provider to connect to | [optional] |
|
9
|
+
| **origin_owner_id** | **String** | The origin owner identifier | |
|
10
|
+
| **origin_owner_name** | **String** | The origin owner name | |
|
11
|
+
| **origin_username** | **String** | The origin username | [optional] |
|
12
|
+
| **metadata** | **Object** | The metadata for the connection | [optional] |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'stackone_hris_client'
|
18
|
+
|
19
|
+
instance = StackOneHrisClient::ConnectSessionCreate.new(
|
20
|
+
categories: ["ats","hris","crm"],
|
21
|
+
provider: null,
|
22
|
+
origin_owner_id: null,
|
23
|
+
origin_owner_name: null,
|
24
|
+
origin_username: null,
|
25
|
+
metadata: null
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# StackOneHrisClient::ConnectSessionToken
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | | |
|
8
|
+
| **organization_id** | **String** | | |
|
9
|
+
| **project_id** | **String** | | |
|
10
|
+
| **categories** | **Array<String>** | | [optional] |
|
11
|
+
| **provider** | **String** | | |
|
12
|
+
| **origin_owner_id** | **String** | | |
|
13
|
+
| **origin_owner_name** | **String** | | |
|
14
|
+
| **origin_username** | **String** | | [optional] |
|
15
|
+
| **created_at** | **Time** | | |
|
16
|
+
| **token** | **String** | | |
|
17
|
+
|
18
|
+
## Example
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'stackone_hris_client'
|
22
|
+
|
23
|
+
instance = StackOneHrisClient::ConnectSessionToken.new(
|
24
|
+
id: null,
|
25
|
+
organization_id: null,
|
26
|
+
project_id: null,
|
27
|
+
categories: ["ats","hris","crm"],
|
28
|
+
provider: null,
|
29
|
+
origin_owner_id: null,
|
30
|
+
origin_owner_name: null,
|
31
|
+
origin_username: null,
|
32
|
+
created_at: null,
|
33
|
+
token: null
|
34
|
+
)
|
35
|
+
```
|
36
|
+
|
@@ -0,0 +1,143 @@
|
|
1
|
+
# StackOneHrisClient::ConnectSessionsApi
|
2
|
+
|
3
|
+
All URIs are relative to *http://localhost*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**connect_sessions_authenticate**](ConnectSessionsApi.md#connect_sessions_authenticate) | **POST** /connect_sessions/authenticate | |
|
8
|
+
| [**connect_sessions_create**](ConnectSessionsApi.md#connect_sessions_create) | **POST** /connect_sessions | |
|
9
|
+
|
10
|
+
|
11
|
+
## connect_sessions_authenticate
|
12
|
+
|
13
|
+
> <ConnectSession> connect_sessions_authenticate(connect_session_authenticate)
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
### Examples
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'time'
|
21
|
+
require 'stackone_hris_client'
|
22
|
+
# setup authorization
|
23
|
+
StackOneHrisClient.configure do |config|
|
24
|
+
# Configure HTTP basic authorization: basic
|
25
|
+
config.api_key_token = 'YOUR API KEY'
|
26
|
+
end
|
27
|
+
|
28
|
+
api_instance = StackOneHrisClient::ConnectSessionsApi.new
|
29
|
+
connect_session_authenticate = StackOneHrisClient::ConnectSessionAuthenticate.new({token: 'token_example'}) # ConnectSessionAuthenticate | The parameters to authenticate
|
30
|
+
|
31
|
+
begin
|
32
|
+
#
|
33
|
+
result = api_instance.connect_sessions_authenticate(connect_session_authenticate)
|
34
|
+
p result
|
35
|
+
rescue StackOneHrisClient::ApiError => e
|
36
|
+
puts "Error when calling ConnectSessionsApi->connect_sessions_authenticate: #{e}"
|
37
|
+
end
|
38
|
+
```
|
39
|
+
|
40
|
+
#### Using the connect_sessions_authenticate_with_http_info variant
|
41
|
+
|
42
|
+
This returns an Array which contains the response data, status code and headers.
|
43
|
+
|
44
|
+
> <Array(<ConnectSession>, Integer, Hash)> connect_sessions_authenticate_with_http_info(connect_session_authenticate)
|
45
|
+
|
46
|
+
```ruby
|
47
|
+
begin
|
48
|
+
#
|
49
|
+
data, status_code, headers = api_instance.connect_sessions_authenticate_with_http_info(connect_session_authenticate)
|
50
|
+
p status_code # => 2xx
|
51
|
+
p headers # => { ... }
|
52
|
+
p data # => <ConnectSession>
|
53
|
+
rescue StackOneHrisClient::ApiError => e
|
54
|
+
puts "Error when calling ConnectSessionsApi->connect_sessions_authenticate_with_http_info: #{e}"
|
55
|
+
end
|
56
|
+
```
|
57
|
+
|
58
|
+
### Parameters
|
59
|
+
|
60
|
+
| Name | Type | Description | Notes |
|
61
|
+
| ---- | ---- | ----------- | ----- |
|
62
|
+
| **connect_session_authenticate** | [**ConnectSessionAuthenticate**](ConnectSessionAuthenticate.md) | The parameters to authenticate | |
|
63
|
+
|
64
|
+
### Return type
|
65
|
+
|
66
|
+
[**ConnectSession**](ConnectSession.md)
|
67
|
+
|
68
|
+
### Authorization
|
69
|
+
|
70
|
+
[basic](../README.md#basic)
|
71
|
+
|
72
|
+
### HTTP request headers
|
73
|
+
|
74
|
+
- **Content-Type**: application/json
|
75
|
+
- **Accept**: application/json
|
76
|
+
|
77
|
+
|
78
|
+
## connect_sessions_create
|
79
|
+
|
80
|
+
> <ConnectSessionToken> connect_sessions_create(connect_session_create)
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
### Examples
|
85
|
+
|
86
|
+
```ruby
|
87
|
+
require 'time'
|
88
|
+
require 'stackone_hris_client'
|
89
|
+
# setup authorization
|
90
|
+
StackOneHrisClient.configure do |config|
|
91
|
+
# Configure HTTP basic authorization: basic
|
92
|
+
config.api_key_token = 'YOUR API KEY'
|
93
|
+
end
|
94
|
+
|
95
|
+
api_instance = StackOneHrisClient::ConnectSessionsApi.new
|
96
|
+
connect_session_create = StackOneHrisClient::ConnectSessionCreate.new({origin_owner_id: 'origin_owner_id_example', origin_owner_name: 'origin_owner_name_example'}) # ConnectSessionCreate |
|
97
|
+
|
98
|
+
begin
|
99
|
+
#
|
100
|
+
result = api_instance.connect_sessions_create(connect_session_create)
|
101
|
+
p result
|
102
|
+
rescue StackOneHrisClient::ApiError => e
|
103
|
+
puts "Error when calling ConnectSessionsApi->connect_sessions_create: #{e}"
|
104
|
+
end
|
105
|
+
```
|
106
|
+
|
107
|
+
#### Using the connect_sessions_create_with_http_info variant
|
108
|
+
|
109
|
+
This returns an Array which contains the response data, status code and headers.
|
110
|
+
|
111
|
+
> <Array(<ConnectSessionToken>, Integer, Hash)> connect_sessions_create_with_http_info(connect_session_create)
|
112
|
+
|
113
|
+
```ruby
|
114
|
+
begin
|
115
|
+
#
|
116
|
+
data, status_code, headers = api_instance.connect_sessions_create_with_http_info(connect_session_create)
|
117
|
+
p status_code # => 2xx
|
118
|
+
p headers # => { ... }
|
119
|
+
p data # => <ConnectSessionToken>
|
120
|
+
rescue StackOneHrisClient::ApiError => e
|
121
|
+
puts "Error when calling ConnectSessionsApi->connect_sessions_create_with_http_info: #{e}"
|
122
|
+
end
|
123
|
+
```
|
124
|
+
|
125
|
+
### Parameters
|
126
|
+
|
127
|
+
| Name | Type | Description | Notes |
|
128
|
+
| ---- | ---- | ----------- | ----- |
|
129
|
+
| **connect_session_create** | [**ConnectSessionCreate**](ConnectSessionCreate.md) | | |
|
130
|
+
|
131
|
+
### Return type
|
132
|
+
|
133
|
+
[**ConnectSessionToken**](ConnectSessionToken.md)
|
134
|
+
|
135
|
+
### Authorization
|
136
|
+
|
137
|
+
[basic](../README.md#basic)
|
138
|
+
|
139
|
+
### HTTP request headers
|
140
|
+
|
141
|
+
- **Content-Type**: application/json
|
142
|
+
- **Accept**: application/json
|
143
|
+
|
data/docs/EmployeesApi.md
CHANGED
@@ -33,7 +33,8 @@ opts = {
|
|
33
33
|
page_size: 'page_size_example', # String | The number of results per page
|
34
34
|
raw: true, # Boolean | Indicates that the raw request result is returned
|
35
35
|
fields: ['inner_example'], # Array<String> | The list of fields to return in the response (if empty, all fields are returned)
|
36
|
-
expand: ['inner_example'] # Array<String> | The list of fields that will be expanded in the response
|
36
|
+
expand: ['inner_example'], # Array<String> | The list of fields that will be expanded in the response
|
37
|
+
sync_token: 'sync_token_example' # String | The sync token to select the only updated results
|
37
38
|
}
|
38
39
|
|
39
40
|
begin
|
@@ -74,6 +75,7 @@ end
|
|
74
75
|
| **raw** | **Boolean** | Indicates that the raw request result is returned | [optional][default to false] |
|
75
76
|
| **fields** | [**Array<String>**](String.md) | The list of fields to return in the response (if empty, all fields are returned) | [optional] |
|
76
77
|
| **expand** | [**Array<String>**](String.md) | The list of fields that will be expanded in the response | [optional] |
|
78
|
+
| **sync_token** | **String** | The sync token to select the only updated results | [optional] |
|
77
79
|
|
78
80
|
### Return type
|
79
81
|
|
@@ -113,7 +115,8 @@ opts = {
|
|
113
115
|
page_size: 'page_size_example', # String | The number of results per page
|
114
116
|
raw: true, # Boolean | Indicates that the raw request result is returned
|
115
117
|
fields: ['inner_example'], # Array<String> | The list of fields to return in the response (if empty, all fields are returned)
|
116
|
-
expand: ['inner_example'] # Array<String> | The list of fields that will be expanded in the response
|
118
|
+
expand: ['inner_example'], # Array<String> | The list of fields that will be expanded in the response
|
119
|
+
sync_token: 'sync_token_example' # String | The sync token to select the only updated results
|
117
120
|
}
|
118
121
|
|
119
122
|
begin
|
@@ -153,6 +156,7 @@ end
|
|
153
156
|
| **raw** | **Boolean** | Indicates that the raw request result is returned | [optional][default to false] |
|
154
157
|
| **fields** | [**Array<String>**](String.md) | The list of fields to return in the response (if empty, all fields are returned) | [optional] |
|
155
158
|
| **expand** | [**Array<String>**](String.md) | The list of fields that will be expanded in the response | [optional] |
|
159
|
+
| **sync_token** | **String** | The sync token to select the only updated results | [optional] |
|
156
160
|
|
157
161
|
### Return type
|
158
162
|
|
data/gem-config.yml
CHANGED