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/lib/postboost.rb ADDED
@@ -0,0 +1,103 @@
1
+ =begin
2
+ #PostBoost API
3
+
4
+ #The PostBoost REST API lets you publish, schedule, and analyze social media posts across 8+ platforms from a single integration. No OAuth apps to maintain — PostBoost handles platform authorization for you. ## Base URL All workspace-scoped endpoints are prefixed with `/{workspaceUuid}`. Panel/admin endpoints are prefixed with `/panel`. ## Authentication All requests require a Bearer token in the `Authorization` header. Generate tokens in your PostBoost dashboard under **Settings → Access Tokens**. ``` Authorization: Bearer YOUR_API_TOKEN ```
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: hi@postboost.co
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.9.0
10
+
11
+ =end
12
+
13
+ # Common files
14
+ require 'postboost/api_client'
15
+ require 'postboost/api_error'
16
+ require 'postboost/version'
17
+ require 'postboost/configuration'
18
+
19
+ # Models
20
+ require 'postboost/models/account'
21
+ require 'postboost/models/add_generic_subscription_request'
22
+ require 'postboost/models/change_subscription_plan_request'
23
+ require 'postboost/models/checkout_subscription200_response'
24
+ require 'postboost/models/checkout_subscription_request'
25
+ require 'postboost/models/delete_media_bulk_request'
26
+ require 'postboost/models/delete_mode'
27
+ require 'postboost/models/delete_post_request'
28
+ require 'postboost/models/delete_posts_bulk_request'
29
+ require 'postboost/models/delete_receipts_bulk_request'
30
+ require 'postboost/models/delete_result'
31
+ require 'postboost/models/delete_user400_response'
32
+ require 'postboost/models/delete_users_bulk_request'
33
+ require 'postboost/models/delete_workspaces_bulk_request'
34
+ require 'postboost/models/get_remote_upload_status200_response'
35
+ require 'postboost/models/initiate_chunked_upload200_response'
36
+ require 'postboost/models/initiate_chunked_upload_request'
37
+ require 'postboost/models/initiate_remote_upload200_response'
38
+ require 'postboost/models/initiate_remote_upload200_response_one_of'
39
+ require 'postboost/models/initiate_remote_upload_request'
40
+ require 'postboost/models/list_accounts200_response'
41
+ require 'postboost/models/list_media200_response'
42
+ require 'postboost/models/list_posts200_response'
43
+ require 'postboost/models/list_receipts200_response'
44
+ require 'postboost/models/list_tags200_response'
45
+ require 'postboost/models/list_users200_response'
46
+ require 'postboost/models/list_workspaces200_response'
47
+ require 'postboost/models/media'
48
+ require 'postboost/models/pagination_meta'
49
+ require 'postboost/models/pagination_meta_links'
50
+ require 'postboost/models/pagination_meta_meta'
51
+ require 'postboost/models/post'
52
+ require 'postboost/models/post_content'
53
+ require 'postboost/models/post_input'
54
+ require 'postboost/models/post_status'
55
+ require 'postboost/models/post_version'
56
+ require 'postboost/models/receipt'
57
+ require 'postboost/models/receipt_input'
58
+ require 'postboost/models/receipt_update_input'
59
+ require 'postboost/models/remove_user_from_workspace_request'
60
+ require 'postboost/models/schedule_post_request'
61
+ require 'postboost/models/schedule_result'
62
+ require 'postboost/models/subscription'
63
+ require 'postboost/models/subscription_input'
64
+ require 'postboost/models/subscription_status'
65
+ require 'postboost/models/subscription_update_input'
66
+ require 'postboost/models/tag'
67
+ require 'postboost/models/tag_input'
68
+ require 'postboost/models/update_media_request'
69
+ require 'postboost/models/upload_chunk200_response'
70
+ require 'postboost/models/user'
71
+ require 'postboost/models/user_input'
72
+ require 'postboost/models/user_update_input'
73
+ require 'postboost/models/workspace'
74
+ require 'postboost/models/workspace_input'
75
+ require 'postboost/models/workspace_user_input'
76
+
77
+ # APIs
78
+ require 'postboost/api/accounts_api'
79
+ require 'postboost/api/media_api'
80
+ require 'postboost/api/posts_api'
81
+ require 'postboost/api/receipts_api'
82
+ require 'postboost/api/subscriptions_api'
83
+ require 'postboost/api/tags_api'
84
+ require 'postboost/api/users_api'
85
+ require 'postboost/api/workspaces_api'
86
+
87
+ module PostBoost
88
+ class << self
89
+ # Customize default settings for the SDK using block.
90
+ # PostBoost.configure do |config|
91
+ # config.username = "xxx"
92
+ # config.password = "xxx"
93
+ # end
94
+ # If no block given, return the default Configuration object.
95
+ def configure
96
+ if block_given?
97
+ yield(Configuration.default)
98
+ else
99
+ Configuration.default
100
+ end
101
+ end
102
+ end
103
+ end
data/postboost.gemspec ADDED
@@ -0,0 +1,39 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ =begin
4
+ #PostBoost API
5
+
6
+ #The PostBoost REST API lets you publish, schedule, and analyze social media posts across 8+ platforms from a single integration. No OAuth apps to maintain — PostBoost handles platform authorization for you. ## Base URL All workspace-scoped endpoints are prefixed with `/{workspaceUuid}`. Panel/admin endpoints are prefixed with `/panel`. ## Authentication All requests require a Bearer token in the `Authorization` header. Generate tokens in your PostBoost dashboard under **Settings → Access Tokens**. ``` Authorization: Bearer YOUR_API_TOKEN ```
7
+
8
+ The version of the OpenAPI document: 1.0.0
9
+ Contact: hi@postboost.co
10
+ Generated by: https://openapi-generator.tech
11
+ Generator version: 7.9.0
12
+
13
+ =end
14
+
15
+ $:.push File.expand_path("../lib", __FILE__)
16
+ require "postboost/version"
17
+
18
+ Gem::Specification.new do |s|
19
+ s.name = "postboost"
20
+ s.version = PostBoost::VERSION
21
+ s.platform = Gem::Platform::RUBY
22
+ s.authors = ["OpenAPI-Generator"]
23
+ s.email = ["hi@postboost.co"]
24
+ s.homepage = "https://openapi-generator.tech"
25
+ s.summary = "PostBoost API Ruby Gem"
26
+ s.description = "The PostBoost REST API lets you publish, schedule, and analyze social media posts across 8+ platforms from a single integration. No OAuth apps to maintain — PostBoost handles platform authorization for you. ## Base URL All workspace-scoped endpoints are prefixed with `/{workspaceUuid}`. Panel/admin endpoints are prefixed with `/panel`. ## Authentication All requests require a Bearer token in the `Authorization` header. Generate tokens in your PostBoost dashboard under **Settings → Access Tokens**. ``` Authorization: Bearer YOUR_API_TOKEN ``` "
27
+ s.license = "Unlicense"
28
+ s.required_ruby_version = ">= 2.7"
29
+ s.metadata = {}
30
+
31
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
32
+
33
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
+
35
+ s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
36
+ s.test_files = `find spec/*`.split("\n")
37
+ s.executables = []
38
+ s.require_paths = ["lib"]
39
+ end
@@ -0,0 +1,60 @@
1
+ =begin
2
+ #PostBoost API
3
+
4
+ #The PostBoost REST API lets you publish, schedule, and analyze social media posts across 8+ platforms from a single integration. No OAuth apps to maintain — PostBoost handles platform authorization for you. ## Base URL All workspace-scoped endpoints are prefixed with `/{workspaceUuid}`. Panel/admin endpoints are prefixed with `/panel`. ## Authentication All requests require a Bearer token in the `Authorization` header. Generate tokens in your PostBoost dashboard under **Settings → Access Tokens**. ``` Authorization: Bearer YOUR_API_TOKEN ```
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: hi@postboost.co
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.9.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PostBoost::AccountsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'AccountsApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PostBoost::AccountsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of AccountsApi' do
30
+ it 'should create an instance of AccountsApi' do
31
+ expect(@api_instance).to be_instance_of(PostBoost::AccountsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for get_account
36
+ # Get account
37
+ # Returns a single social media account.
38
+ # @param workspace_uuid UUID of the workspace.
39
+ # @param account_uuid UUID of the social media account.
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [Account]
42
+ describe 'get_account test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ # unit tests for list_accounts
49
+ # List accounts
50
+ # Returns all social media accounts connected to the workspace.
51
+ # @param workspace_uuid UUID of the workspace.
52
+ # @param [Hash] opts the optional parameters
53
+ # @return [ListAccounts200Response]
54
+ describe 'list_accounts test' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
+ end
58
+ end
59
+
60
+ end
@@ -0,0 +1,182 @@
1
+ =begin
2
+ #PostBoost API
3
+
4
+ #The PostBoost REST API lets you publish, schedule, and analyze social media posts across 8+ platforms from a single integration. No OAuth apps to maintain — PostBoost handles platform authorization for you. ## Base URL All workspace-scoped endpoints are prefixed with `/{workspaceUuid}`. Panel/admin endpoints are prefixed with `/panel`. ## Authentication All requests require a Bearer token in the `Authorization` header. Generate tokens in your PostBoost dashboard under **Settings → Access Tokens**. ``` Authorization: Bearer YOUR_API_TOKEN ```
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: hi@postboost.co
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.9.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PostBoost::MediaApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'MediaApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PostBoost::MediaApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of MediaApi' do
30
+ it 'should create an instance of MediaApi' do
31
+ expect(@api_instance).to be_instance_of(PostBoost::MediaApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for abort_chunked_upload
36
+ # Abort chunked upload
37
+ # Cancel an in-progress chunked upload session and clean up uploaded chunks.
38
+ # @param workspace_uuid UUID of the workspace.
39
+ # @param upload_uuid
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [nil]
42
+ describe 'abort_chunked_upload test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ # unit tests for complete_chunked_upload
49
+ # Complete chunked upload
50
+ # Signal that all chunks have been uploaded. Returns the final media object.
51
+ # @param workspace_uuid UUID of the workspace.
52
+ # @param upload_uuid
53
+ # @param [Hash] opts the optional parameters
54
+ # @return [Media]
55
+ describe 'complete_chunked_upload test' do
56
+ it 'should work' do
57
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
58
+ end
59
+ end
60
+
61
+ # unit tests for delete_media_bulk
62
+ # Delete media (bulk)
63
+ # Delete one or more media items by their IDs.
64
+ # @param workspace_uuid UUID of the workspace.
65
+ # @param delete_media_bulk_request
66
+ # @param [Hash] opts the optional parameters
67
+ # @return [Object]
68
+ describe 'delete_media_bulk test' do
69
+ it 'should work' do
70
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
71
+ end
72
+ end
73
+
74
+ # unit tests for get_media
75
+ # Get media
76
+ # Returns a single media asset.
77
+ # @param workspace_uuid UUID of the workspace.
78
+ # @param media_uuid UUID of the media asset.
79
+ # @param [Hash] opts the optional parameters
80
+ # @return [Media]
81
+ describe 'get_media test' do
82
+ it 'should work' do
83
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
84
+ end
85
+ end
86
+
87
+ # unit tests for get_remote_upload_status
88
+ # Get remote upload status
89
+ # Poll the status of an in-progress remote media download.
90
+ # @param workspace_uuid UUID of the workspace.
91
+ # @param download_id
92
+ # @param [Hash] opts the optional parameters
93
+ # @return [GetRemoteUploadStatus200Response]
94
+ describe 'get_remote_upload_status test' do
95
+ it 'should work' do
96
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
97
+ end
98
+ end
99
+
100
+ # unit tests for initiate_chunked_upload
101
+ # Initiate chunked upload
102
+ # Start a chunked upload session for large files. Returns an &#x60;upload_uuid&#x60;, &#x60;chunk_size&#x60;, and &#x60;total_chunks&#x60; to use for subsequent chunk requests.
103
+ # @param workspace_uuid UUID of the workspace.
104
+ # @param initiate_chunked_upload_request
105
+ # @param [Hash] opts the optional parameters
106
+ # @return [InitiateChunkedUpload200Response]
107
+ describe 'initiate_chunked_upload test' do
108
+ it 'should work' do
109
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
110
+ end
111
+ end
112
+
113
+ # unit tests for initiate_remote_upload
114
+ # Initiate remote upload
115
+ # Download a file from a remote URL into the media library. For small files the media object is returned immediately. For large files a &#x60;download_id&#x60; is returned — poll the status endpoint.
116
+ # @param workspace_uuid UUID of the workspace.
117
+ # @param initiate_remote_upload_request
118
+ # @param [Hash] opts the optional parameters
119
+ # @return [InitiateRemoteUpload200Response]
120
+ describe 'initiate_remote_upload test' do
121
+ it 'should work' do
122
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
123
+ end
124
+ end
125
+
126
+ # unit tests for list_media
127
+ # List media
128
+ # Returns a paginated list of media assets in the workspace library.
129
+ # @param workspace_uuid UUID of the workspace.
130
+ # @param [Hash] opts the optional parameters
131
+ # @option opts [Integer] :page Page number (20 items per page).
132
+ # @return [ListMedia200Response]
133
+ describe 'list_media test' do
134
+ it 'should work' do
135
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
136
+ end
137
+ end
138
+
139
+ # unit tests for update_media
140
+ # Update media
141
+ # Update the alt text of a media asset.
142
+ # @param workspace_uuid UUID of the workspace.
143
+ # @param media_uuid UUID of the media asset.
144
+ # @param update_media_request
145
+ # @param [Hash] opts the optional parameters
146
+ # @return [Object]
147
+ describe 'update_media test' do
148
+ it 'should work' do
149
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
150
+ end
151
+ end
152
+
153
+ # unit tests for upload_chunk
154
+ # Upload a chunk
155
+ # Upload a single chunk of a chunked upload session.
156
+ # @param workspace_uuid UUID of the workspace.
157
+ # @param upload_uuid
158
+ # @param chunk
159
+ # @param chunk_index Zero-based index of this chunk.
160
+ # @param [Hash] opts the optional parameters
161
+ # @return [UploadChunk200Response]
162
+ describe 'upload_chunk test' do
163
+ it 'should work' do
164
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
165
+ end
166
+ end
167
+
168
+ # unit tests for upload_media
169
+ # Upload media (binary)
170
+ # Upload a file directly as multipart form data.
171
+ # @param workspace_uuid UUID of the workspace.
172
+ # @param file The file to upload.
173
+ # @param [Hash] opts the optional parameters
174
+ # @option opts [String] :alt_text Alternative text for accessibility.
175
+ # @return [Media]
176
+ describe 'upload_media test' do
177
+ it 'should work' do
178
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
179
+ end
180
+ end
181
+
182
+ end
@@ -0,0 +1,152 @@
1
+ =begin
2
+ #PostBoost API
3
+
4
+ #The PostBoost REST API lets you publish, schedule, and analyze social media posts across 8+ platforms from a single integration. No OAuth apps to maintain — PostBoost handles platform authorization for you. ## Base URL All workspace-scoped endpoints are prefixed with `/{workspaceUuid}`. Panel/admin endpoints are prefixed with `/panel`. ## Authentication All requests require a Bearer token in the `Authorization` header. Generate tokens in your PostBoost dashboard under **Settings → Access Tokens**. ``` Authorization: Bearer YOUR_API_TOKEN ```
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: hi@postboost.co
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.9.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PostBoost::PostsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'PostsApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PostBoost::PostsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of PostsApi' do
30
+ it 'should create an instance of PostsApi' do
31
+ expect(@api_instance).to be_instance_of(PostBoost::PostsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for add_post_to_queue
36
+ # Add post to queue
37
+ # Add an existing post to the smart publishing queue.
38
+ # @param workspace_uuid UUID of the workspace.
39
+ # @param post_uuid UUID of the post.
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [ScheduleResult]
42
+ describe 'add_post_to_queue test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
48
+ # unit tests for approve_post
49
+ # Approve post
50
+ # Approve a post that is pending review.
51
+ # @param workspace_uuid UUID of the workspace.
52
+ # @param post_uuid UUID of the post.
53
+ # @param [Hash] opts the optional parameters
54
+ # @return [ScheduleResult]
55
+ describe 'approve_post test' do
56
+ it 'should work' do
57
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
58
+ end
59
+ end
60
+
61
+ # unit tests for create_post
62
+ # Create post
63
+ # Create a new post. Use &#x60;schedule: true&#x60; with &#x60;date&#x60; and &#x60;time&#x60; to schedule, &#x60;schedule_now: true&#x60; to publish immediately, or &#x60;queue: true&#x60; to add to the smart publishing queue.
64
+ # @param workspace_uuid UUID of the workspace.
65
+ # @param post_input
66
+ # @param [Hash] opts the optional parameters
67
+ # @return [Post]
68
+ describe 'create_post test' do
69
+ it 'should work' do
70
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
71
+ end
72
+ end
73
+
74
+ # unit tests for delete_post
75
+ # Delete post
76
+ # @param workspace_uuid UUID of the workspace.
77
+ # @param post_uuid UUID of the post.
78
+ # @param [Hash] opts the optional parameters
79
+ # @option opts [DeletePostRequest] :delete_post_request
80
+ # @return [DeleteResult]
81
+ describe 'delete_post test' do
82
+ it 'should work' do
83
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
84
+ end
85
+ end
86
+
87
+ # unit tests for delete_posts_bulk
88
+ # Delete posts (bulk)
89
+ # Delete multiple posts at once.
90
+ # @param workspace_uuid UUID of the workspace.
91
+ # @param delete_posts_bulk_request
92
+ # @param [Hash] opts the optional parameters
93
+ # @return [DeleteResult]
94
+ describe 'delete_posts_bulk test' do
95
+ it 'should work' do
96
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
97
+ end
98
+ end
99
+
100
+ # unit tests for get_post
101
+ # Get post
102
+ # @param workspace_uuid UUID of the workspace.
103
+ # @param post_uuid UUID of the post.
104
+ # @param [Hash] opts the optional parameters
105
+ # @return [Post]
106
+ describe 'get_post test' do
107
+ it 'should work' do
108
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
109
+ end
110
+ end
111
+
112
+ # unit tests for list_posts
113
+ # List posts
114
+ # Returns a paginated list of posts in the workspace.
115
+ # @param workspace_uuid UUID of the workspace.
116
+ # @param [Hash] opts the optional parameters
117
+ # @option opts [Integer] :page
118
+ # @return [ListPosts200Response]
119
+ describe 'list_posts test' do
120
+ it 'should work' do
121
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
122
+ end
123
+ end
124
+
125
+ # unit tests for schedule_post
126
+ # Schedule post
127
+ # Schedule an existing post. Set &#x60;postNow: true&#x60; to publish immediately.
128
+ # @param workspace_uuid UUID of the workspace.
129
+ # @param post_uuid UUID of the post.
130
+ # @param schedule_post_request
131
+ # @param [Hash] opts the optional parameters
132
+ # @return [ScheduleResult]
133
+ describe 'schedule_post test' do
134
+ it 'should work' do
135
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
136
+ end
137
+ end
138
+
139
+ # unit tests for update_post
140
+ # Update post
141
+ # @param workspace_uuid UUID of the workspace.
142
+ # @param post_uuid UUID of the post.
143
+ # @param post_input
144
+ # @param [Hash] opts the optional parameters
145
+ # @return [Object]
146
+ describe 'update_post test' do
147
+ it 'should work' do
148
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
149
+ end
150
+ end
151
+
152
+ end
@@ -0,0 +1,103 @@
1
+ =begin
2
+ #PostBoost API
3
+
4
+ #The PostBoost REST API lets you publish, schedule, and analyze social media posts across 8+ platforms from a single integration. No OAuth apps to maintain — PostBoost handles platform authorization for you. ## Base URL All workspace-scoped endpoints are prefixed with `/{workspaceUuid}`. Panel/admin endpoints are prefixed with `/panel`. ## Authentication All requests require a Bearer token in the `Authorization` header. Generate tokens in your PostBoost dashboard under **Settings → Access Tokens**. ``` Authorization: Bearer YOUR_API_TOKEN ```
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: hi@postboost.co
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.9.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for PostBoost::ReceiptsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'ReceiptsApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = PostBoost::ReceiptsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of ReceiptsApi' do
30
+ it 'should create an instance of ReceiptsApi' do
31
+ expect(@api_instance).to be_instance_of(PostBoost::ReceiptsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for create_receipt
36
+ # Create receipt
37
+ # @param receipt_input
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [Receipt]
40
+ describe 'create_receipt test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
43
+ end
44
+ end
45
+
46
+ # unit tests for delete_receipt
47
+ # Delete receipt
48
+ # @param receipt_uuid UUID of the receipt.
49
+ # @param [Hash] opts the optional parameters
50
+ # @return [Object]
51
+ describe 'delete_receipt test' do
52
+ it 'should work' do
53
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
54
+ end
55
+ end
56
+
57
+ # unit tests for delete_receipts_bulk
58
+ # Delete receipts (bulk)
59
+ # @param delete_receipts_bulk_request
60
+ # @param [Hash] opts the optional parameters
61
+ # @return [Object]
62
+ describe 'delete_receipts_bulk test' do
63
+ it 'should work' do
64
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
65
+ end
66
+ end
67
+
68
+ # unit tests for get_receipt
69
+ # Get receipt
70
+ # @param receipt_uuid UUID of the receipt.
71
+ # @param [Hash] opts the optional parameters
72
+ # @return [Receipt]
73
+ describe 'get_receipt test' do
74
+ it 'should work' do
75
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
76
+ end
77
+ end
78
+
79
+ # unit tests for list_receipts
80
+ # List receipts
81
+ # @param [Hash] opts the optional parameters
82
+ # @option opts [String] :workspace_uuid
83
+ # @option opts [String] :invoice_number
84
+ # @return [ListReceipts200Response]
85
+ describe 'list_receipts test' do
86
+ it 'should work' do
87
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
88
+ end
89
+ end
90
+
91
+ # unit tests for update_receipt
92
+ # Update receipt
93
+ # @param receipt_uuid UUID of the receipt.
94
+ # @param receipt_update_input
95
+ # @param [Hash] opts the optional parameters
96
+ # @return [Object]
97
+ describe 'update_receipt test' do
98
+ it 'should work' do
99
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
100
+ end
101
+ end
102
+
103
+ end