postboost 1.0.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.
Files changed (206) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/LICENSE +21 -0
  4. data/README.md +0 -0
  5. data/Rakefile +10 -0
  6. data/docs/Account.md +34 -0
  7. data/docs/AccountsApi.md +149 -0
  8. data/docs/AddGenericSubscriptionRequest.md +22 -0
  9. data/docs/ChangeSubscriptionPlanRequest.md +24 -0
  10. data/docs/CheckoutSubscription200Response.md +18 -0
  11. data/docs/CheckoutSubscriptionRequest.md +22 -0
  12. data/docs/DeleteMediaBulkRequest.md +18 -0
  13. data/docs/DeleteMode.md +15 -0
  14. data/docs/DeletePostRequest.md +20 -0
  15. data/docs/DeletePostsBulkRequest.md +22 -0
  16. data/docs/DeleteReceiptsBulkRequest.md +18 -0
  17. data/docs/DeleteResult.md +22 -0
  18. data/docs/DeleteUser400Response.md +20 -0
  19. data/docs/DeleteUsersBulkRequest.md +18 -0
  20. data/docs/DeleteWorkspacesBulkRequest.md +18 -0
  21. data/docs/GetRemoteUploadStatus200Response.md +20 -0
  22. data/docs/InitiateChunkedUpload200Response.md +22 -0
  23. data/docs/InitiateChunkedUploadRequest.md +22 -0
  24. data/docs/InitiateRemoteUpload200Response.md +49 -0
  25. data/docs/InitiateRemoteUpload200ResponseOneOf.md +18 -0
  26. data/docs/InitiateRemoteUploadRequest.md +20 -0
  27. data/docs/ListAccounts200Response.md +18 -0
  28. data/docs/ListMedia200Response.md +22 -0
  29. data/docs/ListPosts200Response.md +22 -0
  30. data/docs/ListReceipts200Response.md +22 -0
  31. data/docs/ListTags200Response.md +18 -0
  32. data/docs/ListUsers200Response.md +22 -0
  33. data/docs/ListWorkspaces200Response.md +22 -0
  34. data/docs/Media.md +34 -0
  35. data/docs/MediaApi.md +810 -0
  36. data/docs/PaginationMeta.md +20 -0
  37. data/docs/PaginationMetaLinks.md +24 -0
  38. data/docs/PaginationMetaMeta.md +28 -0
  39. data/docs/Post.md +36 -0
  40. data/docs/PostContent.md +24 -0
  41. data/docs/PostInput.md +34 -0
  42. data/docs/PostStatus.md +15 -0
  43. data/docs/PostVersion.md +24 -0
  44. data/docs/PostsApi.md +659 -0
  45. data/docs/Receipt.md +36 -0
  46. data/docs/ReceiptInput.md +34 -0
  47. data/docs/ReceiptUpdateInput.md +32 -0
  48. data/docs/ReceiptsApi.md +421 -0
  49. data/docs/RemoveUserFromWorkspaceRequest.md +18 -0
  50. data/docs/SchedulePostRequest.md +18 -0
  51. data/docs/ScheduleResult.md +20 -0
  52. data/docs/Subscription.md +32 -0
  53. data/docs/SubscriptionInput.md +24 -0
  54. data/docs/SubscriptionStatus.md +15 -0
  55. data/docs/SubscriptionUpdateInput.md +24 -0
  56. data/docs/SubscriptionsApi.md +699 -0
  57. data/docs/Tag.md +24 -0
  58. data/docs/TagInput.md +20 -0
  59. data/docs/TagsApi.md +357 -0
  60. data/docs/UpdateMediaRequest.md +18 -0
  61. data/docs/UploadChunk200Response.md +18 -0
  62. data/docs/User.md +28 -0
  63. data/docs/UserInput.md +26 -0
  64. data/docs/UserUpdateInput.md +26 -0
  65. data/docs/UsersApi.md +419 -0
  66. data/docs/Workspace.md +28 -0
  67. data/docs/WorkspaceInput.md +24 -0
  68. data/docs/WorkspaceUserInput.md +24 -0
  69. data/docs/WorkspacesApi.md +637 -0
  70. data/git_push.sh +57 -0
  71. data/lib/postboost/api/accounts_api.rb +154 -0
  72. data/lib/postboost/api/media_api.rb +836 -0
  73. data/lib/postboost/api/posts_api.rb +673 -0
  74. data/lib/postboost/api/receipts_api.rb +409 -0
  75. data/lib/postboost/api/subscriptions_api.rb +689 -0
  76. data/lib/postboost/api/tags_api.rb +367 -0
  77. data/lib/postboost/api/users_api.rb +406 -0
  78. data/lib/postboost/api/workspaces_api.rb +640 -0
  79. data/lib/postboost/api_client.rb +394 -0
  80. data/lib/postboost/api_error.rb +58 -0
  81. data/lib/postboost/configuration.rb +308 -0
  82. data/lib/postboost/models/account.rb +321 -0
  83. data/lib/postboost/models/add_generic_subscription_request.rb +274 -0
  84. data/lib/postboost/models/change_subscription_plan_request.rb +303 -0
  85. data/lib/postboost/models/checkout_subscription200_response.rb +214 -0
  86. data/lib/postboost/models/checkout_subscription_request.rb +280 -0
  87. data/lib/postboost/models/delete_media_bulk_request.rb +224 -0
  88. data/lib/postboost/models/delete_mode.rb +41 -0
  89. data/lib/postboost/models/delete_post_request.rb +249 -0
  90. data/lib/postboost/models/delete_posts_bulk_request.rb +269 -0
  91. data/lib/postboost/models/delete_receipts_bulk_request.rb +223 -0
  92. data/lib/postboost/models/delete_result.rb +232 -0
  93. data/lib/postboost/models/delete_user400_response.rb +223 -0
  94. data/lib/postboost/models/delete_users_bulk_request.rb +223 -0
  95. data/lib/postboost/models/delete_workspaces_bulk_request.rb +223 -0
  96. data/lib/postboost/models/get_remote_upload_status200_response.rb +258 -0
  97. data/lib/postboost/models/initiate_chunked_upload200_response.rb +232 -0
  98. data/lib/postboost/models/initiate_chunked_upload_request.rb +273 -0
  99. data/lib/postboost/models/initiate_remote_upload200_response.rb +105 -0
  100. data/lib/postboost/models/initiate_remote_upload200_response_one_of.rb +214 -0
  101. data/lib/postboost/models/initiate_remote_upload_request.rb +250 -0
  102. data/lib/postboost/models/list_accounts200_response.rb +216 -0
  103. data/lib/postboost/models/list_media200_response.rb +241 -0
  104. data/lib/postboost/models/list_posts200_response.rb +241 -0
  105. data/lib/postboost/models/list_receipts200_response.rb +241 -0
  106. data/lib/postboost/models/list_tags200_response.rb +216 -0
  107. data/lib/postboost/models/list_users200_response.rb +241 -0
  108. data/lib/postboost/models/list_workspaces200_response.rb +241 -0
  109. data/lib/postboost/models/media.rb +320 -0
  110. data/lib/postboost/models/pagination_meta.rb +223 -0
  111. data/lib/postboost/models/pagination_meta_links.rb +241 -0
  112. data/lib/postboost/models/pagination_meta_meta.rb +259 -0
  113. data/lib/postboost/models/post.rb +323 -0
  114. data/lib/postboost/models/post_content.rb +247 -0
  115. data/lib/postboost/models/post_input.rb +324 -0
  116. data/lib/postboost/models/post_status.rb +41 -0
  117. data/lib/postboost/models/post_version.rb +267 -0
  118. data/lib/postboost/models/receipt.rb +295 -0
  119. data/lib/postboost/models/receipt_input.rb +335 -0
  120. data/lib/postboost/models/receipt_update_input.rb +312 -0
  121. data/lib/postboost/models/remove_user_from_workspace_request.rb +221 -0
  122. data/lib/postboost/models/schedule_post_request.rb +221 -0
  123. data/lib/postboost/models/schedule_result.rb +223 -0
  124. data/lib/postboost/models/subscription.rb +299 -0
  125. data/lib/postboost/models/subscription_input.rb +285 -0
  126. data/lib/postboost/models/subscription_status.rb +44 -0
  127. data/lib/postboost/models/subscription_update_input.rb +279 -0
  128. data/lib/postboost/models/tag.rb +241 -0
  129. data/lib/postboost/models/tag_input.rb +237 -0
  130. data/lib/postboost/models/update_media_request.rb +222 -0
  131. data/lib/postboost/models/upload_chunk200_response.rb +215 -0
  132. data/lib/postboost/models/user.rb +259 -0
  133. data/lib/postboost/models/user_input.rb +304 -0
  134. data/lib/postboost/models/user_update_input.rb +272 -0
  135. data/lib/postboost/models/workspace.rb +293 -0
  136. data/lib/postboost/models/workspace_input.rb +315 -0
  137. data/lib/postboost/models/workspace_user_input.rb +303 -0
  138. data/lib/postboost/version.rb +15 -0
  139. data/lib/postboost.rb +103 -0
  140. data/postboost.gemspec +39 -0
  141. data/spec/api/accounts_api_spec.rb +60 -0
  142. data/spec/api/media_api_spec.rb +182 -0
  143. data/spec/api/posts_api_spec.rb +152 -0
  144. data/spec/api/receipts_api_spec.rb +103 -0
  145. data/spec/api/subscriptions_api_spec.rb +151 -0
  146. data/spec/api/tags_api_spec.rb +95 -0
  147. data/spec/api/users_api_spec.rb +102 -0
  148. data/spec/api/workspaces_api_spec.rb +142 -0
  149. data/spec/models/account_spec.rb +88 -0
  150. data/spec/models/add_generic_subscription_request_spec.rb +48 -0
  151. data/spec/models/change_subscription_plan_request_spec.rb +58 -0
  152. data/spec/models/checkout_subscription200_response_spec.rb +36 -0
  153. data/spec/models/checkout_subscription_request_spec.rb +52 -0
  154. data/spec/models/delete_media_bulk_request_spec.rb +36 -0
  155. data/spec/models/delete_mode_spec.rb +30 -0
  156. data/spec/models/delete_post_request_spec.rb +42 -0
  157. data/spec/models/delete_posts_bulk_request_spec.rb +48 -0
  158. data/spec/models/delete_receipts_bulk_request_spec.rb +36 -0
  159. data/spec/models/delete_result_spec.rb +48 -0
  160. data/spec/models/delete_user400_response_spec.rb +42 -0
  161. data/spec/models/delete_users_bulk_request_spec.rb +36 -0
  162. data/spec/models/delete_workspaces_bulk_request_spec.rb +36 -0
  163. data/spec/models/get_remote_upload_status200_response_spec.rb +46 -0
  164. data/spec/models/initiate_chunked_upload200_response_spec.rb +48 -0
  165. data/spec/models/initiate_chunked_upload_request_spec.rb +48 -0
  166. data/spec/models/initiate_remote_upload200_response_one_of_spec.rb +36 -0
  167. data/spec/models/initiate_remote_upload200_response_spec.rb +32 -0
  168. data/spec/models/initiate_remote_upload_request_spec.rb +42 -0
  169. data/spec/models/list_accounts200_response_spec.rb +36 -0
  170. data/spec/models/list_media200_response_spec.rb +48 -0
  171. data/spec/models/list_posts200_response_spec.rb +48 -0
  172. data/spec/models/list_receipts200_response_spec.rb +48 -0
  173. data/spec/models/list_tags200_response_spec.rb +36 -0
  174. data/spec/models/list_users200_response_spec.rb +48 -0
  175. data/spec/models/list_workspaces200_response_spec.rb +48 -0
  176. data/spec/models/media_spec.rb +88 -0
  177. data/spec/models/pagination_meta_links_spec.rb +54 -0
  178. data/spec/models/pagination_meta_meta_spec.rb +66 -0
  179. data/spec/models/pagination_meta_spec.rb +42 -0
  180. data/spec/models/post_content_spec.rb +54 -0
  181. data/spec/models/post_input_spec.rb +84 -0
  182. data/spec/models/post_spec.rb +90 -0
  183. data/spec/models/post_status_spec.rb +30 -0
  184. data/spec/models/post_version_spec.rb +54 -0
  185. data/spec/models/receipt_input_spec.rb +84 -0
  186. data/spec/models/receipt_spec.rb +90 -0
  187. data/spec/models/receipt_update_input_spec.rb +78 -0
  188. data/spec/models/remove_user_from_workspace_request_spec.rb +36 -0
  189. data/spec/models/schedule_post_request_spec.rb +36 -0
  190. data/spec/models/schedule_result_spec.rb +42 -0
  191. data/spec/models/subscription_input_spec.rb +54 -0
  192. data/spec/models/subscription_spec.rb +78 -0
  193. data/spec/models/subscription_status_spec.rb +30 -0
  194. data/spec/models/subscription_update_input_spec.rb +54 -0
  195. data/spec/models/tag_input_spec.rb +42 -0
  196. data/spec/models/tag_spec.rb +54 -0
  197. data/spec/models/update_media_request_spec.rb +36 -0
  198. data/spec/models/upload_chunk200_response_spec.rb +36 -0
  199. data/spec/models/user_input_spec.rb +60 -0
  200. data/spec/models/user_spec.rb +66 -0
  201. data/spec/models/user_update_input_spec.rb +60 -0
  202. data/spec/models/workspace_input_spec.rb +58 -0
  203. data/spec/models/workspace_spec.rb +70 -0
  204. data/spec/models/workspace_user_input_spec.rb +58 -0
  205. data/spec/spec_helper.rb +111 -0
  206. metadata +358 -0
