affixapi 0.0.1
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 +7 -0
- data/Gemfile +9 -0
- data/LICENSE +19 -0
- data/README.md +374 -0
- data/Rakefile +10 -0
- data/affixapi.gemspec +38 -0
- data/docs/AddressNoNonNullRequest.md +26 -0
- data/docs/AddressResponse.md +26 -0
- data/docs/Class20230301Api.md +1401 -0
- data/docs/ClientRequest.md +24 -0
- data/docs/ClientResponse.md +26 -0
- data/docs/CompanyResponse.md +28 -0
- data/docs/CoreApi.md +69 -0
- data/docs/CreateEmployeeRequest.md +68 -0
- data/docs/CreateEmployeeRequestBankAccount.md +26 -0
- data/docs/CreateEmployeeRequestManager.md +26 -0
- data/docs/CurrencyRequest.md +15 -0
- data/docs/CurrencyResponse.md +15 -0
- data/docs/DeveloperApi.md +777 -0
- data/docs/DisconnectResponse.md +18 -0
- data/docs/EmployeeResponse.md +74 -0
- data/docs/EmploymentNoNullEnumRequest.md +30 -0
- data/docs/EmploymentResponse.md +30 -0
- data/docs/GroupNoNullEnumRequest.md +24 -0
- data/docs/GroupResponse.md +24 -0
- data/docs/IdAndMessageResponse.md +20 -0
- data/docs/IdentityResponse.md +22 -0
- data/docs/InlineResponse400.md +20 -0
- data/docs/InlineResponse401.md +22 -0
- data/docs/InlineResponse409.md +22 -0
- data/docs/IntrospectResponse.md +24 -0
- data/docs/LocationNoNonNullRequest.md +26 -0
- data/docs/LocationResponse.md +26 -0
- data/docs/ManagementApi.md +420 -0
- data/docs/MessageResponse.md +18 -0
- data/docs/ModeRequest.md +15 -0
- data/docs/ModeResponse.md +15 -0
- data/docs/OfficialApi.md +631 -0
- data/docs/PayrunResponse.md +30 -0
- data/docs/PayslipResponse.md +44 -0
- data/docs/PayslipResponseContributions.md +20 -0
- data/docs/PayslipResponseDeductions.md +20 -0
- data/docs/PayslipResponseEarnings.md +22 -0
- data/docs/PayslipResponseTaxes.md +22 -0
- data/docs/ProviderRequest.md +15 -0
- data/docs/ProviderResponse.md +15 -0
- data/docs/ScopesRequest.md +15 -0
- data/docs/ScopesResponse.md +15 -0
- data/docs/TimeOffBalanceResponse.md +32 -0
- data/docs/TimeOffEntryResponse.md +40 -0
- data/docs/TimesheetResponse.md +32 -0
- data/docs/TokenRequest.md +26 -0
- data/docs/TokenResponse.md +26 -0
- data/git_push.sh +58 -0
- data/lib/openapi_client/api/class20230301_api.rb +1198 -0
- data/lib/openapi_client/api/core_api.rb +79 -0
- data/lib/openapi_client/api/developer_api.rb +677 -0
- data/lib/openapi_client/api/management_api.rb +380 -0
- data/lib/openapi_client/api/official_api.rb +543 -0
- data/lib/openapi_client/api_client.rb +390 -0
- data/lib/openapi_client/api_error.rb +57 -0
- data/lib/openapi_client/configuration.rb +288 -0
- data/lib/openapi_client/models/address_no_non_null_request.rb +295 -0
- data/lib/openapi_client/models/address_response.rb +295 -0
- data/lib/openapi_client/models/client_request.rb +269 -0
- data/lib/openapi_client/models/client_response.rb +284 -0
- data/lib/openapi_client/models/company_response.rb +279 -0
- data/lib/openapi_client/models/create_employee_request.rb +568 -0
- data/lib/openapi_client/models/create_employee_request_bank_account.rb +259 -0
- data/lib/openapi_client/models/create_employee_request_manager.rb +263 -0
- data/lib/openapi_client/models/currency_request.rb +38 -0
- data/lib/openapi_client/models/currency_response.rb +38 -0
- data/lib/openapi_client/models/disconnect_response.rb +258 -0
- data/lib/openapi_client/models/employee_response.rb +608 -0
- data/lib/openapi_client/models/employment_no_null_enum_request.rb +329 -0
- data/lib/openapi_client/models/employment_response.rb +329 -0
- data/lib/openapi_client/models/group_no_null_enum_request.rb +283 -0
- data/lib/openapi_client/models/group_response.rb +283 -0
- data/lib/openapi_client/models/id_and_message_response.rb +239 -0
- data/lib/openapi_client/models/identity_response.rb +250 -0
- data/lib/openapi_client/models/inline_response400.rb +227 -0
- data/lib/openapi_client/models/inline_response401.rb +299 -0
- data/lib/openapi_client/models/inline_response409.rb +278 -0
- data/lib/openapi_client/models/introspect_response.rb +269 -0
- data/lib/openapi_client/models/location_no_non_null_request.rb +263 -0
- data/lib/openapi_client/models/location_response.rb +263 -0
- data/lib/openapi_client/models/message_response.rb +223 -0
- data/lib/openapi_client/models/mode_request.rb +37 -0
- data/lib/openapi_client/models/mode_response.rb +37 -0
- data/lib/openapi_client/models/payrun_response.rb +342 -0
- data/lib/openapi_client/models/payslip_response.rb +448 -0
- data/lib/openapi_client/models/payslip_response_contributions.rb +238 -0
- data/lib/openapi_client/models/payslip_response_deductions.rb +238 -0
- data/lib/openapi_client/models/payslip_response_earnings.rb +250 -0
- data/lib/openapi_client/models/payslip_response_taxes.rb +248 -0
- data/lib/openapi_client/models/provider_request.rb +70 -0
- data/lib/openapi_client/models/provider_response.rb +70 -0
- data/lib/openapi_client/models/scopes_request.rb +55 -0
- data/lib/openapi_client/models/scopes_response.rb +55 -0
- data/lib/openapi_client/models/time_off_balance_response.rb +342 -0
- data/lib/openapi_client/models/time_off_entry_response.rb +408 -0
- data/lib/openapi_client/models/timesheet_response.rb +318 -0
- data/lib/openapi_client/models/token_request.rb +318 -0
- data/lib/openapi_client/models/token_response.rb +318 -0
- data/lib/openapi_client/version.rb +15 -0
- data/lib/openapi_client.rb +86 -0
- data/openapi_client-0.0.1.gem +0 -0
- data/pkg/affixapi-0.0.1.gem +0 -0
- data/spec/api/class20230301_api_spec.rb +260 -0
- data/spec/api/core_api_spec.rb +46 -0
- data/spec/api/developer_api_spec.rb +160 -0
- data/spec/api/management_api_spec.rb +103 -0
- data/spec/api/official_api_spec.rb +135 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/address_no_non_null_request_spec.rb +62 -0
- data/spec/models/address_response_spec.rb +62 -0
- data/spec/models/client_request_spec.rb +52 -0
- data/spec/models/client_response_spec.rb +58 -0
- data/spec/models/company_response_spec.rb +64 -0
- data/spec/models/create_employee_request_bank_account_spec.rb +58 -0
- data/spec/models/create_employee_request_manager_spec.rb +58 -0
- data/spec/models/create_employee_request_spec.rb +204 -0
- data/spec/models/currency_request_spec.rb +28 -0
- data/spec/models/currency_response_spec.rb +28 -0
- data/spec/models/disconnect_response_spec.rb +38 -0
- data/spec/models/employee_response_spec.rb +222 -0
- data/spec/models/employment_no_null_enum_request_spec.rb +78 -0
- data/spec/models/employment_response_spec.rb +78 -0
- data/spec/models/group_no_null_enum_request_spec.rb +56 -0
- data/spec/models/group_response_spec.rb +56 -0
- data/spec/models/id_and_message_response_spec.rb +40 -0
- data/spec/models/identity_response_spec.rb +46 -0
- data/spec/models/inline_response400_spec.rb +40 -0
- data/spec/models/inline_response401_spec.rb +54 -0
- data/spec/models/inline_response409_spec.rb +50 -0
- data/spec/models/introspect_response_spec.rb +52 -0
- data/spec/models/location_no_non_null_request_spec.rb +58 -0
- data/spec/models/location_response_spec.rb +58 -0
- data/spec/models/message_response_spec.rb +34 -0
- data/spec/models/mode_request_spec.rb +28 -0
- data/spec/models/mode_response_spec.rb +28 -0
- data/spec/models/payrun_response_spec.rb +78 -0
- data/spec/models/payslip_response_contributions_spec.rb +40 -0
- data/spec/models/payslip_response_deductions_spec.rb +40 -0
- data/spec/models/payslip_response_earnings_spec.rb +46 -0
- data/spec/models/payslip_response_spec.rb +116 -0
- data/spec/models/payslip_response_taxes_spec.rb +46 -0
- data/spec/models/provider_request_spec.rb +28 -0
- data/spec/models/provider_response_spec.rb +28 -0
- data/spec/models/scopes_request_spec.rb +28 -0
- data/spec/models/scopes_response_spec.rb +28 -0
- data/spec/models/time_off_balance_response_spec.rb +80 -0
- data/spec/models/time_off_entry_response_spec.rb +108 -0
- data/spec/models/timesheet_response_spec.rb +76 -0
- data/spec/models/token_request_spec.rb +62 -0
- data/spec/models/token_response_spec.rb +62 -0
- data/spec/spec_helper.rb +111 -0
- metadata +349 -0
|
@@ -0,0 +1,420 @@
|
|
|
1
|
+
# OpenapiClient::ManagementApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.affixapi.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**client**](ManagementApi.md#client) | **GET** /2023-03-01/management/client | Client |
|
|
8
|
+
| [**disconnect**](ManagementApi.md#disconnect) | **POST** /2023-03-01/management/disconnect | Disconnect token |
|
|
9
|
+
| [**introspect**](ManagementApi.md#introspect) | **GET** /2023-03-01/management/introspect | Inspect token |
|
|
10
|
+
| [**token**](ManagementApi.md#token) | **POST** /2023-03-01/management/token | Create token |
|
|
11
|
+
| [**tokens**](ManagementApi.md#tokens) | **GET** /2023-03-01/management/tokens | Tokens |
|
|
12
|
+
| [**update_client**](ManagementApi.md#update_client) | **POST** /2023-03-01/management/client | Update client |
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## client
|
|
16
|
+
|
|
17
|
+
> <ClientResponse> client
|
|
18
|
+
|
|
19
|
+
Client
|
|
20
|
+
|
|
21
|
+
View client attributes
|
|
22
|
+
|
|
23
|
+
### Examples
|
|
24
|
+
|
|
25
|
+
```ruby
|
|
26
|
+
require 'time'
|
|
27
|
+
require 'openapi_client'
|
|
28
|
+
# setup authorization
|
|
29
|
+
OpenapiClient.configure do |config|
|
|
30
|
+
# Configure API key authorization: basic
|
|
31
|
+
config.api_key['basic'] = 'YOUR API KEY'
|
|
32
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
33
|
+
# config.api_key_prefix['basic'] = 'Bearer'
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
api_instance = OpenapiClient::ManagementApi.new
|
|
37
|
+
|
|
38
|
+
begin
|
|
39
|
+
# Client
|
|
40
|
+
result = api_instance.client
|
|
41
|
+
p result
|
|
42
|
+
rescue OpenapiClient::ApiError => e
|
|
43
|
+
puts "Error when calling ManagementApi->client: #{e}"
|
|
44
|
+
end
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
#### Using the client_with_http_info variant
|
|
48
|
+
|
|
49
|
+
This returns an Array which contains the response data, status code and headers.
|
|
50
|
+
|
|
51
|
+
> <Array(<ClientResponse>, Integer, Hash)> client_with_http_info
|
|
52
|
+
|
|
53
|
+
```ruby
|
|
54
|
+
begin
|
|
55
|
+
# Client
|
|
56
|
+
data, status_code, headers = api_instance.client_with_http_info
|
|
57
|
+
p status_code # => 2xx
|
|
58
|
+
p headers # => { ... }
|
|
59
|
+
p data # => <ClientResponse>
|
|
60
|
+
rescue OpenapiClient::ApiError => e
|
|
61
|
+
puts "Error when calling ManagementApi->client_with_http_info: #{e}"
|
|
62
|
+
end
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Parameters
|
|
66
|
+
|
|
67
|
+
This endpoint does not need any parameter.
|
|
68
|
+
|
|
69
|
+
### Return type
|
|
70
|
+
|
|
71
|
+
[**ClientResponse**](ClientResponse.md)
|
|
72
|
+
|
|
73
|
+
### Authorization
|
|
74
|
+
|
|
75
|
+
[basic](../README.md#basic)
|
|
76
|
+
|
|
77
|
+
### HTTP request headers
|
|
78
|
+
|
|
79
|
+
- **Content-Type**: Not defined
|
|
80
|
+
- **Accept**: application/json
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
## disconnect
|
|
84
|
+
|
|
85
|
+
> <DisconnectResponse> disconnect
|
|
86
|
+
|
|
87
|
+
Disconnect token
|
|
88
|
+
|
|
89
|
+
Disconnect the token. A disconnected token will no longer return data. Data requests with a disconnected token will return a 403 Forbidden
|
|
90
|
+
|
|
91
|
+
### Examples
|
|
92
|
+
|
|
93
|
+
```ruby
|
|
94
|
+
require 'time'
|
|
95
|
+
require 'openapi_client'
|
|
96
|
+
# setup authorization
|
|
97
|
+
OpenapiClient.configure do |config|
|
|
98
|
+
# Configure API key authorization: access-token
|
|
99
|
+
config.api_key['access-token'] = 'YOUR API KEY'
|
|
100
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
101
|
+
# config.api_key_prefix['access-token'] = 'Bearer'
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
api_instance = OpenapiClient::ManagementApi.new
|
|
105
|
+
|
|
106
|
+
begin
|
|
107
|
+
# Disconnect token
|
|
108
|
+
result = api_instance.disconnect
|
|
109
|
+
p result
|
|
110
|
+
rescue OpenapiClient::ApiError => e
|
|
111
|
+
puts "Error when calling ManagementApi->disconnect: #{e}"
|
|
112
|
+
end
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
#### Using the disconnect_with_http_info variant
|
|
116
|
+
|
|
117
|
+
This returns an Array which contains the response data, status code and headers.
|
|
118
|
+
|
|
119
|
+
> <Array(<DisconnectResponse>, Integer, Hash)> disconnect_with_http_info
|
|
120
|
+
|
|
121
|
+
```ruby
|
|
122
|
+
begin
|
|
123
|
+
# Disconnect token
|
|
124
|
+
data, status_code, headers = api_instance.disconnect_with_http_info
|
|
125
|
+
p status_code # => 2xx
|
|
126
|
+
p headers # => { ... }
|
|
127
|
+
p data # => <DisconnectResponse>
|
|
128
|
+
rescue OpenapiClient::ApiError => e
|
|
129
|
+
puts "Error when calling ManagementApi->disconnect_with_http_info: #{e}"
|
|
130
|
+
end
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### Parameters
|
|
134
|
+
|
|
135
|
+
This endpoint does not need any parameter.
|
|
136
|
+
|
|
137
|
+
### Return type
|
|
138
|
+
|
|
139
|
+
[**DisconnectResponse**](DisconnectResponse.md)
|
|
140
|
+
|
|
141
|
+
### Authorization
|
|
142
|
+
|
|
143
|
+
[access-token](../README.md#access-token)
|
|
144
|
+
|
|
145
|
+
### HTTP request headers
|
|
146
|
+
|
|
147
|
+
- **Content-Type**: Not defined
|
|
148
|
+
- **Accept**: application/json
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
## introspect
|
|
152
|
+
|
|
153
|
+
> <IntrospectResponse> introspect
|
|
154
|
+
|
|
155
|
+
Inspect token
|
|
156
|
+
|
|
157
|
+
Retrieve data about the token, such as `scopes`, `mode`, `provider`, and if it is active
|
|
158
|
+
|
|
159
|
+
### Examples
|
|
160
|
+
|
|
161
|
+
```ruby
|
|
162
|
+
require 'time'
|
|
163
|
+
require 'openapi_client'
|
|
164
|
+
# setup authorization
|
|
165
|
+
OpenapiClient.configure do |config|
|
|
166
|
+
# Configure API key authorization: access-token
|
|
167
|
+
config.api_key['access-token'] = 'YOUR API KEY'
|
|
168
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
169
|
+
# config.api_key_prefix['access-token'] = 'Bearer'
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
api_instance = OpenapiClient::ManagementApi.new
|
|
173
|
+
|
|
174
|
+
begin
|
|
175
|
+
# Inspect token
|
|
176
|
+
result = api_instance.introspect
|
|
177
|
+
p result
|
|
178
|
+
rescue OpenapiClient::ApiError => e
|
|
179
|
+
puts "Error when calling ManagementApi->introspect: #{e}"
|
|
180
|
+
end
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
#### Using the introspect_with_http_info variant
|
|
184
|
+
|
|
185
|
+
This returns an Array which contains the response data, status code and headers.
|
|
186
|
+
|
|
187
|
+
> <Array(<IntrospectResponse>, Integer, Hash)> introspect_with_http_info
|
|
188
|
+
|
|
189
|
+
```ruby
|
|
190
|
+
begin
|
|
191
|
+
# Inspect token
|
|
192
|
+
data, status_code, headers = api_instance.introspect_with_http_info
|
|
193
|
+
p status_code # => 2xx
|
|
194
|
+
p headers # => { ... }
|
|
195
|
+
p data # => <IntrospectResponse>
|
|
196
|
+
rescue OpenapiClient::ApiError => e
|
|
197
|
+
puts "Error when calling ManagementApi->introspect_with_http_info: #{e}"
|
|
198
|
+
end
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
### Parameters
|
|
202
|
+
|
|
203
|
+
This endpoint does not need any parameter.
|
|
204
|
+
|
|
205
|
+
### Return type
|
|
206
|
+
|
|
207
|
+
[**IntrospectResponse**](IntrospectResponse.md)
|
|
208
|
+
|
|
209
|
+
### Authorization
|
|
210
|
+
|
|
211
|
+
[access-token](../README.md#access-token)
|
|
212
|
+
|
|
213
|
+
### HTTP request headers
|
|
214
|
+
|
|
215
|
+
- **Content-Type**: Not defined
|
|
216
|
+
- **Accept**: application/json
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
## token
|
|
220
|
+
|
|
221
|
+
> <TokenResponse> token(token_request)
|
|
222
|
+
|
|
223
|
+
Create token
|
|
224
|
+
|
|
225
|
+
Exchange an `authorization_code` for an `access_token` after receiving on from the `redirect_uri` you specifiy after a successful user connection
|
|
226
|
+
|
|
227
|
+
### Examples
|
|
228
|
+
|
|
229
|
+
```ruby
|
|
230
|
+
require 'time'
|
|
231
|
+
require 'openapi_client'
|
|
232
|
+
|
|
233
|
+
api_instance = OpenapiClient::ManagementApi.new
|
|
234
|
+
token_request = OpenapiClient::TokenRequest.new({client_id: '00000000-00000000-00000000-00000000', client_secret: 'ffffffff-ffffffff-ffffffff-ffffffff', grant_type: 'authorization_code', code: 'Y2xpZW50IzkzMTU4MGQwLWYwYjctNGJiOC1iYmZmLWI4MTNlYzMxNTVjYXxjb2RlIzE1MmIwYjk3LTg2ZWMtNDZlNC1hZDUyLWY5ZTAxNzE2MDIwNAo=', redirect_uri: 'https://example.com'}) # TokenRequest |
|
|
235
|
+
|
|
236
|
+
begin
|
|
237
|
+
# Create token
|
|
238
|
+
result = api_instance.token(token_request)
|
|
239
|
+
p result
|
|
240
|
+
rescue OpenapiClient::ApiError => e
|
|
241
|
+
puts "Error when calling ManagementApi->token: #{e}"
|
|
242
|
+
end
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
#### Using the token_with_http_info variant
|
|
246
|
+
|
|
247
|
+
This returns an Array which contains the response data, status code and headers.
|
|
248
|
+
|
|
249
|
+
> <Array(<TokenResponse>, Integer, Hash)> token_with_http_info(token_request)
|
|
250
|
+
|
|
251
|
+
```ruby
|
|
252
|
+
begin
|
|
253
|
+
# Create token
|
|
254
|
+
data, status_code, headers = api_instance.token_with_http_info(token_request)
|
|
255
|
+
p status_code # => 2xx
|
|
256
|
+
p headers # => { ... }
|
|
257
|
+
p data # => <TokenResponse>
|
|
258
|
+
rescue OpenapiClient::ApiError => e
|
|
259
|
+
puts "Error when calling ManagementApi->token_with_http_info: #{e}"
|
|
260
|
+
end
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
### Parameters
|
|
264
|
+
|
|
265
|
+
| Name | Type | Description | Notes |
|
|
266
|
+
| ---- | ---- | ----------- | ----- |
|
|
267
|
+
| **token_request** | [**TokenRequest**](TokenRequest.md) | | |
|
|
268
|
+
|
|
269
|
+
### Return type
|
|
270
|
+
|
|
271
|
+
[**TokenResponse**](TokenResponse.md)
|
|
272
|
+
|
|
273
|
+
### Authorization
|
|
274
|
+
|
|
275
|
+
No authorization required
|
|
276
|
+
|
|
277
|
+
### HTTP request headers
|
|
278
|
+
|
|
279
|
+
- **Content-Type**: application/json
|
|
280
|
+
- **Accept**: application/json
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
## tokens
|
|
284
|
+
|
|
285
|
+
> Array<Object> tokens
|
|
286
|
+
|
|
287
|
+
Tokens
|
|
288
|
+
|
|
289
|
+
View tokens and token status for respective client
|
|
290
|
+
|
|
291
|
+
### Examples
|
|
292
|
+
|
|
293
|
+
```ruby
|
|
294
|
+
require 'time'
|
|
295
|
+
require 'openapi_client'
|
|
296
|
+
# setup authorization
|
|
297
|
+
OpenapiClient.configure do |config|
|
|
298
|
+
# Configure API key authorization: basic
|
|
299
|
+
config.api_key['basic'] = 'YOUR API KEY'
|
|
300
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
301
|
+
# config.api_key_prefix['basic'] = 'Bearer'
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
api_instance = OpenapiClient::ManagementApi.new
|
|
305
|
+
|
|
306
|
+
begin
|
|
307
|
+
# Tokens
|
|
308
|
+
result = api_instance.tokens
|
|
309
|
+
p result
|
|
310
|
+
rescue OpenapiClient::ApiError => e
|
|
311
|
+
puts "Error when calling ManagementApi->tokens: #{e}"
|
|
312
|
+
end
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
#### Using the tokens_with_http_info variant
|
|
316
|
+
|
|
317
|
+
This returns an Array which contains the response data, status code and headers.
|
|
318
|
+
|
|
319
|
+
> <Array(Array<Object>, Integer, Hash)> tokens_with_http_info
|
|
320
|
+
|
|
321
|
+
```ruby
|
|
322
|
+
begin
|
|
323
|
+
# Tokens
|
|
324
|
+
data, status_code, headers = api_instance.tokens_with_http_info
|
|
325
|
+
p status_code # => 2xx
|
|
326
|
+
p headers # => { ... }
|
|
327
|
+
p data # => Array<Object>
|
|
328
|
+
rescue OpenapiClient::ApiError => e
|
|
329
|
+
puts "Error when calling ManagementApi->tokens_with_http_info: #{e}"
|
|
330
|
+
end
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
### Parameters
|
|
334
|
+
|
|
335
|
+
This endpoint does not need any parameter.
|
|
336
|
+
|
|
337
|
+
### Return type
|
|
338
|
+
|
|
339
|
+
**Array<Object>**
|
|
340
|
+
|
|
341
|
+
### Authorization
|
|
342
|
+
|
|
343
|
+
[basic](../README.md#basic)
|
|
344
|
+
|
|
345
|
+
### HTTP request headers
|
|
346
|
+
|
|
347
|
+
- **Content-Type**: Not defined
|
|
348
|
+
- **Accept**: application/json
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
## update_client
|
|
352
|
+
|
|
353
|
+
> <ClientResponse> update_client(client_request)
|
|
354
|
+
|
|
355
|
+
Update client
|
|
356
|
+
|
|
357
|
+
Update attributes of the client. Update the `name`, `client_secret`, or `webhook_uri` of the client
|
|
358
|
+
|
|
359
|
+
### Examples
|
|
360
|
+
|
|
361
|
+
```ruby
|
|
362
|
+
require 'time'
|
|
363
|
+
require 'openapi_client'
|
|
364
|
+
# setup authorization
|
|
365
|
+
OpenapiClient.configure do |config|
|
|
366
|
+
# Configure API key authorization: basic
|
|
367
|
+
config.api_key['basic'] = 'YOUR API KEY'
|
|
368
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
369
|
+
# config.api_key_prefix['basic'] = 'Bearer'
|
|
370
|
+
end
|
|
371
|
+
|
|
372
|
+
api_instance = OpenapiClient::ManagementApi.new
|
|
373
|
+
client_request = OpenapiClient::ClientRequest.new({client_secret: ['client_secret_example'], redirect_uris: ['redirect_uris_example'], name: 'Your App'}) # ClientRequest |
|
|
374
|
+
|
|
375
|
+
begin
|
|
376
|
+
# Update client
|
|
377
|
+
result = api_instance.update_client(client_request)
|
|
378
|
+
p result
|
|
379
|
+
rescue OpenapiClient::ApiError => e
|
|
380
|
+
puts "Error when calling ManagementApi->update_client: #{e}"
|
|
381
|
+
end
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
#### Using the update_client_with_http_info variant
|
|
385
|
+
|
|
386
|
+
This returns an Array which contains the response data, status code and headers.
|
|
387
|
+
|
|
388
|
+
> <Array(<ClientResponse>, Integer, Hash)> update_client_with_http_info(client_request)
|
|
389
|
+
|
|
390
|
+
```ruby
|
|
391
|
+
begin
|
|
392
|
+
# Update client
|
|
393
|
+
data, status_code, headers = api_instance.update_client_with_http_info(client_request)
|
|
394
|
+
p status_code # => 2xx
|
|
395
|
+
p headers # => { ... }
|
|
396
|
+
p data # => <ClientResponse>
|
|
397
|
+
rescue OpenapiClient::ApiError => e
|
|
398
|
+
puts "Error when calling ManagementApi->update_client_with_http_info: #{e}"
|
|
399
|
+
end
|
|
400
|
+
```
|
|
401
|
+
|
|
402
|
+
### Parameters
|
|
403
|
+
|
|
404
|
+
| Name | Type | Description | Notes |
|
|
405
|
+
| ---- | ---- | ----------- | ----- |
|
|
406
|
+
| **client_request** | [**ClientRequest**](ClientRequest.md) | | |
|
|
407
|
+
|
|
408
|
+
### Return type
|
|
409
|
+
|
|
410
|
+
[**ClientResponse**](ClientResponse.md)
|
|
411
|
+
|
|
412
|
+
### Authorization
|
|
413
|
+
|
|
414
|
+
[basic](../README.md#basic)
|
|
415
|
+
|
|
416
|
+
### HTTP request headers
|
|
417
|
+
|
|
418
|
+
- **Content-Type**: application/json
|
|
419
|
+
- **Accept**: application/json
|
|
420
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# OpenapiClient::MessageResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **message** | **String** | | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'openapi_client'
|
|
13
|
+
|
|
14
|
+
instance = OpenapiClient::MessageResponse.new(
|
|
15
|
+
message: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
data/docs/ModeRequest.md
ADDED