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/PostsApi.md ADDED
@@ -0,0 +1,659 @@
1
+ # PostBoost::PostsApi
2
+
3
+ All URIs are relative to *https://postboost.co/app/api*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**add_post_to_queue**](PostsApi.md#add_post_to_queue) | **POST** /{workspaceUuid}/posts/add-to-queue/{postUuid} | Add post to queue |
8
+ | [**approve_post**](PostsApi.md#approve_post) | **POST** /{workspaceUuid}/posts/approve/{postUuid} | Approve post |
9
+ | [**create_post**](PostsApi.md#create_post) | **POST** /{workspaceUuid}/posts | Create post |
10
+ | [**delete_post**](PostsApi.md#delete_post) | **DELETE** /{workspaceUuid}/posts/{postUuid} | Delete post |
11
+ | [**delete_posts_bulk**](PostsApi.md#delete_posts_bulk) | **DELETE** /{workspaceUuid}/posts | Delete posts (bulk) |
12
+ | [**get_post**](PostsApi.md#get_post) | **GET** /{workspaceUuid}/posts/{postUuid} | Get post |
13
+ | [**list_posts**](PostsApi.md#list_posts) | **GET** /{workspaceUuid}/posts | List posts |
14
+ | [**schedule_post**](PostsApi.md#schedule_post) | **POST** /{workspaceUuid}/posts/schedule/{postUuid} | Schedule post |
15
+ | [**update_post**](PostsApi.md#update_post) | **PUT** /{workspaceUuid}/posts/{postUuid} | Update post |
16
+
17
+
18
+ ## add_post_to_queue
19
+
20
+ > <ScheduleResult> add_post_to_queue(workspace_uuid, post_uuid)
21
+
22
+ Add post to queue
23
+
24
+ Add an existing post to the smart publishing queue.
25
+
26
+ ### Examples
27
+
28
+ ```ruby
29
+ require 'time'
30
+ require 'postboost'
31
+ # setup authorization
32
+ PostBoost.configure do |config|
33
+ # Configure Bearer authorization: bearerAuth
34
+ config.access_token = 'YOUR_BEARER_TOKEN'
35
+ end
36
+
37
+ api_instance = PostBoost::PostsApi.new
38
+ workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
39
+ post_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the post.
40
+
41
+ begin
42
+ # Add post to queue
43
+ result = api_instance.add_post_to_queue(workspace_uuid, post_uuid)
44
+ p result
45
+ rescue PostBoost::ApiError => e
46
+ puts "Error when calling PostsApi->add_post_to_queue: #{e}"
47
+ end
48
+ ```
49
+
50
+ #### Using the add_post_to_queue_with_http_info variant
51
+
52
+ This returns an Array which contains the response data, status code and headers.
53
+
54
+ > <Array(<ScheduleResult>, Integer, Hash)> add_post_to_queue_with_http_info(workspace_uuid, post_uuid)
55
+
56
+ ```ruby
57
+ begin
58
+ # Add post to queue
59
+ data, status_code, headers = api_instance.add_post_to_queue_with_http_info(workspace_uuid, post_uuid)
60
+ p status_code # => 2xx
61
+ p headers # => { ... }
62
+ p data # => <ScheduleResult>
63
+ rescue PostBoost::ApiError => e
64
+ puts "Error when calling PostsApi->add_post_to_queue_with_http_info: #{e}"
65
+ end
66
+ ```
67
+
68
+ ### Parameters
69
+
70
+ | Name | Type | Description | Notes |
71
+ | ---- | ---- | ----------- | ----- |
72
+ | **workspace_uuid** | **String** | UUID of the workspace. | |
73
+ | **post_uuid** | **String** | UUID of the post. | |
74
+
75
+ ### Return type
76
+
77
+ [**ScheduleResult**](ScheduleResult.md)
78
+
79
+ ### Authorization
80
+
81
+ [bearerAuth](../README.md#bearerAuth)
82
+
83
+ ### HTTP request headers
84
+
85
+ - **Content-Type**: Not defined
86
+ - **Accept**: application/json
87
+
88
+
89
+ ## approve_post
90
+
91
+ > <ScheduleResult> approve_post(workspace_uuid, post_uuid)
92
+
93
+ Approve post
94
+
95
+ Approve a post that is pending review.
96
+
97
+ ### Examples
98
+
99
+ ```ruby
100
+ require 'time'
101
+ require 'postboost'
102
+ # setup authorization
103
+ PostBoost.configure do |config|
104
+ # Configure Bearer authorization: bearerAuth
105
+ config.access_token = 'YOUR_BEARER_TOKEN'
106
+ end
107
+
108
+ api_instance = PostBoost::PostsApi.new
109
+ workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
110
+ post_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the post.
111
+
112
+ begin
113
+ # Approve post
114
+ result = api_instance.approve_post(workspace_uuid, post_uuid)
115
+ p result
116
+ rescue PostBoost::ApiError => e
117
+ puts "Error when calling PostsApi->approve_post: #{e}"
118
+ end
119
+ ```
120
+
121
+ #### Using the approve_post_with_http_info variant
122
+
123
+ This returns an Array which contains the response data, status code and headers.
124
+
125
+ > <Array(<ScheduleResult>, Integer, Hash)> approve_post_with_http_info(workspace_uuid, post_uuid)
126
+
127
+ ```ruby
128
+ begin
129
+ # Approve post
130
+ data, status_code, headers = api_instance.approve_post_with_http_info(workspace_uuid, post_uuid)
131
+ p status_code # => 2xx
132
+ p headers # => { ... }
133
+ p data # => <ScheduleResult>
134
+ rescue PostBoost::ApiError => e
135
+ puts "Error when calling PostsApi->approve_post_with_http_info: #{e}"
136
+ end
137
+ ```
138
+
139
+ ### Parameters
140
+
141
+ | Name | Type | Description | Notes |
142
+ | ---- | ---- | ----------- | ----- |
143
+ | **workspace_uuid** | **String** | UUID of the workspace. | |
144
+ | **post_uuid** | **String** | UUID of the post. | |
145
+
146
+ ### Return type
147
+
148
+ [**ScheduleResult**](ScheduleResult.md)
149
+
150
+ ### Authorization
151
+
152
+ [bearerAuth](../README.md#bearerAuth)
153
+
154
+ ### HTTP request headers
155
+
156
+ - **Content-Type**: Not defined
157
+ - **Accept**: application/json
158
+
159
+
160
+ ## create_post
161
+
162
+ > <Post> create_post(workspace_uuid, post_input)
163
+
164
+ Create post
165
+
166
+ Create a new post. Use `schedule: true` with `date` and `time` to schedule, `schedule_now: true` to publish immediately, or `queue: true` to add to the smart publishing queue.
167
+
168
+ ### Examples
169
+
170
+ ```ruby
171
+ require 'time'
172
+ require 'postboost'
173
+ # setup authorization
174
+ PostBoost.configure do |config|
175
+ # Configure Bearer authorization: bearerAuth
176
+ config.access_token = 'YOUR_BEARER_TOKEN'
177
+ end
178
+
179
+ api_instance = PostBoost::PostsApi.new
180
+ workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
181
+ post_input = PostBoost::PostInput.new({versions: [PostBoost::PostVersion.new({account_id: 37, is_original: false, content: [PostBoost::PostContent.new]})]}) # PostInput |
182
+
183
+ begin
184
+ # Create post
185
+ result = api_instance.create_post(workspace_uuid, post_input)
186
+ p result
187
+ rescue PostBoost::ApiError => e
188
+ puts "Error when calling PostsApi->create_post: #{e}"
189
+ end
190
+ ```
191
+
192
+ #### Using the create_post_with_http_info variant
193
+
194
+ This returns an Array which contains the response data, status code and headers.
195
+
196
+ > <Array(<Post>, Integer, Hash)> create_post_with_http_info(workspace_uuid, post_input)
197
+
198
+ ```ruby
199
+ begin
200
+ # Create post
201
+ data, status_code, headers = api_instance.create_post_with_http_info(workspace_uuid, post_input)
202
+ p status_code # => 2xx
203
+ p headers # => { ... }
204
+ p data # => <Post>
205
+ rescue PostBoost::ApiError => e
206
+ puts "Error when calling PostsApi->create_post_with_http_info: #{e}"
207
+ end
208
+ ```
209
+
210
+ ### Parameters
211
+
212
+ | Name | Type | Description | Notes |
213
+ | ---- | ---- | ----------- | ----- |
214
+ | **workspace_uuid** | **String** | UUID of the workspace. | |
215
+ | **post_input** | [**PostInput**](PostInput.md) | | |
216
+
217
+ ### Return type
218
+
219
+ [**Post**](Post.md)
220
+
221
+ ### Authorization
222
+
223
+ [bearerAuth](../README.md#bearerAuth)
224
+
225
+ ### HTTP request headers
226
+
227
+ - **Content-Type**: application/json
228
+ - **Accept**: application/json
229
+
230
+
231
+ ## delete_post
232
+
233
+ > <DeleteResult> delete_post(workspace_uuid, post_uuid, opts)
234
+
235
+ Delete post
236
+
237
+ ### Examples
238
+
239
+ ```ruby
240
+ require 'time'
241
+ require 'postboost'
242
+ # setup authorization
243
+ PostBoost.configure do |config|
244
+ # Configure Bearer authorization: bearerAuth
245
+ config.access_token = 'YOUR_BEARER_TOKEN'
246
+ end
247
+
248
+ api_instance = PostBoost::PostsApi.new
249
+ workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
250
+ post_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the post.
251
+ opts = {
252
+ delete_post_request: PostBoost::DeletePostRequest.new # DeletePostRequest |
253
+ }
254
+
255
+ begin
256
+ # Delete post
257
+ result = api_instance.delete_post(workspace_uuid, post_uuid, opts)
258
+ p result
259
+ rescue PostBoost::ApiError => e
260
+ puts "Error when calling PostsApi->delete_post: #{e}"
261
+ end
262
+ ```
263
+
264
+ #### Using the delete_post_with_http_info variant
265
+
266
+ This returns an Array which contains the response data, status code and headers.
267
+
268
+ > <Array(<DeleteResult>, Integer, Hash)> delete_post_with_http_info(workspace_uuid, post_uuid, opts)
269
+
270
+ ```ruby
271
+ begin
272
+ # Delete post
273
+ data, status_code, headers = api_instance.delete_post_with_http_info(workspace_uuid, post_uuid, opts)
274
+ p status_code # => 2xx
275
+ p headers # => { ... }
276
+ p data # => <DeleteResult>
277
+ rescue PostBoost::ApiError => e
278
+ puts "Error when calling PostsApi->delete_post_with_http_info: #{e}"
279
+ end
280
+ ```
281
+
282
+ ### Parameters
283
+
284
+ | Name | Type | Description | Notes |
285
+ | ---- | ---- | ----------- | ----- |
286
+ | **workspace_uuid** | **String** | UUID of the workspace. | |
287
+ | **post_uuid** | **String** | UUID of the post. | |
288
+ | **delete_post_request** | [**DeletePostRequest**](DeletePostRequest.md) | | [optional] |
289
+
290
+ ### Return type
291
+
292
+ [**DeleteResult**](DeleteResult.md)
293
+
294
+ ### Authorization
295
+
296
+ [bearerAuth](../README.md#bearerAuth)
297
+
298
+ ### HTTP request headers
299
+
300
+ - **Content-Type**: application/json
301
+ - **Accept**: application/json
302
+
303
+
304
+ ## delete_posts_bulk
305
+
306
+ > <DeleteResult> delete_posts_bulk(workspace_uuid, delete_posts_bulk_request)
307
+
308
+ Delete posts (bulk)
309
+
310
+ Delete multiple posts at once.
311
+
312
+ ### Examples
313
+
314
+ ```ruby
315
+ require 'time'
316
+ require 'postboost'
317
+ # setup authorization
318
+ PostBoost.configure do |config|
319
+ # Configure Bearer authorization: bearerAuth
320
+ config.access_token = 'YOUR_BEARER_TOKEN'
321
+ end
322
+
323
+ api_instance = PostBoost::PostsApi.new
324
+ workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
325
+ delete_posts_bulk_request = PostBoost::DeletePostsBulkRequest.new({posts: ['posts_example']}) # DeletePostsBulkRequest |
326
+
327
+ begin
328
+ # Delete posts (bulk)
329
+ result = api_instance.delete_posts_bulk(workspace_uuid, delete_posts_bulk_request)
330
+ p result
331
+ rescue PostBoost::ApiError => e
332
+ puts "Error when calling PostsApi->delete_posts_bulk: #{e}"
333
+ end
334
+ ```
335
+
336
+ #### Using the delete_posts_bulk_with_http_info variant
337
+
338
+ This returns an Array which contains the response data, status code and headers.
339
+
340
+ > <Array(<DeleteResult>, Integer, Hash)> delete_posts_bulk_with_http_info(workspace_uuid, delete_posts_bulk_request)
341
+
342
+ ```ruby
343
+ begin
344
+ # Delete posts (bulk)
345
+ data, status_code, headers = api_instance.delete_posts_bulk_with_http_info(workspace_uuid, delete_posts_bulk_request)
346
+ p status_code # => 2xx
347
+ p headers # => { ... }
348
+ p data # => <DeleteResult>
349
+ rescue PostBoost::ApiError => e
350
+ puts "Error when calling PostsApi->delete_posts_bulk_with_http_info: #{e}"
351
+ end
352
+ ```
353
+
354
+ ### Parameters
355
+
356
+ | Name | Type | Description | Notes |
357
+ | ---- | ---- | ----------- | ----- |
358
+ | **workspace_uuid** | **String** | UUID of the workspace. | |
359
+ | **delete_posts_bulk_request** | [**DeletePostsBulkRequest**](DeletePostsBulkRequest.md) | | |
360
+
361
+ ### Return type
362
+
363
+ [**DeleteResult**](DeleteResult.md)
364
+
365
+ ### Authorization
366
+
367
+ [bearerAuth](../README.md#bearerAuth)
368
+
369
+ ### HTTP request headers
370
+
371
+ - **Content-Type**: application/json
372
+ - **Accept**: application/json
373
+
374
+
375
+ ## get_post
376
+
377
+ > <Post> get_post(workspace_uuid, post_uuid)
378
+
379
+ Get post
380
+
381
+ ### Examples
382
+
383
+ ```ruby
384
+ require 'time'
385
+ require 'postboost'
386
+ # setup authorization
387
+ PostBoost.configure do |config|
388
+ # Configure Bearer authorization: bearerAuth
389
+ config.access_token = 'YOUR_BEARER_TOKEN'
390
+ end
391
+
392
+ api_instance = PostBoost::PostsApi.new
393
+ workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
394
+ post_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the post.
395
+
396
+ begin
397
+ # Get post
398
+ result = api_instance.get_post(workspace_uuid, post_uuid)
399
+ p result
400
+ rescue PostBoost::ApiError => e
401
+ puts "Error when calling PostsApi->get_post: #{e}"
402
+ end
403
+ ```
404
+
405
+ #### Using the get_post_with_http_info variant
406
+
407
+ This returns an Array which contains the response data, status code and headers.
408
+
409
+ > <Array(<Post>, Integer, Hash)> get_post_with_http_info(workspace_uuid, post_uuid)
410
+
411
+ ```ruby
412
+ begin
413
+ # Get post
414
+ data, status_code, headers = api_instance.get_post_with_http_info(workspace_uuid, post_uuid)
415
+ p status_code # => 2xx
416
+ p headers # => { ... }
417
+ p data # => <Post>
418
+ rescue PostBoost::ApiError => e
419
+ puts "Error when calling PostsApi->get_post_with_http_info: #{e}"
420
+ end
421
+ ```
422
+
423
+ ### Parameters
424
+
425
+ | Name | Type | Description | Notes |
426
+ | ---- | ---- | ----------- | ----- |
427
+ | **workspace_uuid** | **String** | UUID of the workspace. | |
428
+ | **post_uuid** | **String** | UUID of the post. | |
429
+
430
+ ### Return type
431
+
432
+ [**Post**](Post.md)
433
+
434
+ ### Authorization
435
+
436
+ [bearerAuth](../README.md#bearerAuth)
437
+
438
+ ### HTTP request headers
439
+
440
+ - **Content-Type**: Not defined
441
+ - **Accept**: application/json
442
+
443
+
444
+ ## list_posts
445
+
446
+ > <ListPosts200Response> list_posts(workspace_uuid, opts)
447
+
448
+ List posts
449
+
450
+ Returns a paginated list of posts in the workspace.
451
+
452
+ ### Examples
453
+
454
+ ```ruby
455
+ require 'time'
456
+ require 'postboost'
457
+ # setup authorization
458
+ PostBoost.configure do |config|
459
+ # Configure Bearer authorization: bearerAuth
460
+ config.access_token = 'YOUR_BEARER_TOKEN'
461
+ end
462
+
463
+ api_instance = PostBoost::PostsApi.new
464
+ workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
465
+ opts = {
466
+ page: 56 # Integer |
467
+ }
468
+
469
+ begin
470
+ # List posts
471
+ result = api_instance.list_posts(workspace_uuid, opts)
472
+ p result
473
+ rescue PostBoost::ApiError => e
474
+ puts "Error when calling PostsApi->list_posts: #{e}"
475
+ end
476
+ ```
477
+
478
+ #### Using the list_posts_with_http_info variant
479
+
480
+ This returns an Array which contains the response data, status code and headers.
481
+
482
+ > <Array(<ListPosts200Response>, Integer, Hash)> list_posts_with_http_info(workspace_uuid, opts)
483
+
484
+ ```ruby
485
+ begin
486
+ # List posts
487
+ data, status_code, headers = api_instance.list_posts_with_http_info(workspace_uuid, opts)
488
+ p status_code # => 2xx
489
+ p headers # => { ... }
490
+ p data # => <ListPosts200Response>
491
+ rescue PostBoost::ApiError => e
492
+ puts "Error when calling PostsApi->list_posts_with_http_info: #{e}"
493
+ end
494
+ ```
495
+
496
+ ### Parameters
497
+
498
+ | Name | Type | Description | Notes |
499
+ | ---- | ---- | ----------- | ----- |
500
+ | **workspace_uuid** | **String** | UUID of the workspace. | |
501
+ | **page** | **Integer** | | [optional][default to 1] |
502
+
503
+ ### Return type
504
+
505
+ [**ListPosts200Response**](ListPosts200Response.md)
506
+
507
+ ### Authorization
508
+
509
+ [bearerAuth](../README.md#bearerAuth)
510
+
511
+ ### HTTP request headers
512
+
513
+ - **Content-Type**: Not defined
514
+ - **Accept**: application/json
515
+
516
+
517
+ ## schedule_post
518
+
519
+ > <ScheduleResult> schedule_post(workspace_uuid, post_uuid, schedule_post_request)
520
+
521
+ Schedule post
522
+
523
+ Schedule an existing post. Set `postNow: true` to publish immediately.
524
+
525
+ ### Examples
526
+
527
+ ```ruby
528
+ require 'time'
529
+ require 'postboost'
530
+ # setup authorization
531
+ PostBoost.configure do |config|
532
+ # Configure Bearer authorization: bearerAuth
533
+ config.access_token = 'YOUR_BEARER_TOKEN'
534
+ end
535
+
536
+ api_instance = PostBoost::PostsApi.new
537
+ workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
538
+ post_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the post.
539
+ schedule_post_request = PostBoost::SchedulePostRequest.new({post_now: false}) # SchedulePostRequest |
540
+
541
+ begin
542
+ # Schedule post
543
+ result = api_instance.schedule_post(workspace_uuid, post_uuid, schedule_post_request)
544
+ p result
545
+ rescue PostBoost::ApiError => e
546
+ puts "Error when calling PostsApi->schedule_post: #{e}"
547
+ end
548
+ ```
549
+
550
+ #### Using the schedule_post_with_http_info variant
551
+
552
+ This returns an Array which contains the response data, status code and headers.
553
+
554
+ > <Array(<ScheduleResult>, Integer, Hash)> schedule_post_with_http_info(workspace_uuid, post_uuid, schedule_post_request)
555
+
556
+ ```ruby
557
+ begin
558
+ # Schedule post
559
+ data, status_code, headers = api_instance.schedule_post_with_http_info(workspace_uuid, post_uuid, schedule_post_request)
560
+ p status_code # => 2xx
561
+ p headers # => { ... }
562
+ p data # => <ScheduleResult>
563
+ rescue PostBoost::ApiError => e
564
+ puts "Error when calling PostsApi->schedule_post_with_http_info: #{e}"
565
+ end
566
+ ```
567
+
568
+ ### Parameters
569
+
570
+ | Name | Type | Description | Notes |
571
+ | ---- | ---- | ----------- | ----- |
572
+ | **workspace_uuid** | **String** | UUID of the workspace. | |
573
+ | **post_uuid** | **String** | UUID of the post. | |
574
+ | **schedule_post_request** | [**SchedulePostRequest**](SchedulePostRequest.md) | | |
575
+
576
+ ### Return type
577
+
578
+ [**ScheduleResult**](ScheduleResult.md)
579
+
580
+ ### Authorization
581
+
582
+ [bearerAuth](../README.md#bearerAuth)
583
+
584
+ ### HTTP request headers
585
+
586
+ - **Content-Type**: application/json
587
+ - **Accept**: application/json
588
+
589
+
590
+ ## update_post
591
+
592
+ > Object update_post(workspace_uuid, post_uuid, post_input)
593
+
594
+ Update post
595
+
596
+ ### Examples
597
+
598
+ ```ruby
599
+ require 'time'
600
+ require 'postboost'
601
+ # setup authorization
602
+ PostBoost.configure do |config|
603
+ # Configure Bearer authorization: bearerAuth
604
+ config.access_token = 'YOUR_BEARER_TOKEN'
605
+ end
606
+
607
+ api_instance = PostBoost::PostsApi.new
608
+ workspace_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the workspace.
609
+ post_uuid = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String | UUID of the post.
610
+ post_input = PostBoost::PostInput.new({versions: [PostBoost::PostVersion.new({account_id: 37, is_original: false, content: [PostBoost::PostContent.new]})]}) # PostInput |
611
+
612
+ begin
613
+ # Update post
614
+ result = api_instance.update_post(workspace_uuid, post_uuid, post_input)
615
+ p result
616
+ rescue PostBoost::ApiError => e
617
+ puts "Error when calling PostsApi->update_post: #{e}"
618
+ end
619
+ ```
620
+
621
+ #### Using the update_post_with_http_info variant
622
+
623
+ This returns an Array which contains the response data, status code and headers.
624
+
625
+ > <Array(Object, Integer, Hash)> update_post_with_http_info(workspace_uuid, post_uuid, post_input)
626
+
627
+ ```ruby
628
+ begin
629
+ # Update post
630
+ data, status_code, headers = api_instance.update_post_with_http_info(workspace_uuid, post_uuid, post_input)
631
+ p status_code # => 2xx
632
+ p headers # => { ... }
633
+ p data # => Object
634
+ rescue PostBoost::ApiError => e
635
+ puts "Error when calling PostsApi->update_post_with_http_info: #{e}"
636
+ end
637
+ ```
638
+
639
+ ### Parameters
640
+
641
+ | Name | Type | Description | Notes |
642
+ | ---- | ---- | ----------- | ----- |
643
+ | **workspace_uuid** | **String** | UUID of the workspace. | |
644
+ | **post_uuid** | **String** | UUID of the post. | |
645
+ | **post_input** | [**PostInput**](PostInput.md) | | |
646
+
647
+ ### Return type
648
+
649
+ **Object**
650
+
651
+ ### Authorization
652
+
653
+ [bearerAuth](../README.md#bearerAuth)
654
+
655
+ ### HTTP request headers
656
+
657
+ - **Content-Type**: application/json
658
+ - **Accept**: application/json
659
+
data/docs/Receipt.md ADDED
@@ -0,0 +1,36 @@
1
+ # PostBoost::Receipt
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **uuid** | **String** | | [optional] |
8
+ | **transaction_id** | **String** | | [optional] |
9
+ | **invoice_number** | **String** | | [optional] |
10
+ | **amount** | **Float** | | [optional] |
11
+ | **tax** | **Float** | | [optional] |
12
+ | **currency** | **String** | | [optional] |
13
+ | **receipt_url** | **String** | | [optional] |
14
+ | **description** | **String** | | [optional] |
15
+ | **paid_at** | **Time** | | [optional] |
16
+ | **created_at** | **Time** | | [optional] |
17
+
18
+ ## Example
19
+
20
+ ```ruby
21
+ require 'postboost'
22
+
23
+ instance = PostBoost::Receipt.new(
24
+ uuid: null,
25
+ transaction_id: null,
26
+ invoice_number: null,
27
+ amount: null,
28
+ tax: null,
29
+ currency: null,
30
+ receipt_url: null,
31
+ description: null,
32
+ paid_at: null,
33
+ created_at: null
34
+ )
35
+ ```
36
+