data/docs/UsersApi.md ADDED
@@ -0,0 +1,419 @@
1
+ # PostBoost::UsersApi
2
+
3
+ All URIs are relative to *https://postboost.co/app/api*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**create_user**](UsersApi.md#create_user) | **POST** /panel/users | Create user |
8
+ | [**delete_user**](UsersApi.md#delete_user) | **DELETE** /panel/users/{userId} | Delete user |
9
+ | [**delete_users_bulk**](UsersApi.md#delete_users_bulk) | **DELETE** /panel/users | Delete users (bulk) |
10
+ | [**get_user**](UsersApi.md#get_user) | **GET** /panel/users/{userId} | Get user |
11
+ | [**list_users**](UsersApi.md#list_users) | **GET** /panel/users | List users |
12
+ | [**update_user**](UsersApi.md#update_user) | **PUT** /panel/users/{userId} | Update user |
13
+
14
+
15
+ ## create_user
16
+
17
+ > <User> create_user(user_input)
18
+
19
+ Create user
20
+
21
+ ### Examples
22
+
23
+ ```ruby
24
+ require 'time'
25
+ require 'postboost'
26
+ # setup authorization
27
+ PostBoost.configure do |config|
28
+ # Configure Bearer authorization: bearerAuth
29
+ config.access_token = 'YOUR_BEARER_TOKEN'
30
+ end
31
+
32
+ api_instance = PostBoost::UsersApi.new
33
+ user_input = PostBoost::UserInput.new({name: 'name_example', email: 'email_example', password: 'password_example', password_confirmation: 'password_confirmation_example', is_admin: false}) # UserInput |
34
+
35
+ begin
36
+ # Create user
37
+ result = api_instance.create_user(user_input)
38
+ p result
39
+ rescue PostBoost::ApiError => e
40
+ puts "Error when calling UsersApi->create_user: #{e}"
41
+ end
42
+ ```
43
+
44
+ #### Using the create_user_with_http_info variant
45
+
46
+ This returns an Array which contains the response data, status code and headers.
47
+
48
+ > <Array(<User>, Integer, Hash)> create_user_with_http_info(user_input)
49
+
50
+ ```ruby
51
+ begin
52
+ # Create user
53
+ data, status_code, headers = api_instance.create_user_with_http_info(user_input)
54
+ p status_code # => 2xx
55
+ p headers # => { ... }
56
+ p data # => <User>
57
+ rescue PostBoost::ApiError => e
58
+ puts "Error when calling UsersApi->create_user_with_http_info: #{e}"
59
+ end
60
+ ```
61
+
62
+ ### Parameters
63
+
64
+ | Name | Type | Description | Notes |
65
+ | ---- | ---- | ----------- | ----- |
66
+ | **user_input** | [**UserInput**](UserInput.md) | | |
67
+
68
+ ### Return type
69
+
70
+ [**User**](User.md)
71
+
72
+ ### Authorization
73
+
74
+ [bearerAuth](../README.md#bearerAuth)
75
+
76
+ ### HTTP request headers
77
+
78
+ - **Content-Type**: application/json
79
+ - **Accept**: application/json
80
+
81
+
82
+ ## delete_user
83
+
84
+ > Object delete_user(user_id)
85
+
86
+ Delete user
87
+
88
+ ### Examples
89
+
90
+ ```ruby
91
+ require 'time'
92
+ require 'postboost'
93
+ # setup authorization
94
+ PostBoost.configure do |config|
95
+ # Configure Bearer authorization: bearerAuth
96
+ config.access_token = 'YOUR_BEARER_TOKEN'
97
+ end
98
+
99
+ api_instance = PostBoost::UsersApi.new
100
+ user_id = 56 # Integer | ID of the user.
101
+
102
+ begin
103
+ # Delete user
104
+ result = api_instance.delete_user(user_id)
105
+ p result
106
+ rescue PostBoost::ApiError => e
107
+ puts "Error when calling UsersApi->delete_user: #{e}"
108
+ end
109
+ ```
110
+
111
+ #### Using the delete_user_with_http_info variant
112
+
113
+ This returns an Array which contains the response data, status code and headers.
114
+
115
+ > <Array(Object, Integer, Hash)> delete_user_with_http_info(user_id)
116
+
117
+ ```ruby
118
+ begin
119
+ # Delete user
120
+ data, status_code, headers = api_instance.delete_user_with_http_info(user_id)
121
+ p status_code # => 2xx
122
+ p headers # => { ... }
123
+ p data # => Object
124
+ rescue PostBoost::ApiError => e
125
+ puts "Error when calling UsersApi->delete_user_with_http_info: #{e}"
126
+ end
127
+ ```
128
+
129
+ ### Parameters
130
+
131
+ | Name | Type | Description | Notes |
132
+ | ---- | ---- | ----------- | ----- |
133
+ | **user_id** | **Integer** | ID of the user. | |
134
+
135
+ ### Return type
136
+
137
+ **Object**
138
+
139
+ ### Authorization
140
+
141
+ [bearerAuth](../README.md#bearerAuth)
142
+
143
+ ### HTTP request headers
144
+
145
+ - **Content-Type**: Not defined
146
+ - **Accept**: application/json
147
+
148
+
149
+ ## delete_users_bulk
150
+
151
+ > Object delete_users_bulk(delete_users_bulk_request)
152
+
153
+ Delete users (bulk)
154
+
155
+ ### Examples
156
+
157
+ ```ruby
158
+ require 'time'
159
+ require 'postboost'
160
+ # setup authorization
161
+ PostBoost.configure do |config|
162
+ # Configure Bearer authorization: bearerAuth
163
+ config.access_token = 'YOUR_BEARER_TOKEN'
164
+ end
165
+
166
+ api_instance = PostBoost::UsersApi.new
167
+ delete_users_bulk_request = PostBoost::DeleteUsersBulkRequest.new({users: [37]}) # DeleteUsersBulkRequest |
168
+
169
+ begin
170
+ # Delete users (bulk)
171
+ result = api_instance.delete_users_bulk(delete_users_bulk_request)
172
+ p result
173
+ rescue PostBoost::ApiError => e
174
+ puts "Error when calling UsersApi->delete_users_bulk: #{e}"
175
+ end
176
+ ```
177
+
178
+ #### Using the delete_users_bulk_with_http_info variant
179
+
180
+ This returns an Array which contains the response data, status code and headers.
181
+
182
+ > <Array(Object, Integer, Hash)> delete_users_bulk_with_http_info(delete_users_bulk_request)
183
+
184
+ ```ruby
185
+ begin
186
+ # Delete users (bulk)
187
+ data, status_code, headers = api_instance.delete_users_bulk_with_http_info(delete_users_bulk_request)
188
+ p status_code # => 2xx
189
+ p headers # => { ... }
190
+ p data # => Object
191
+ rescue PostBoost::ApiError => e
192
+ puts "Error when calling UsersApi->delete_users_bulk_with_http_info: #{e}"
193
+ end
194
+ ```
195
+
196
+ ### Parameters
197
+
198
+ | Name | Type | Description | Notes |
199
+ | ---- | ---- | ----------- | ----- |
200
+ | **delete_users_bulk_request** | [**DeleteUsersBulkRequest**](DeleteUsersBulkRequest.md) | | |
201
+
202
+ ### Return type
203
+
204
+ **Object**
205
+
206
+ ### Authorization
207
+
208
+ [bearerAuth](../README.md#bearerAuth)
209
+
210
+ ### HTTP request headers
211
+
212
+ - **Content-Type**: application/json
213
+ - **Accept**: application/json
214
+
215
+
216
+ ## get_user
217
+
218
+ > <User> get_user(user_id)
219
+
220
+ Get user
221
+
222
+ ### Examples
223
+
224
+ ```ruby
225
+ require 'time'
226
+ require 'postboost'
227
+ # setup authorization
228
+ PostBoost.configure do |config|
229
+ # Configure Bearer authorization: bearerAuth
230
+ config.access_token = 'YOUR_BEARER_TOKEN'
231
+ end
232
+
233
+ api_instance = PostBoost::UsersApi.new
234
+ user_id = 56 # Integer | ID of the user.
235
+
236
+ begin
237
+ # Get user
238
+ result = api_instance.get_user(user_id)
239
+ p result
240
+ rescue PostBoost::ApiError => e
241
+ puts "Error when calling UsersApi->get_user: #{e}"
242
+ end
243
+ ```
244
+
245
+ #### Using the get_user_with_http_info variant
246
+
247
+ This returns an Array which contains the response data, status code and headers.
248
+
249
+ > <Array(<User>, Integer, Hash)> get_user_with_http_info(user_id)
250
+
251
+ ```ruby
252
+ begin
253
+ # Get user
254
+ data, status_code, headers = api_instance.get_user_with_http_info(user_id)
255
+ p status_code # => 2xx
256
+ p headers # => { ... }
257
+ p data # => <User>
258
+ rescue PostBoost::ApiError => e
259
+ puts "Error when calling UsersApi->get_user_with_http_info: #{e}"
260
+ end
261
+ ```
262
+
263
+ ### Parameters
264
+
265
+ | Name | Type | Description | Notes |
266
+ | ---- | ---- | ----------- | ----- |
267
+ | **user_id** | **Integer** | ID of the user. | |
268
+
269
+ ### Return type
270
+
271
+ [**User**](User.md)
272
+
273
+ ### Authorization
274
+
275
+ [bearerAuth](../README.md#bearerAuth)
276
+
277
+ ### HTTP request headers
278
+
279
+ - **Content-Type**: Not defined
280
+ - **Accept**: application/json
281
+
282
+
283
+ ## list_users
284
+
285
+ > <ListUsers200Response> list_users(opts)
286
+
287
+ List users
288
+
289
+ ### Examples
290
+
291
+ ```ruby
292
+ require 'time'
293
+ require 'postboost'
294
+ # setup authorization
295
+ PostBoost.configure do |config|
296
+ # Configure Bearer authorization: bearerAuth
297
+ config.access_token = 'YOUR_BEARER_TOKEN'
298
+ end
299
+
300
+ api_instance = PostBoost::UsersApi.new
301
+ opts = {
302
+ keyword: 'keyword_example' # String | Search by name or email.
303
+ }
304
+
305
+ begin
306
+ # List users
307
+ result = api_instance.list_users(opts)
308
+ p result
309
+ rescue PostBoost::ApiError => e
310
+ puts "Error when calling UsersApi->list_users: #{e}"
311
+ end
312
+ ```
313
+
314
+ #### Using the list_users_with_http_info variant
315
+
316
+ This returns an Array which contains the response data, status code and headers.
317
+
318
+ > <Array(<ListUsers200Response>, Integer, Hash)> list_users_with_http_info(opts)
319
+
320
+ ```ruby
321
+ begin
322
+ # List users
323
+ data, status_code, headers = api_instance.list_users_with_http_info(opts)
324
+ p status_code # => 2xx
325
+ p headers # => { ... }
326
+ p data # => <ListUsers200Response>
327
+ rescue PostBoost::ApiError => e
328
+ puts "Error when calling UsersApi->list_users_with_http_info: #{e}"
329
+ end
330
+ ```
331
+
332
+ ### Parameters
333
+
334
+ | Name | Type | Description | Notes |
335
+ | ---- | ---- | ----------- | ----- |
336
+ | **keyword** | **String** | Search by name or email. | [optional] |
337
+
338
+ ### Return type
339
+
340
+ [**ListUsers200Response**](ListUsers200Response.md)
341
+
342
+ ### Authorization
343
+
344
+ [bearerAuth](../README.md#bearerAuth)
345
+
346
+ ### HTTP request headers
347
+
348
+ - **Content-Type**: Not defined
349
+ - **Accept**: application/json
350
+
351
+
352
+ ## update_user
353
+
354
+ > Object update_user(user_id, user_update_input)
355
+
356
+ Update user
357
+
358
+ ### Examples
359
+
360
+ ```ruby
361
+ require 'time'
362
+ require 'postboost'
363
+ # setup authorization
364
+ PostBoost.configure do |config|
365
+ # Configure Bearer authorization: bearerAuth
366
+ config.access_token = 'YOUR_BEARER_TOKEN'
367
+ end
368
+
369
+ api_instance = PostBoost::UsersApi.new
370
+ user_id = 56 # Integer | ID of the user.
371
+ user_update_input = PostBoost::UserUpdateInput.new({name: 'name_example', email: 'email_example', is_admin: false}) # UserUpdateInput |
372
+
373
+ begin
374
+ # Update user
375
+ result = api_instance.update_user(user_id, user_update_input)
376
+ p result
377
+ rescue PostBoost::ApiError => e
378
+ puts "Error when calling UsersApi->update_user: #{e}"
379
+ end
380
+ ```
381
+
382
+ #### Using the update_user_with_http_info variant
383
+
384
+ This returns an Array which contains the response data, status code and headers.
385
+
386
+ > <Array(Object, Integer, Hash)> update_user_with_http_info(user_id, user_update_input)
387
+
388
+ ```ruby
389
+ begin
390
+ # Update user
391
+ data, status_code, headers = api_instance.update_user_with_http_info(user_id, user_update_input)
392
+ p status_code # => 2xx
393
+ p headers # => { ... }
394
+ p data # => Object
395
+ rescue PostBoost::ApiError => e
396
+ puts "Error when calling UsersApi->update_user_with_http_info: #{e}"
397
+ end
398
+ ```
399
+
400
+ ### Parameters
401
+
402
+ | Name | Type | Description | Notes |
403
+ | ---- | ---- | ----------- | ----- |
404
+ | **user_id** | **Integer** | ID of the user. | |
405
+ | **user_update_input** | [**UserUpdateInput**](UserUpdateInput.md) | | |
406
+
407
+ ### Return type
408
+
409
+ **Object**
410
+
411
+ ### Authorization
412
+
413
+ [bearerAuth](../README.md#bearerAuth)
414
+
415
+ ### HTTP request headers
416
+
417
+ - **Content-Type**: application/json
418
+ - **Accept**: application/json
419
+
data/docs/Workspace.md ADDED
@@ -0,0 +1,28 @@
1
+ # PostBoost::Workspace
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **uuid** | **String** | | [optional] |
8
+ | **name** | **String** | | [optional] |
9
+ | **hex_color** | **String** | | [optional] |
10
+ | **owner** | [**User**](User.md) | | [optional] |
11
+ | **access_status** | **String** | | [optional] |
12
+ | **created_at** | **Time** | | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'postboost'
18
+
19
+ instance = PostBoost::Workspace.new(
20
+ uuid: null,
21
+ name: null,
22
+ hex_color: null,
23
+ owner: null,
24
+ access_status: null,
25
+ created_at: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,24 @@
1
+ # PostBoost::WorkspaceInput
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | | |
8
+ | **hex_color** | **String** | | |
9
+ | **owner_id** | **Integer** | | [optional] |
10
+ | **access_status** | **String** | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'postboost'
16
+
17
+ instance = PostBoost::WorkspaceInput.new(
18
+ name: null,
19
+ hex_color: #1d4ed8,
20
+ owner_id: null,
21
+ access_status: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,24 @@
1
+ # PostBoost::WorkspaceUserInput
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **user_id** | **Integer** | | |
8
+ | **role** | **String** | | |
9
+ | **can_approve** | **Boolean** | | |
10
+ | **is_owner** | **Boolean** | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'postboost'
16
+
17
+ instance = PostBoost::WorkspaceUserInput.new(
18
+ user_id: null,
19
+ role: null,
20
+ can_approve: null,
21
+ is_owner: null
22
+ )
23
+ ```
24
+