solifyn 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE +202 -0
- data/README.md +6 -10
- data/docs/AffiliateApi.md +845 -0
- data/docs/BillingApi.md +68 -0
- data/docs/BrandsApi.md +286 -0
- data/docs/Business.md +56 -0
- data/docs/BusinessCreate.md +18 -0
- data/docs/BusinessFullCreate.md +26 -0
- data/docs/BusinessFullCreateResponse.md +20 -0
- data/docs/BusinessesApi.md +350 -0
- data/docs/ChatApi.md +246 -0
- data/docs/CollectionProductDto.md +0 -6
- data/docs/CommunityApi.md +497 -0
- data/docs/DefaultApi.md +0 -284
- data/docs/EntitlementGrantResponseDto.md +0 -8
- data/docs/PartnerApi.md +125 -0
- data/docs/PayoutAccessToken.md +20 -0
- data/docs/PayoutAccount.md +22 -0
- data/docs/PayoutAccountLink.md +20 -0
- data/docs/PayoutMethod.md +24 -0
- data/docs/PayoutMethodList.md +18 -0
- data/docs/PayoutVerification.md +24 -0
- data/docs/PayoutVerificationList.md +18 -0
- data/docs/PayoutsApi.md +579 -0
- data/docs/Product.md +0 -6
- data/docs/ProductCreate.md +0 -6
- data/docs/ProductUpdate.md +0 -6
- data/docs/TicketApi.md +318 -0
- data/docs/UserPage.md +26 -0
- data/docs/UserProfileThemesApi.md +345 -0
- data/docs/UserSettings.md +34 -0
- data/docs/UserSettingsUpdate.md +76 -0
- data/docs/UserStats.md +20 -0
- data/docs/UserTheme.md +26 -0
- data/docs/UserThemeUpdate.md +22 -0
- data/docs/WhopApiKeysRotation.md +18 -0
- data/docs/Withdrawal.md +46 -0
- data/docs/WithdrawalCreate.md +22 -0
- data/docs/WithdrawalList.md +20 -0
- data/git_push.sh +2 -2
- data/lib/solifyn/api/affiliate_api.rb +760 -0
- data/lib/solifyn/api/billing_api.rb +77 -0
- data/lib/solifyn/api/brands_api.rb +284 -0
- data/lib/solifyn/api/businesses_api.rb +338 -0
- data/lib/solifyn/api/chat_api.rb +232 -0
- data/lib/solifyn/api/community_api.rb +466 -0
- data/lib/solifyn/api/default_api.rb +0 -248
- data/lib/solifyn/api/{discord_integration_api.rb → partner_api.rb} +19 -32
- data/lib/solifyn/api/payouts_api.rb +520 -0
- data/lib/solifyn/api/ticket_api.rb +328 -0
- data/lib/solifyn/api/user_profile_themes_api.rb +313 -0
- data/lib/solifyn/models/business.rb +482 -0
- data/lib/solifyn/models/business_create.rb +241 -0
- data/lib/solifyn/models/business_full_create.rb +288 -0
- data/lib/solifyn/models/business_full_create_response.rb +239 -0
- data/lib/solifyn/models/collection_product_dto.rb +1 -52
- data/lib/solifyn/models/entitlement_grant_response_dto.rb +1 -41
- data/lib/solifyn/models/payout_access_token.rb +239 -0
- data/lib/solifyn/models/payout_account.rb +249 -0
- data/lib/solifyn/models/payout_account_link.rb +239 -0
- data/lib/solifyn/models/{discord_roles_response_dto.rb → payout_method.rb} +34 -41
- data/lib/solifyn/models/payout_method_list.rb +224 -0
- data/lib/solifyn/models/{webhook_entitlement_grant_payload.rb → payout_verification.rb} +41 -118
- data/lib/solifyn/models/payout_verification_list.rb +224 -0
- data/lib/solifyn/models/product.rb +1 -52
- data/lib/solifyn/models/product_create.rb +1 -33
- data/lib/solifyn/models/product_update.rb +1 -33
- data/lib/solifyn/models/user_page.rb +290 -0
- data/lib/solifyn/models/user_settings.rb +337 -0
- data/lib/solifyn/models/user_settings_update.rb +505 -0
- data/lib/solifyn/models/user_stats.rb +241 -0
- data/lib/solifyn/models/user_theme.rb +276 -0
- data/lib/solifyn/models/user_theme_update.rb +235 -0
- data/lib/solifyn/models/whop_api_keys_rotation.rb +222 -0
- data/lib/solifyn/models/withdrawal.rb +411 -0
- data/lib/solifyn/models/withdrawal_create.rb +249 -0
- data/lib/solifyn/models/withdrawal_list.rb +241 -0
- data/lib/solifyn/version.rb +1 -1
- data/lib/solifyn.rb +0 -3
- data/spec/api/affiliate_api_spec.rb +165 -0
- data/spec/api/billing_api_spec.rb +46 -0
- data/spec/api/brands_api_spec.rb +83 -0
- data/spec/api/businesses_api_spec.rb +93 -0
- data/spec/api/chat_api_spec.rb +72 -0
- data/spec/api/checkout_api_spec.rb +0 -12
- data/spec/api/community_api_spec.rb +113 -0
- data/spec/api/default_api_spec.rb +11 -59
- data/spec/api/developer_api_spec.rb +29 -52
- data/spec/api/{discord_integration_api_spec.rb → partner_api_spec.rb} +11 -16
- data/spec/api/payouts_api_spec.rb +133 -0
- data/spec/api/ticket_api_spec.rb +86 -0
- data/spec/api/user_profile_themes_api_spec.rb +91 -0
- data/spec/models/business_create_spec.rb +36 -0
- data/spec/models/business_full_create_response_spec.rb +42 -0
- data/spec/models/business_full_create_spec.rb +60 -0
- data/spec/models/business_spec.rb +150 -0
- data/spec/models/checkout_session_details_dto_spec.rb +0 -6
- data/spec/models/collection_product_dto_spec.rb +0 -28
- data/spec/models/order_spec.rb +0 -6
- data/spec/models/payout_access_token_spec.rb +42 -0
- data/spec/models/payout_account_link_spec.rb +42 -0
- data/spec/models/payout_account_spec.rb +48 -0
- data/spec/models/payout_method_list_spec.rb +36 -0
- data/spec/models/{discord_roles_response_dto_spec.rb → payout_method_spec.rb} +9 -9
- data/spec/models/payout_verification_list_spec.rb +36 -0
- data/spec/models/payout_verification_spec.rb +54 -0
- data/spec/models/product_create_spec.rb +0 -28
- data/spec/models/product_spec.rb +0 -28
- data/spec/models/product_update_spec.rb +0 -28
- data/spec/models/user_page_spec.rb +60 -0
- data/spec/models/user_settings_spec.rb +84 -0
- data/spec/models/user_settings_update_spec.rb +210 -0
- data/spec/models/user_stats_spec.rb +42 -0
- data/spec/models/user_theme_spec.rb +60 -0
- data/spec/models/user_theme_update_spec.rb +48 -0
- data/spec/models/whop_api_keys_rotation_spec.rb +36 -0
- data/spec/models/withdrawal_create_spec.rb +48 -0
- data/spec/models/withdrawal_list_spec.rb +42 -0
- data/spec/models/{webhook_entitlement_grant_payload_spec.rb → withdrawal_spec.rb} +23 -17
- metadata +258 -145
- data/docs/DiscordIntegrationApi.md +0 -135
- data/docs/DiscordRolesResponseDto.md +0 -24
- data/docs/WebhookEntitlementGrantPayload.md +0 -44
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Solifyn API
|
|
3
|
+
|
|
4
|
+
#Welcome to the Solifyn API Reference. Leverage our secure endpoints to manage products and issue, validate, and manage software license keys programmatically.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module Solifyn
|
|
16
|
+
class ChatApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# @param customer_id [String]
|
|
23
|
+
# @param [Hash] opts the optional parameters
|
|
24
|
+
# @return [nil]
|
|
25
|
+
def chat_controller_get_merchant_messages(customer_id, opts = {})
|
|
26
|
+
chat_controller_get_merchant_messages_with_http_info(customer_id, opts)
|
|
27
|
+
nil
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# @param customer_id [String]
|
|
31
|
+
# @param [Hash] opts the optional parameters
|
|
32
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
33
|
+
def chat_controller_get_merchant_messages_with_http_info(customer_id, opts = {})
|
|
34
|
+
if @api_client.config.debugging
|
|
35
|
+
@api_client.config.logger.debug 'Calling API: ChatApi.chat_controller_get_merchant_messages ...'
|
|
36
|
+
end
|
|
37
|
+
# verify the required parameter 'customer_id' is set
|
|
38
|
+
if @api_client.config.client_side_validation && customer_id.nil?
|
|
39
|
+
fail ArgumentError, "Missing the required parameter 'customer_id' when calling ChatApi.chat_controller_get_merchant_messages"
|
|
40
|
+
end
|
|
41
|
+
# resource path
|
|
42
|
+
local_var_path = '/v1/chat/merchant/messages/{customerId}'.sub('{' + 'customerId' + '}', CGI.escape(customer_id.to_s))
|
|
43
|
+
|
|
44
|
+
# query parameters
|
|
45
|
+
query_params = opts[:query_params] || {}
|
|
46
|
+
|
|
47
|
+
# header parameters
|
|
48
|
+
header_params = opts[:header_params] || {}
|
|
49
|
+
|
|
50
|
+
# form parameters
|
|
51
|
+
form_params = opts[:form_params] || {}
|
|
52
|
+
|
|
53
|
+
# http body (model)
|
|
54
|
+
post_body = opts[:debug_body]
|
|
55
|
+
|
|
56
|
+
# return_type
|
|
57
|
+
return_type = opts[:debug_return_type]
|
|
58
|
+
|
|
59
|
+
# auth_names
|
|
60
|
+
auth_names = opts[:debug_auth_names] || []
|
|
61
|
+
|
|
62
|
+
new_options = opts.merge(
|
|
63
|
+
:operation => :"ChatApi.chat_controller_get_merchant_messages",
|
|
64
|
+
:header_params => header_params,
|
|
65
|
+
:query_params => query_params,
|
|
66
|
+
:form_params => form_params,
|
|
67
|
+
:body => post_body,
|
|
68
|
+
:auth_names => auth_names,
|
|
69
|
+
:return_type => return_type
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
73
|
+
if @api_client.config.debugging
|
|
74
|
+
@api_client.config.logger.debug "API called: ChatApi#chat_controller_get_merchant_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
75
|
+
end
|
|
76
|
+
return data, status_code, headers
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# @param [Hash] opts the optional parameters
|
|
80
|
+
# @return [nil]
|
|
81
|
+
def chat_controller_get_merchant_sessions(opts = {})
|
|
82
|
+
chat_controller_get_merchant_sessions_with_http_info(opts)
|
|
83
|
+
nil
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# @param [Hash] opts the optional parameters
|
|
87
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
88
|
+
def chat_controller_get_merchant_sessions_with_http_info(opts = {})
|
|
89
|
+
if @api_client.config.debugging
|
|
90
|
+
@api_client.config.logger.debug 'Calling API: ChatApi.chat_controller_get_merchant_sessions ...'
|
|
91
|
+
end
|
|
92
|
+
# resource path
|
|
93
|
+
local_var_path = '/v1/chat/merchant/sessions'
|
|
94
|
+
|
|
95
|
+
# query parameters
|
|
96
|
+
query_params = opts[:query_params] || {}
|
|
97
|
+
|
|
98
|
+
# header parameters
|
|
99
|
+
header_params = opts[:header_params] || {}
|
|
100
|
+
|
|
101
|
+
# form parameters
|
|
102
|
+
form_params = opts[:form_params] || {}
|
|
103
|
+
|
|
104
|
+
# http body (model)
|
|
105
|
+
post_body = opts[:debug_body]
|
|
106
|
+
|
|
107
|
+
# return_type
|
|
108
|
+
return_type = opts[:debug_return_type]
|
|
109
|
+
|
|
110
|
+
# auth_names
|
|
111
|
+
auth_names = opts[:debug_auth_names] || []
|
|
112
|
+
|
|
113
|
+
new_options = opts.merge(
|
|
114
|
+
:operation => :"ChatApi.chat_controller_get_merchant_sessions",
|
|
115
|
+
:header_params => header_params,
|
|
116
|
+
:query_params => query_params,
|
|
117
|
+
:form_params => form_params,
|
|
118
|
+
:body => post_body,
|
|
119
|
+
:auth_names => auth_names,
|
|
120
|
+
:return_type => return_type
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
124
|
+
if @api_client.config.debugging
|
|
125
|
+
@api_client.config.logger.debug "API called: ChatApi#chat_controller_get_merchant_sessions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
126
|
+
end
|
|
127
|
+
return data, status_code, headers
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# @param [Hash] opts the optional parameters
|
|
131
|
+
# @return [nil]
|
|
132
|
+
def chat_controller_send_customer_message(opts = {})
|
|
133
|
+
chat_controller_send_customer_message_with_http_info(opts)
|
|
134
|
+
nil
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# @param [Hash] opts the optional parameters
|
|
138
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
139
|
+
def chat_controller_send_customer_message_with_http_info(opts = {})
|
|
140
|
+
if @api_client.config.debugging
|
|
141
|
+
@api_client.config.logger.debug 'Calling API: ChatApi.chat_controller_send_customer_message ...'
|
|
142
|
+
end
|
|
143
|
+
# resource path
|
|
144
|
+
local_var_path = '/v1/chat/customer/message'
|
|
145
|
+
|
|
146
|
+
# query parameters
|
|
147
|
+
query_params = opts[:query_params] || {}
|
|
148
|
+
|
|
149
|
+
# header parameters
|
|
150
|
+
header_params = opts[:header_params] || {}
|
|
151
|
+
|
|
152
|
+
# form parameters
|
|
153
|
+
form_params = opts[:form_params] || {}
|
|
154
|
+
|
|
155
|
+
# http body (model)
|
|
156
|
+
post_body = opts[:debug_body]
|
|
157
|
+
|
|
158
|
+
# return_type
|
|
159
|
+
return_type = opts[:debug_return_type]
|
|
160
|
+
|
|
161
|
+
# auth_names
|
|
162
|
+
auth_names = opts[:debug_auth_names] || []
|
|
163
|
+
|
|
164
|
+
new_options = opts.merge(
|
|
165
|
+
:operation => :"ChatApi.chat_controller_send_customer_message",
|
|
166
|
+
:header_params => header_params,
|
|
167
|
+
:query_params => query_params,
|
|
168
|
+
:form_params => form_params,
|
|
169
|
+
:body => post_body,
|
|
170
|
+
:auth_names => auth_names,
|
|
171
|
+
:return_type => return_type
|
|
172
|
+
)
|
|
173
|
+
|
|
174
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
175
|
+
if @api_client.config.debugging
|
|
176
|
+
@api_client.config.logger.debug "API called: ChatApi#chat_controller_send_customer_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
177
|
+
end
|
|
178
|
+
return data, status_code, headers
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# @param [Hash] opts the optional parameters
|
|
182
|
+
# @return [nil]
|
|
183
|
+
def chat_controller_send_merchant_message(opts = {})
|
|
184
|
+
chat_controller_send_merchant_message_with_http_info(opts)
|
|
185
|
+
nil
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# @param [Hash] opts the optional parameters
|
|
189
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
190
|
+
def chat_controller_send_merchant_message_with_http_info(opts = {})
|
|
191
|
+
if @api_client.config.debugging
|
|
192
|
+
@api_client.config.logger.debug 'Calling API: ChatApi.chat_controller_send_merchant_message ...'
|
|
193
|
+
end
|
|
194
|
+
# resource path
|
|
195
|
+
local_var_path = '/v1/chat/merchant/message'
|
|
196
|
+
|
|
197
|
+
# query parameters
|
|
198
|
+
query_params = opts[:query_params] || {}
|
|
199
|
+
|
|
200
|
+
# header parameters
|
|
201
|
+
header_params = opts[:header_params] || {}
|
|
202
|
+
|
|
203
|
+
# form parameters
|
|
204
|
+
form_params = opts[:form_params] || {}
|
|
205
|
+
|
|
206
|
+
# http body (model)
|
|
207
|
+
post_body = opts[:debug_body]
|
|
208
|
+
|
|
209
|
+
# return_type
|
|
210
|
+
return_type = opts[:debug_return_type]
|
|
211
|
+
|
|
212
|
+
# auth_names
|
|
213
|
+
auth_names = opts[:debug_auth_names] || []
|
|
214
|
+
|
|
215
|
+
new_options = opts.merge(
|
|
216
|
+
:operation => :"ChatApi.chat_controller_send_merchant_message",
|
|
217
|
+
:header_params => header_params,
|
|
218
|
+
:query_params => query_params,
|
|
219
|
+
:form_params => form_params,
|
|
220
|
+
:body => post_body,
|
|
221
|
+
:auth_names => auth_names,
|
|
222
|
+
:return_type => return_type
|
|
223
|
+
)
|
|
224
|
+
|
|
225
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
226
|
+
if @api_client.config.debugging
|
|
227
|
+
@api_client.config.logger.debug "API called: ChatApi#chat_controller_send_merchant_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
228
|
+
end
|
|
229
|
+
return data, status_code, headers
|
|
230
|
+
end
|
|
231
|
+
end
|
|
232
|
+
end
|
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Solifyn API
|
|
3
|
+
|
|
4
|
+
#Welcome to the Solifyn API Reference. Leverage our secure endpoints to manage products and issue, validate, and manage software license keys programmatically.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.10.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module Solifyn
|
|
16
|
+
class CommunityApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# @param [Hash] opts the optional parameters
|
|
23
|
+
# @return [nil]
|
|
24
|
+
def community_controller_create_post(opts = {})
|
|
25
|
+
community_controller_create_post_with_http_info(opts)
|
|
26
|
+
nil
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# @param [Hash] opts the optional parameters
|
|
30
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
31
|
+
def community_controller_create_post_with_http_info(opts = {})
|
|
32
|
+
if @api_client.config.debugging
|
|
33
|
+
@api_client.config.logger.debug 'Calling API: CommunityApi.community_controller_create_post ...'
|
|
34
|
+
end
|
|
35
|
+
# resource path
|
|
36
|
+
local_var_path = '/v1/community/posts'
|
|
37
|
+
|
|
38
|
+
# query parameters
|
|
39
|
+
query_params = opts[:query_params] || {}
|
|
40
|
+
|
|
41
|
+
# header parameters
|
|
42
|
+
header_params = opts[:header_params] || {}
|
|
43
|
+
|
|
44
|
+
# form parameters
|
|
45
|
+
form_params = opts[:form_params] || {}
|
|
46
|
+
|
|
47
|
+
# http body (model)
|
|
48
|
+
post_body = opts[:debug_body]
|
|
49
|
+
|
|
50
|
+
# return_type
|
|
51
|
+
return_type = opts[:debug_return_type]
|
|
52
|
+
|
|
53
|
+
# auth_names
|
|
54
|
+
auth_names = opts[:debug_auth_names] || []
|
|
55
|
+
|
|
56
|
+
new_options = opts.merge(
|
|
57
|
+
:operation => :"CommunityApi.community_controller_create_post",
|
|
58
|
+
:header_params => header_params,
|
|
59
|
+
:query_params => query_params,
|
|
60
|
+
:form_params => form_params,
|
|
61
|
+
:body => post_body,
|
|
62
|
+
:auth_names => auth_names,
|
|
63
|
+
:return_type => return_type
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
67
|
+
if @api_client.config.debugging
|
|
68
|
+
@api_client.config.logger.debug "API called: CommunityApi#community_controller_create_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
69
|
+
end
|
|
70
|
+
return data, status_code, headers
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# @param id [String]
|
|
74
|
+
# @param [Hash] opts the optional parameters
|
|
75
|
+
# @return [nil]
|
|
76
|
+
def community_controller_delete_post(id, opts = {})
|
|
77
|
+
community_controller_delete_post_with_http_info(id, opts)
|
|
78
|
+
nil
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# @param id [String]
|
|
82
|
+
# @param [Hash] opts the optional parameters
|
|
83
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
84
|
+
def community_controller_delete_post_with_http_info(id, opts = {})
|
|
85
|
+
if @api_client.config.debugging
|
|
86
|
+
@api_client.config.logger.debug 'Calling API: CommunityApi.community_controller_delete_post ...'
|
|
87
|
+
end
|
|
88
|
+
# verify the required parameter 'id' is set
|
|
89
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
90
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CommunityApi.community_controller_delete_post"
|
|
91
|
+
end
|
|
92
|
+
# resource path
|
|
93
|
+
local_var_path = '/v1/community/posts/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
94
|
+
|
|
95
|
+
# query parameters
|
|
96
|
+
query_params = opts[:query_params] || {}
|
|
97
|
+
|
|
98
|
+
# header parameters
|
|
99
|
+
header_params = opts[:header_params] || {}
|
|
100
|
+
|
|
101
|
+
# form parameters
|
|
102
|
+
form_params = opts[:form_params] || {}
|
|
103
|
+
|
|
104
|
+
# http body (model)
|
|
105
|
+
post_body = opts[:debug_body]
|
|
106
|
+
|
|
107
|
+
# return_type
|
|
108
|
+
return_type = opts[:debug_return_type]
|
|
109
|
+
|
|
110
|
+
# auth_names
|
|
111
|
+
auth_names = opts[:debug_auth_names] || []
|
|
112
|
+
|
|
113
|
+
new_options = opts.merge(
|
|
114
|
+
:operation => :"CommunityApi.community_controller_delete_post",
|
|
115
|
+
:header_params => header_params,
|
|
116
|
+
:query_params => query_params,
|
|
117
|
+
:form_params => form_params,
|
|
118
|
+
:body => post_body,
|
|
119
|
+
:auth_names => auth_names,
|
|
120
|
+
:return_type => return_type
|
|
121
|
+
)
|
|
122
|
+
|
|
123
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
124
|
+
if @api_client.config.debugging
|
|
125
|
+
@api_client.config.logger.debug "API called: CommunityApi#community_controller_delete_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
126
|
+
end
|
|
127
|
+
return data, status_code, headers
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
# @param [Hash] opts the optional parameters
|
|
131
|
+
# @return [nil]
|
|
132
|
+
def community_controller_get_posts(opts = {})
|
|
133
|
+
community_controller_get_posts_with_http_info(opts)
|
|
134
|
+
nil
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# @param [Hash] opts the optional parameters
|
|
138
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
139
|
+
def community_controller_get_posts_with_http_info(opts = {})
|
|
140
|
+
if @api_client.config.debugging
|
|
141
|
+
@api_client.config.logger.debug 'Calling API: CommunityApi.community_controller_get_posts ...'
|
|
142
|
+
end
|
|
143
|
+
# resource path
|
|
144
|
+
local_var_path = '/v1/community/posts'
|
|
145
|
+
|
|
146
|
+
# query parameters
|
|
147
|
+
query_params = opts[:query_params] || {}
|
|
148
|
+
|
|
149
|
+
# header parameters
|
|
150
|
+
header_params = opts[:header_params] || {}
|
|
151
|
+
|
|
152
|
+
# form parameters
|
|
153
|
+
form_params = opts[:form_params] || {}
|
|
154
|
+
|
|
155
|
+
# http body (model)
|
|
156
|
+
post_body = opts[:debug_body]
|
|
157
|
+
|
|
158
|
+
# return_type
|
|
159
|
+
return_type = opts[:debug_return_type]
|
|
160
|
+
|
|
161
|
+
# auth_names
|
|
162
|
+
auth_names = opts[:debug_auth_names] || []
|
|
163
|
+
|
|
164
|
+
new_options = opts.merge(
|
|
165
|
+
:operation => :"CommunityApi.community_controller_get_posts",
|
|
166
|
+
:header_params => header_params,
|
|
167
|
+
:query_params => query_params,
|
|
168
|
+
:form_params => form_params,
|
|
169
|
+
:body => post_body,
|
|
170
|
+
:auth_names => auth_names,
|
|
171
|
+
:return_type => return_type
|
|
172
|
+
)
|
|
173
|
+
|
|
174
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
175
|
+
if @api_client.config.debugging
|
|
176
|
+
@api_client.config.logger.debug "API called: CommunityApi#community_controller_get_posts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
177
|
+
end
|
|
178
|
+
return data, status_code, headers
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# @param id [String]
|
|
182
|
+
# @param [Hash] opts the optional parameters
|
|
183
|
+
# @return [nil]
|
|
184
|
+
def community_controller_like_post(id, opts = {})
|
|
185
|
+
community_controller_like_post_with_http_info(id, opts)
|
|
186
|
+
nil
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
# @param id [String]
|
|
190
|
+
# @param [Hash] opts the optional parameters
|
|
191
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
192
|
+
def community_controller_like_post_with_http_info(id, opts = {})
|
|
193
|
+
if @api_client.config.debugging
|
|
194
|
+
@api_client.config.logger.debug 'Calling API: CommunityApi.community_controller_like_post ...'
|
|
195
|
+
end
|
|
196
|
+
# verify the required parameter 'id' is set
|
|
197
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
198
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CommunityApi.community_controller_like_post"
|
|
199
|
+
end
|
|
200
|
+
# resource path
|
|
201
|
+
local_var_path = '/v1/community/posts/{id}/like'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
202
|
+
|
|
203
|
+
# query parameters
|
|
204
|
+
query_params = opts[:query_params] || {}
|
|
205
|
+
|
|
206
|
+
# header parameters
|
|
207
|
+
header_params = opts[:header_params] || {}
|
|
208
|
+
|
|
209
|
+
# form parameters
|
|
210
|
+
form_params = opts[:form_params] || {}
|
|
211
|
+
|
|
212
|
+
# http body (model)
|
|
213
|
+
post_body = opts[:debug_body]
|
|
214
|
+
|
|
215
|
+
# return_type
|
|
216
|
+
return_type = opts[:debug_return_type]
|
|
217
|
+
|
|
218
|
+
# auth_names
|
|
219
|
+
auth_names = opts[:debug_auth_names] || []
|
|
220
|
+
|
|
221
|
+
new_options = opts.merge(
|
|
222
|
+
:operation => :"CommunityApi.community_controller_like_post",
|
|
223
|
+
:header_params => header_params,
|
|
224
|
+
:query_params => query_params,
|
|
225
|
+
:form_params => form_params,
|
|
226
|
+
:body => post_body,
|
|
227
|
+
:auth_names => auth_names,
|
|
228
|
+
:return_type => return_type
|
|
229
|
+
)
|
|
230
|
+
|
|
231
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
232
|
+
if @api_client.config.debugging
|
|
233
|
+
@api_client.config.logger.debug "API called: CommunityApi#community_controller_like_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
234
|
+
end
|
|
235
|
+
return data, status_code, headers
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
# @param id [String]
|
|
239
|
+
# @param [Hash] opts the optional parameters
|
|
240
|
+
# @return [nil]
|
|
241
|
+
def community_controller_report_post(id, opts = {})
|
|
242
|
+
community_controller_report_post_with_http_info(id, opts)
|
|
243
|
+
nil
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
# @param id [String]
|
|
247
|
+
# @param [Hash] opts the optional parameters
|
|
248
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
249
|
+
def community_controller_report_post_with_http_info(id, opts = {})
|
|
250
|
+
if @api_client.config.debugging
|
|
251
|
+
@api_client.config.logger.debug 'Calling API: CommunityApi.community_controller_report_post ...'
|
|
252
|
+
end
|
|
253
|
+
# verify the required parameter 'id' is set
|
|
254
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
255
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CommunityApi.community_controller_report_post"
|
|
256
|
+
end
|
|
257
|
+
# resource path
|
|
258
|
+
local_var_path = '/v1/community/posts/{id}/report'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
259
|
+
|
|
260
|
+
# query parameters
|
|
261
|
+
query_params = opts[:query_params] || {}
|
|
262
|
+
|
|
263
|
+
# header parameters
|
|
264
|
+
header_params = opts[:header_params] || {}
|
|
265
|
+
|
|
266
|
+
# form parameters
|
|
267
|
+
form_params = opts[:form_params] || {}
|
|
268
|
+
|
|
269
|
+
# http body (model)
|
|
270
|
+
post_body = opts[:debug_body]
|
|
271
|
+
|
|
272
|
+
# return_type
|
|
273
|
+
return_type = opts[:debug_return_type]
|
|
274
|
+
|
|
275
|
+
# auth_names
|
|
276
|
+
auth_names = opts[:debug_auth_names] || []
|
|
277
|
+
|
|
278
|
+
new_options = opts.merge(
|
|
279
|
+
:operation => :"CommunityApi.community_controller_report_post",
|
|
280
|
+
:header_params => header_params,
|
|
281
|
+
:query_params => query_params,
|
|
282
|
+
:form_params => form_params,
|
|
283
|
+
:body => post_body,
|
|
284
|
+
:auth_names => auth_names,
|
|
285
|
+
:return_type => return_type
|
|
286
|
+
)
|
|
287
|
+
|
|
288
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
289
|
+
if @api_client.config.debugging
|
|
290
|
+
@api_client.config.logger.debug "API called: CommunityApi#community_controller_report_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
291
|
+
end
|
|
292
|
+
return data, status_code, headers
|
|
293
|
+
end
|
|
294
|
+
|
|
295
|
+
# @param id [String]
|
|
296
|
+
# @param [Hash] opts the optional parameters
|
|
297
|
+
# @return [nil]
|
|
298
|
+
def community_controller_share_post(id, opts = {})
|
|
299
|
+
community_controller_share_post_with_http_info(id, opts)
|
|
300
|
+
nil
|
|
301
|
+
end
|
|
302
|
+
|
|
303
|
+
# @param id [String]
|
|
304
|
+
# @param [Hash] opts the optional parameters
|
|
305
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
306
|
+
def community_controller_share_post_with_http_info(id, opts = {})
|
|
307
|
+
if @api_client.config.debugging
|
|
308
|
+
@api_client.config.logger.debug 'Calling API: CommunityApi.community_controller_share_post ...'
|
|
309
|
+
end
|
|
310
|
+
# verify the required parameter 'id' is set
|
|
311
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
312
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CommunityApi.community_controller_share_post"
|
|
313
|
+
end
|
|
314
|
+
# resource path
|
|
315
|
+
local_var_path = '/v1/community/posts/{id}/share'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
316
|
+
|
|
317
|
+
# query parameters
|
|
318
|
+
query_params = opts[:query_params] || {}
|
|
319
|
+
|
|
320
|
+
# header parameters
|
|
321
|
+
header_params = opts[:header_params] || {}
|
|
322
|
+
|
|
323
|
+
# form parameters
|
|
324
|
+
form_params = opts[:form_params] || {}
|
|
325
|
+
|
|
326
|
+
# http body (model)
|
|
327
|
+
post_body = opts[:debug_body]
|
|
328
|
+
|
|
329
|
+
# return_type
|
|
330
|
+
return_type = opts[:debug_return_type]
|
|
331
|
+
|
|
332
|
+
# auth_names
|
|
333
|
+
auth_names = opts[:debug_auth_names] || []
|
|
334
|
+
|
|
335
|
+
new_options = opts.merge(
|
|
336
|
+
:operation => :"CommunityApi.community_controller_share_post",
|
|
337
|
+
:header_params => header_params,
|
|
338
|
+
:query_params => query_params,
|
|
339
|
+
:form_params => form_params,
|
|
340
|
+
:body => post_body,
|
|
341
|
+
:auth_names => auth_names,
|
|
342
|
+
:return_type => return_type
|
|
343
|
+
)
|
|
344
|
+
|
|
345
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
346
|
+
if @api_client.config.debugging
|
|
347
|
+
@api_client.config.logger.debug "API called: CommunityApi#community_controller_share_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
348
|
+
end
|
|
349
|
+
return data, status_code, headers
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
# @param id [String]
|
|
353
|
+
# @param [Hash] opts the optional parameters
|
|
354
|
+
# @return [nil]
|
|
355
|
+
def community_controller_unlike_post(id, opts = {})
|
|
356
|
+
community_controller_unlike_post_with_http_info(id, opts)
|
|
357
|
+
nil
|
|
358
|
+
end
|
|
359
|
+
|
|
360
|
+
# @param id [String]
|
|
361
|
+
# @param [Hash] opts the optional parameters
|
|
362
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
363
|
+
def community_controller_unlike_post_with_http_info(id, opts = {})
|
|
364
|
+
if @api_client.config.debugging
|
|
365
|
+
@api_client.config.logger.debug 'Calling API: CommunityApi.community_controller_unlike_post ...'
|
|
366
|
+
end
|
|
367
|
+
# verify the required parameter 'id' is set
|
|
368
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
369
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CommunityApi.community_controller_unlike_post"
|
|
370
|
+
end
|
|
371
|
+
# resource path
|
|
372
|
+
local_var_path = '/v1/community/posts/{id}/unlike'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
373
|
+
|
|
374
|
+
# query parameters
|
|
375
|
+
query_params = opts[:query_params] || {}
|
|
376
|
+
|
|
377
|
+
# header parameters
|
|
378
|
+
header_params = opts[:header_params] || {}
|
|
379
|
+
|
|
380
|
+
# form parameters
|
|
381
|
+
form_params = opts[:form_params] || {}
|
|
382
|
+
|
|
383
|
+
# http body (model)
|
|
384
|
+
post_body = opts[:debug_body]
|
|
385
|
+
|
|
386
|
+
# return_type
|
|
387
|
+
return_type = opts[:debug_return_type]
|
|
388
|
+
|
|
389
|
+
# auth_names
|
|
390
|
+
auth_names = opts[:debug_auth_names] || []
|
|
391
|
+
|
|
392
|
+
new_options = opts.merge(
|
|
393
|
+
:operation => :"CommunityApi.community_controller_unlike_post",
|
|
394
|
+
:header_params => header_params,
|
|
395
|
+
:query_params => query_params,
|
|
396
|
+
:form_params => form_params,
|
|
397
|
+
:body => post_body,
|
|
398
|
+
:auth_names => auth_names,
|
|
399
|
+
:return_type => return_type
|
|
400
|
+
)
|
|
401
|
+
|
|
402
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
403
|
+
if @api_client.config.debugging
|
|
404
|
+
@api_client.config.logger.debug "API called: CommunityApi#community_controller_unlike_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
405
|
+
end
|
|
406
|
+
return data, status_code, headers
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
# @param id [String]
|
|
410
|
+
# @param [Hash] opts the optional parameters
|
|
411
|
+
# @return [nil]
|
|
412
|
+
def community_controller_update_post(id, opts = {})
|
|
413
|
+
community_controller_update_post_with_http_info(id, opts)
|
|
414
|
+
nil
|
|
415
|
+
end
|
|
416
|
+
|
|
417
|
+
# @param id [String]
|
|
418
|
+
# @param [Hash] opts the optional parameters
|
|
419
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
420
|
+
def community_controller_update_post_with_http_info(id, opts = {})
|
|
421
|
+
if @api_client.config.debugging
|
|
422
|
+
@api_client.config.logger.debug 'Calling API: CommunityApi.community_controller_update_post ...'
|
|
423
|
+
end
|
|
424
|
+
# verify the required parameter 'id' is set
|
|
425
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
426
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling CommunityApi.community_controller_update_post"
|
|
427
|
+
end
|
|
428
|
+
# resource path
|
|
429
|
+
local_var_path = '/v1/community/posts/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
430
|
+
|
|
431
|
+
# query parameters
|
|
432
|
+
query_params = opts[:query_params] || {}
|
|
433
|
+
|
|
434
|
+
# header parameters
|
|
435
|
+
header_params = opts[:header_params] || {}
|
|
436
|
+
|
|
437
|
+
# form parameters
|
|
438
|
+
form_params = opts[:form_params] || {}
|
|
439
|
+
|
|
440
|
+
# http body (model)
|
|
441
|
+
post_body = opts[:debug_body]
|
|
442
|
+
|
|
443
|
+
# return_type
|
|
444
|
+
return_type = opts[:debug_return_type]
|
|
445
|
+
|
|
446
|
+
# auth_names
|
|
447
|
+
auth_names = opts[:debug_auth_names] || []
|
|
448
|
+
|
|
449
|
+
new_options = opts.merge(
|
|
450
|
+
:operation => :"CommunityApi.community_controller_update_post",
|
|
451
|
+
:header_params => header_params,
|
|
452
|
+
:query_params => query_params,
|
|
453
|
+
:form_params => form_params,
|
|
454
|
+
:body => post_body,
|
|
455
|
+
:auth_names => auth_names,
|
|
456
|
+
:return_type => return_type
|
|
457
|
+
)
|
|
458
|
+
|
|
459
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
460
|
+
if @api_client.config.debugging
|
|
461
|
+
@api_client.config.logger.debug "API called: CommunityApi#community_controller_update_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
462
|
+
end
|
|
463
|
+
return data, status_code, headers
|
|
464
|
+
end
|
|
465
|
+
end
|
|
466
|
+
end
|