notifo-io-easierlife 1.0.0 → 1.0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +599 -97
- data/Rakefile +0 -2
- data/docs/AddAllowedTopicDto.md +4 -15
- data/docs/AddContributorDto.md +5 -17
- data/docs/AppContributorDto.md +6 -19
- data/docs/AppDetailsDto.md +19 -45
- data/docs/AppDto.md +9 -25
- data/docs/AppsApi.md +181 -363
- data/docs/Body.md +7 -0
- data/docs/ConfigsApi.md +28 -68
- data/docs/ConfirmMode.md +3 -12
- data/docs/CreateEmailTemplateDto.md +4 -15
- data/docs/EmailTemplateDto.md +6 -19
- data/docs/EmailTemplatesDto.md +6 -0
- data/docs/EmailVerificationStatus.md +3 -12
- data/docs/ErrorDto.md +8 -23
- data/docs/EventDto.md +15 -37
- data/docs/EventProperties.md +6 -0
- data/docs/EventsApi.md +43 -80
- data/docs/IsoDayOfWeek.md +3 -12
- data/docs/ListResponseDtoOfEventDto.md +5 -17
- data/docs/ListResponseDtoOfLogEntryDto.md +5 -17
- data/docs/ListResponseDtoOfMediaDto.md +5 -17
- data/docs/ListResponseDtoOfSubscriptionDto.md +5 -17
- data/docs/ListResponseDtoOfTemplateDto.md +5 -17
- data/docs/ListResponseDtoOfTopicDto.md +5 -17
- data/docs/ListResponseDtoOfUserDto.md +5 -17
- data/docs/LocalizedText.md +6 -0
- data/docs/LogEntryDto.md +7 -21
- data/docs/LogsApi.md +25 -44
- data/docs/MediaApi.md +118 -212
- data/docs/MediaDto.md +10 -27
- data/docs/MediaMetadata.md +6 -0
- data/docs/MediaType.md +3 -12
- data/docs/NotificationFormattingDto.md +11 -29
- data/docs/NotificationSend.md +3 -12
- data/docs/NotificationSettingDto.md +5 -17
- data/docs/ProfileDto.md +11 -29
- data/docs/PublishDto.md +13 -33
- data/docs/PublishManyDto.md +4 -15
- data/docs/ResizeMode.md +3 -12
- data/docs/SchedulingDto.md +7 -21
- data/docs/SchedulingType.md +3 -12
- data/docs/SubscriptionDto.md +5 -17
- data/docs/TemplateDto.md +6 -19
- data/docs/TemplatesApi.md +61 -116
- data/docs/TopicDto.md +6 -19
- data/docs/TopicsApi.md +25 -44
- data/docs/UpdateProfileDto.md +9 -25
- data/docs/UpsertAppDto.md +13 -33
- data/docs/UpsertTemplateDto.md +6 -19
- data/docs/UpsertTemplatesDto.md +4 -15
- data/docs/UpsertUserDto.md +11 -29
- data/docs/UpsertUsersDto.md +4 -15
- data/docs/UserApi.md +84 -176
- data/docs/UserDto.md +13 -33
- data/docs/UsersApi.md +173 -337
- data/git_push.sh +7 -10
- data/lib/swagger_client.rb +93 -0
- data/lib/{notifo → swagger_client}/api/apps_api.rb +131 -203
- data/lib/{notifo → swagger_client}/api/configs_api.rb +15 -31
- data/lib/{notifo → swagger_client}/api/events_api.rb +30 -46
- data/lib/{notifo → swagger_client}/api/logs_api.rb +13 -22
- data/lib/{notifo → swagger_client}/api/media_api.rb +61 -98
- data/lib/{notifo → swagger_client}/api/templates_api.rb +40 -63
- data/lib/{notifo → swagger_client}/api/topics_api.rb +13 -22
- data/lib/{notifo → swagger_client}/api/user_api.rb +52 -89
- data/lib/{notifo → swagger_client}/api/users_api.rb +122 -187
- data/lib/{notifo → swagger_client}/api_client.rb +55 -57
- data/lib/{notifo → swagger_client}/api_error.rb +6 -6
- data/lib/{notifo → swagger_client}/configuration.rb +12 -84
- data/lib/{notifo → swagger_client}/models/add_allowed_topic_dto.rb +16 -47
- data/lib/swagger_client/models/add_contributor_dto.rb +227 -0
- data/lib/swagger_client/models/app_contributor_dto.rb +242 -0
- data/lib/{notifo → swagger_client}/models/app_details_dto.rb +31 -106
- data/lib/{notifo → swagger_client}/models/app_dto.rb +21 -90
- data/lib/swagger_client/models/body.rb +206 -0
- data/lib/swagger_client/models/confirm_mode.rb +29 -0
- data/lib/{notifo → swagger_client}/models/create_email_template_dto.rb +16 -47
- data/lib/swagger_client/models/email_template_dto.rb +237 -0
- data/lib/swagger_client/models/email_templates_dto.rb +201 -0
- data/lib/swagger_client/models/email_verification_status.rb +30 -0
- data/lib/{notifo → swagger_client}/models/error_dto.rb +20 -36
- data/lib/{notifo → swagger_client}/models/event_dto.rb +27 -117
- data/lib/swagger_client/models/event_properties.rb +201 -0
- data/lib/swagger_client/models/iso_day_of_week.rb +34 -0
- data/lib/{notifo/models/list_response_dto_of_subscription_dto.rb → swagger_client/models/list_response_dto_of_event_dto.rb} +18 -30
- data/lib/{notifo → swagger_client}/models/list_response_dto_of_log_entry_dto.rb +17 -29
- data/lib/{notifo → swagger_client}/models/list_response_dto_of_media_dto.rb +17 -29
- data/lib/{notifo/models/list_response_dto_of_event_dto.rb → swagger_client/models/list_response_dto_of_subscription_dto.rb} +18 -30
- data/lib/{notifo → swagger_client}/models/list_response_dto_of_template_dto.rb +17 -29
- data/lib/{notifo → swagger_client}/models/list_response_dto_of_topic_dto.rb +17 -29
- data/lib/{notifo → swagger_client}/models/list_response_dto_of_user_dto.rb +17 -29
- data/lib/swagger_client/models/localized_text.rb +201 -0
- data/lib/{notifo → swagger_client}/models/log_entry_dto.rb +19 -88
- data/lib/{notifo → swagger_client}/models/media_dto.rb +23 -113
- data/lib/swagger_client/models/media_metadata.rb +201 -0
- data/lib/swagger_client/models/media_type.rb +30 -0
- data/lib/{notifo → swagger_client}/models/notification_formatting_dto.rb +30 -56
- data/lib/swagger_client/models/notification_send.rb +30 -0
- data/lib/{notifo → swagger_client}/models/notification_setting_dto.rb +26 -39
- data/lib/{notifo → swagger_client}/models/profile_dto.rb +23 -76
- data/lib/{notifo → swagger_client}/models/publish_dto.rb +26 -63
- data/lib/{notifo → swagger_client}/models/publish_many_dto.rb +16 -28
- data/lib/swagger_client/models/resize_mode.rb +33 -0
- data/lib/{notifo → swagger_client}/models/scheduling_dto.rb +19 -32
- data/lib/swagger_client/models/scheduling_type.rb +28 -0
- data/lib/{notifo → swagger_client}/models/subscription_dto.rb +17 -49
- data/lib/{notifo → swagger_client}/models/template_dto.rb +18 -49
- data/lib/{notifo → swagger_client}/models/topic_dto.rb +18 -68
- data/lib/{notifo → swagger_client}/models/update_profile_dto.rb +21 -39
- data/lib/{notifo → swagger_client}/models/upsert_app_dto.rb +25 -47
- data/lib/{notifo → swagger_client}/models/upsert_template_dto.rb +18 -50
- data/lib/{notifo → swagger_client}/models/upsert_templates_dto.rb +16 -28
- data/lib/{notifo → swagger_client}/models/upsert_user_dto.rb +23 -43
- data/lib/{notifo → swagger_client}/models/upsert_users_dto.rb +16 -28
- data/lib/{notifo → swagger_client}/models/user_dto.rb +25 -80
- data/lib/swagger_client/version.rb +14 -0
- data/spec/api/apps_api_spec.rb +14 -15
- data/spec/api/configs_api_spec.rb +8 -9
- data/spec/api/events_api_spec.rb +9 -10
- data/spec/api/logs_api_spec.rb +8 -9
- data/spec/api/media_api_spec.rb +13 -14
- data/spec/api/templates_api_spec.rb +9 -10
- data/spec/api/topics_api_spec.rb +8 -9
- data/spec/api/user_api_spec.rb +10 -11
- data/spec/api/users_api_spec.rb +11 -12
- data/spec/api_client_spec.rb +34 -35
- data/spec/base_object_spec.rb +109 -0
- data/spec/configuration_spec.rb +7 -8
- data/spec/models/add_allowed_topic_dto_spec.rb +16 -10
- data/spec/models/add_contributor_dto_spec.rb +16 -10
- data/spec/models/app_contributor_dto_spec.rb +16 -10
- data/spec/models/app_details_dto_spec.rb +16 -10
- data/spec/models/app_dto_spec.rb +16 -10
- data/spec/models/body_spec.rb +40 -0
- data/spec/models/confirm_mode_spec.rb +16 -10
- data/spec/models/create_email_template_dto_spec.rb +16 -10
- data/spec/models/email_template_dto_spec.rb +16 -10
- data/spec/models/email_templates_dto_spec.rb +34 -0
- data/spec/models/email_verification_status_spec.rb +16 -10
- data/spec/models/error_dto_spec.rb +16 -10
- data/spec/models/event_dto_spec.rb +16 -10
- data/spec/models/event_properties_spec.rb +34 -0
- data/spec/models/iso_day_of_week_spec.rb +16 -10
- data/spec/models/list_response_dto_of_event_dto_spec.rb +16 -10
- data/spec/models/list_response_dto_of_log_entry_dto_spec.rb +16 -10
- data/spec/models/list_response_dto_of_media_dto_spec.rb +16 -10
- data/spec/models/list_response_dto_of_subscription_dto_spec.rb +16 -10
- data/spec/models/list_response_dto_of_template_dto_spec.rb +16 -10
- data/spec/models/list_response_dto_of_topic_dto_spec.rb +16 -10
- data/spec/models/list_response_dto_of_user_dto_spec.rb +16 -10
- data/spec/models/localized_text_spec.rb +34 -0
- data/spec/models/log_entry_dto_spec.rb +16 -10
- data/spec/models/media_dto_spec.rb +16 -10
- data/spec/models/media_metadata_spec.rb +34 -0
- data/spec/models/media_type_spec.rb +16 -10
- data/spec/models/notification_formatting_dto_spec.rb +16 -10
- data/spec/models/notification_send_spec.rb +16 -10
- data/spec/models/notification_setting_dto_spec.rb +17 -11
- data/spec/models/profile_dto_spec.rb +16 -10
- data/spec/models/publish_dto_spec.rb +16 -10
- data/spec/models/publish_many_dto_spec.rb +16 -10
- data/spec/models/resize_mode_spec.rb +16 -10
- data/spec/models/scheduling_dto_spec.rb +16 -10
- data/spec/models/scheduling_type_spec.rb +16 -10
- data/spec/models/subscription_dto_spec.rb +16 -10
- data/spec/models/template_dto_spec.rb +16 -10
- data/spec/models/topic_dto_spec.rb +16 -10
- data/spec/models/update_profile_dto_spec.rb +16 -10
- data/spec/models/upsert_app_dto_spec.rb +16 -10
- data/spec/models/upsert_template_dto_spec.rb +16 -10
- data/spec/models/upsert_templates_dto_spec.rb +16 -10
- data/spec/models/upsert_user_dto_spec.rb +16 -10
- data/spec/models/upsert_users_dto_spec.rb +16 -10
- data/spec/models/user_dto_spec.rb +16 -10
- data/spec/spec_helper.rb +5 -6
- data/{notifo.gemspec → swagger_client.gemspec} +9 -9
- metadata +101 -60
- data/lib/notifo.rb +0 -89
- data/lib/notifo/models/add_contributor_dto.rb +0 -277
- data/lib/notifo/models/app_contributor_dto.rb +0 -311
- data/lib/notifo/models/confirm_mode.rb +0 -38
- data/lib/notifo/models/email_template_dto.rb +0 -288
- data/lib/notifo/models/email_verification_status.rb +0 -39
- data/lib/notifo/models/iso_day_of_week.rb +0 -43
- data/lib/notifo/models/media_type.rb +0 -39
- data/lib/notifo/models/notification_send.rb +0 -39
- data/lib/notifo/models/resize_mode.rb +0 -42
- data/lib/notifo/models/scheduling_type.rb +0 -37
- data/lib/notifo/version.rb +0 -15
- data/notifo-io-1.0.0.gem +0 -0
@@ -1,18 +1,15 @@
|
|
1
1
|
=begin
|
2
2
|
#Notifo API
|
3
3
|
|
4
|
-
#No description provided (generated by
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.1.0-SNAPSHOT
|
6
|
+
OpenAPI spec version: 1.0.0
|
10
7
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 3.0.24
|
11
10
|
=end
|
12
11
|
|
13
|
-
|
14
|
-
|
15
|
-
module Notifo
|
12
|
+
module SwaggerClient
|
16
13
|
class UsersApi
|
17
14
|
attr_accessor :api_client
|
18
15
|
|
@@ -20,9 +17,9 @@ module Notifo
|
|
20
17
|
@api_client = api_client
|
21
18
|
end
|
22
19
|
# Remove an allowed topic.
|
23
|
-
# @param app_id
|
24
|
-
# @param id
|
25
|
-
# @param prefix
|
20
|
+
# @param app_id The app where the users belong to.
|
21
|
+
# @param id The user id.
|
22
|
+
# @param prefix The topic prefix.
|
26
23
|
# @param [Hash] opts the optional parameters
|
27
24
|
# @return [nil]
|
28
25
|
def users_delete_allowed_topic(app_id, id, prefix, opts = {})
|
@@ -31,9 +28,9 @@ module Notifo
|
|
31
28
|
end
|
32
29
|
|
33
30
|
# Remove an allowed topic.
|
34
|
-
# @param app_id
|
35
|
-
# @param id
|
36
|
-
# @param prefix
|
31
|
+
# @param app_id The app where the users belong to.
|
32
|
+
# @param id The user id.
|
33
|
+
# @param prefix The topic prefix.
|
37
34
|
# @param [Hash] opts the optional parameters
|
38
35
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
39
36
|
def users_delete_allowed_topic_with_http_info(app_id, id, prefix, opts = {})
|
@@ -53,7 +50,7 @@ module Notifo
|
|
53
50
|
fail ArgumentError, "Missing the required parameter 'prefix' when calling UsersApi.users_delete_allowed_topic"
|
54
51
|
end
|
55
52
|
# resource path
|
56
|
-
local_var_path = '/api/apps/{appId}/users/{id}/allowed-topics/{prefix}'.sub('{' + 'appId' + '}',
|
53
|
+
local_var_path = '/api/apps/{appId}/users/{id}/allowed-topics/{prefix}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'id' + '}', id.to_s).sub('{' + 'prefix' + '}', prefix.to_s)
|
57
54
|
|
58
55
|
# query parameters
|
59
56
|
query_params = opts[:query_params] || {}
|
@@ -67,35 +64,28 @@ module Notifo
|
|
67
64
|
form_params = opts[:form_params] || {}
|
68
65
|
|
69
66
|
# http body (model)
|
70
|
-
post_body = opts[:
|
67
|
+
post_body = opts[:body]
|
71
68
|
|
72
|
-
|
73
|
-
return_type = opts[:debug_return_type]
|
69
|
+
return_type = opts[:return_type]
|
74
70
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
new_options = opts.merge(
|
79
|
-
:operation => :"UsersApi.users_delete_allowed_topic",
|
71
|
+
auth_names = opts[:auth_names] || []
|
72
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
80
73
|
:header_params => header_params,
|
81
74
|
:query_params => query_params,
|
82
75
|
:form_params => form_params,
|
83
76
|
:body => post_body,
|
84
77
|
:auth_names => auth_names,
|
85
|
-
:return_type => return_type
|
86
|
-
)
|
78
|
+
:return_type => return_type)
|
87
79
|
|
88
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
89
80
|
if @api_client.config.debugging
|
90
81
|
@api_client.config.logger.debug "API called: UsersApi#users_delete_allowed_topic\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
91
82
|
end
|
92
83
|
return data, status_code, headers
|
93
84
|
end
|
94
|
-
|
95
85
|
# Remove a user subscriptions.
|
96
|
-
# @param app_id
|
97
|
-
# @param id
|
98
|
-
# @param prefix
|
86
|
+
# @param app_id The app where the user belongs to.
|
87
|
+
# @param id The user id.
|
88
|
+
# @param prefix The topic prefix.
|
99
89
|
# @param [Hash] opts the optional parameters
|
100
90
|
# @return [nil]
|
101
91
|
def users_delete_subscription(app_id, id, prefix, opts = {})
|
@@ -104,9 +94,9 @@ module Notifo
|
|
104
94
|
end
|
105
95
|
|
106
96
|
# Remove a user subscriptions.
|
107
|
-
# @param app_id
|
108
|
-
# @param id
|
109
|
-
# @param prefix
|
97
|
+
# @param app_id The app where the user belongs to.
|
98
|
+
# @param id The user id.
|
99
|
+
# @param prefix The topic prefix.
|
110
100
|
# @param [Hash] opts the optional parameters
|
111
101
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
112
102
|
def users_delete_subscription_with_http_info(app_id, id, prefix, opts = {})
|
@@ -126,7 +116,7 @@ module Notifo
|
|
126
116
|
fail ArgumentError, "Missing the required parameter 'prefix' when calling UsersApi.users_delete_subscription"
|
127
117
|
end
|
128
118
|
# resource path
|
129
|
-
local_var_path = '/api/apps/{appId}/users/{id}/subscriptions/{prefix}'.sub('{' + 'appId' + '}',
|
119
|
+
local_var_path = '/api/apps/{appId}/users/{id}/subscriptions/{prefix}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'id' + '}', id.to_s).sub('{' + 'prefix' + '}', prefix.to_s)
|
130
120
|
|
131
121
|
# query parameters
|
132
122
|
query_params = opts[:query_params] || {}
|
@@ -140,34 +130,27 @@ module Notifo
|
|
140
130
|
form_params = opts[:form_params] || {}
|
141
131
|
|
142
132
|
# http body (model)
|
143
|
-
post_body = opts[:
|
133
|
+
post_body = opts[:body]
|
144
134
|
|
145
|
-
|
146
|
-
return_type = opts[:debug_return_type]
|
135
|
+
return_type = opts[:return_type]
|
147
136
|
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
new_options = opts.merge(
|
152
|
-
:operation => :"UsersApi.users_delete_subscription",
|
137
|
+
auth_names = opts[:auth_names] || []
|
138
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
153
139
|
:header_params => header_params,
|
154
140
|
:query_params => query_params,
|
155
141
|
:form_params => form_params,
|
156
142
|
:body => post_body,
|
157
143
|
:auth_names => auth_names,
|
158
|
-
:return_type => return_type
|
159
|
-
)
|
144
|
+
:return_type => return_type)
|
160
145
|
|
161
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
162
146
|
if @api_client.config.debugging
|
163
147
|
@api_client.config.logger.debug "API called: UsersApi#users_delete_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
164
148
|
end
|
165
149
|
return data, status_code, headers
|
166
150
|
end
|
167
|
-
|
168
151
|
# Delete a user.
|
169
|
-
# @param app_id
|
170
|
-
# @param id
|
152
|
+
# @param app_id The app where the users belongs to.
|
153
|
+
# @param id The user id to delete.
|
171
154
|
# @param [Hash] opts the optional parameters
|
172
155
|
# @return [ListResponseDtoOfUserDto]
|
173
156
|
def users_delete_user(app_id, id, opts = {})
|
@@ -176,8 +159,8 @@ module Notifo
|
|
176
159
|
end
|
177
160
|
|
178
161
|
# Delete a user.
|
179
|
-
# @param app_id
|
180
|
-
# @param id
|
162
|
+
# @param app_id The app where the users belongs to.
|
163
|
+
# @param id The user id to delete.
|
181
164
|
# @param [Hash] opts the optional parameters
|
182
165
|
# @return [Array<(ListResponseDtoOfUserDto, Integer, Hash)>] ListResponseDtoOfUserDto data, response status code and response headers
|
183
166
|
def users_delete_user_with_http_info(app_id, id, opts = {})
|
@@ -193,7 +176,7 @@ module Notifo
|
|
193
176
|
fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.users_delete_user"
|
194
177
|
end
|
195
178
|
# resource path
|
196
|
-
local_var_path = '/api/apps/{appId}/users/{id}'.sub('{' + 'appId' + '}',
|
179
|
+
local_var_path = '/api/apps/{appId}/users/{id}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'id' + '}', id.to_s)
|
197
180
|
|
198
181
|
# query parameters
|
199
182
|
query_params = opts[:query_params] || {}
|
@@ -207,34 +190,27 @@ module Notifo
|
|
207
190
|
form_params = opts[:form_params] || {}
|
208
191
|
|
209
192
|
# http body (model)
|
210
|
-
post_body = opts[:
|
211
|
-
|
212
|
-
# return_type
|
213
|
-
return_type = opts[:debug_return_type] || 'ListResponseDtoOfUserDto'
|
193
|
+
post_body = opts[:body]
|
214
194
|
|
215
|
-
|
216
|
-
auth_names = opts[:debug_auth_names] || []
|
195
|
+
return_type = opts[:return_type] || 'ListResponseDtoOfUserDto'
|
217
196
|
|
218
|
-
|
219
|
-
|
197
|
+
auth_names = opts[:auth_names] || []
|
198
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
220
199
|
:header_params => header_params,
|
221
200
|
:query_params => query_params,
|
222
201
|
:form_params => form_params,
|
223
202
|
:body => post_body,
|
224
203
|
:auth_names => auth_names,
|
225
|
-
:return_type => return_type
|
226
|
-
)
|
204
|
+
:return_type => return_type)
|
227
205
|
|
228
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
229
206
|
if @api_client.config.debugging
|
230
207
|
@api_client.config.logger.debug "API called: UsersApi#users_delete_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
231
208
|
end
|
232
209
|
return data, status_code, headers
|
233
210
|
end
|
234
|
-
|
235
211
|
# Query user subscriptions.
|
236
|
-
# @param app_id
|
237
|
-
# @param id
|
212
|
+
# @param app_id The app where the user belongs to.
|
213
|
+
# @param id The user id.
|
238
214
|
# @param [Hash] opts the optional parameters
|
239
215
|
# @option opts [String] :query The optional query to search for items.
|
240
216
|
# @option opts [Integer] :take The number of items to return.
|
@@ -246,8 +222,8 @@ module Notifo
|
|
246
222
|
end
|
247
223
|
|
248
224
|
# Query user subscriptions.
|
249
|
-
# @param app_id
|
250
|
-
# @param id
|
225
|
+
# @param app_id The app where the user belongs to.
|
226
|
+
# @param id The user id.
|
251
227
|
# @param [Hash] opts the optional parameters
|
252
228
|
# @option opts [String] :query The optional query to search for items.
|
253
229
|
# @option opts [Integer] :take The number of items to return.
|
@@ -266,7 +242,7 @@ module Notifo
|
|
266
242
|
fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.users_get_subscriptions"
|
267
243
|
end
|
268
244
|
# resource path
|
269
|
-
local_var_path = '/api/apps/{appId}/users/{id}/subscriptions'.sub('{' + 'appId' + '}',
|
245
|
+
local_var_path = '/api/apps/{appId}/users/{id}/subscriptions'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'id' + '}', id.to_s)
|
270
246
|
|
271
247
|
# query parameters
|
272
248
|
query_params = opts[:query_params] || {}
|
@@ -283,34 +259,27 @@ module Notifo
|
|
283
259
|
form_params = opts[:form_params] || {}
|
284
260
|
|
285
261
|
# http body (model)
|
286
|
-
post_body = opts[:
|
287
|
-
|
288
|
-
# return_type
|
289
|
-
return_type = opts[:debug_return_type] || 'ListResponseDtoOfSubscriptionDto'
|
262
|
+
post_body = opts[:body]
|
290
263
|
|
291
|
-
|
292
|
-
auth_names = opts[:debug_auth_names] || []
|
264
|
+
return_type = opts[:return_type] || 'ListResponseDtoOfSubscriptionDto'
|
293
265
|
|
294
|
-
|
295
|
-
|
266
|
+
auth_names = opts[:auth_names] || []
|
267
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
296
268
|
:header_params => header_params,
|
297
269
|
:query_params => query_params,
|
298
270
|
:form_params => form_params,
|
299
271
|
:body => post_body,
|
300
272
|
:auth_names => auth_names,
|
301
|
-
:return_type => return_type
|
302
|
-
)
|
273
|
+
:return_type => return_type)
|
303
274
|
|
304
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
305
275
|
if @api_client.config.debugging
|
306
276
|
@api_client.config.logger.debug "API called: UsersApi#users_get_subscriptions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
307
277
|
end
|
308
278
|
return data, status_code, headers
|
309
279
|
end
|
310
|
-
|
311
280
|
# Get a user.
|
312
|
-
# @param app_id
|
313
|
-
# @param id
|
281
|
+
# @param app_id The app where the user belongs to.
|
282
|
+
# @param id The user id.
|
314
283
|
# @param [Hash] opts the optional parameters
|
315
284
|
# @return [ListResponseDtoOfUserDto]
|
316
285
|
def users_get_user(app_id, id, opts = {})
|
@@ -319,8 +288,8 @@ module Notifo
|
|
319
288
|
end
|
320
289
|
|
321
290
|
# Get a user.
|
322
|
-
# @param app_id
|
323
|
-
# @param id
|
291
|
+
# @param app_id The app where the user belongs to.
|
292
|
+
# @param id The user id.
|
324
293
|
# @param [Hash] opts the optional parameters
|
325
294
|
# @return [Array<(ListResponseDtoOfUserDto, Integer, Hash)>] ListResponseDtoOfUserDto data, response status code and response headers
|
326
295
|
def users_get_user_with_http_info(app_id, id, opts = {})
|
@@ -336,7 +305,7 @@ module Notifo
|
|
336
305
|
fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.users_get_user"
|
337
306
|
end
|
338
307
|
# resource path
|
339
|
-
local_var_path = '/api/apps/{appId}/users/{id}'.sub('{' + 'appId' + '}',
|
308
|
+
local_var_path = '/api/apps/{appId}/users/{id}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'id' + '}', id.to_s)
|
340
309
|
|
341
310
|
# query parameters
|
342
311
|
query_params = opts[:query_params] || {}
|
@@ -350,33 +319,26 @@ module Notifo
|
|
350
319
|
form_params = opts[:form_params] || {}
|
351
320
|
|
352
321
|
# http body (model)
|
353
|
-
post_body = opts[:
|
322
|
+
post_body = opts[:body]
|
354
323
|
|
355
|
-
|
356
|
-
return_type = opts[:debug_return_type] || 'ListResponseDtoOfUserDto'
|
324
|
+
return_type = opts[:return_type] || 'ListResponseDtoOfUserDto'
|
357
325
|
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
new_options = opts.merge(
|
362
|
-
:operation => :"UsersApi.users_get_user",
|
326
|
+
auth_names = opts[:auth_names] || []
|
327
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
363
328
|
:header_params => header_params,
|
364
329
|
:query_params => query_params,
|
365
330
|
:form_params => form_params,
|
366
331
|
:body => post_body,
|
367
332
|
:auth_names => auth_names,
|
368
|
-
:return_type => return_type
|
369
|
-
)
|
333
|
+
:return_type => return_type)
|
370
334
|
|
371
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
372
335
|
if @api_client.config.debugging
|
373
336
|
@api_client.config.logger.debug "API called: UsersApi#users_get_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
374
337
|
end
|
375
338
|
return data, status_code, headers
|
376
339
|
end
|
377
|
-
|
378
340
|
# Query users.
|
379
|
-
# @param app_id
|
341
|
+
# @param app_id The app where the users belongs to.
|
380
342
|
# @param [Hash] opts the optional parameters
|
381
343
|
# @option opts [String] :query The optional query to search for items.
|
382
344
|
# @option opts [Integer] :take The number of items to return.
|
@@ -388,7 +350,7 @@ module Notifo
|
|
388
350
|
end
|
389
351
|
|
390
352
|
# Query users.
|
391
|
-
# @param app_id
|
353
|
+
# @param app_id The app where the users belongs to.
|
392
354
|
# @param [Hash] opts the optional parameters
|
393
355
|
# @option opts [String] :query The optional query to search for items.
|
394
356
|
# @option opts [Integer] :take The number of items to return.
|
@@ -403,7 +365,7 @@ module Notifo
|
|
403
365
|
fail ArgumentError, "Missing the required parameter 'app_id' when calling UsersApi.users_get_users"
|
404
366
|
end
|
405
367
|
# resource path
|
406
|
-
local_var_path = '/api/apps/{appId}/users'.sub('{' + 'appId' + '}',
|
368
|
+
local_var_path = '/api/apps/{appId}/users'.sub('{' + 'appId' + '}', app_id.to_s)
|
407
369
|
|
408
370
|
# query parameters
|
409
371
|
query_params = opts[:query_params] || {}
|
@@ -420,52 +382,49 @@ module Notifo
|
|
420
382
|
form_params = opts[:form_params] || {}
|
421
383
|
|
422
384
|
# http body (model)
|
423
|
-
post_body = opts[:
|
424
|
-
|
425
|
-
# return_type
|
426
|
-
return_type = opts[:debug_return_type] || 'ListResponseDtoOfUserDto'
|
385
|
+
post_body = opts[:body]
|
427
386
|
|
428
|
-
|
429
|
-
auth_names = opts[:debug_auth_names] || []
|
387
|
+
return_type = opts[:return_type] || 'ListResponseDtoOfUserDto'
|
430
388
|
|
431
|
-
|
432
|
-
|
389
|
+
auth_names = opts[:auth_names] || []
|
390
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
433
391
|
:header_params => header_params,
|
434
392
|
:query_params => query_params,
|
435
393
|
:form_params => form_params,
|
436
394
|
:body => post_body,
|
437
395
|
:auth_names => auth_names,
|
438
|
-
:return_type => return_type
|
439
|
-
)
|
396
|
+
:return_type => return_type)
|
440
397
|
|
441
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
442
398
|
if @api_client.config.debugging
|
443
399
|
@api_client.config.logger.debug "API called: UsersApi#users_get_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
444
400
|
end
|
445
401
|
return data, status_code, headers
|
446
402
|
end
|
447
|
-
|
448
403
|
# Add an allowed topic.
|
449
|
-
# @param
|
450
|
-
# @param
|
451
|
-
# @param
|
404
|
+
# @param body The upsert request.
|
405
|
+
# @param app_id The app where the users belong to.
|
406
|
+
# @param id The user id.
|
452
407
|
# @param [Hash] opts the optional parameters
|
453
408
|
# @return [nil]
|
454
|
-
def users_post_allowed_topic(app_id, id,
|
455
|
-
users_post_allowed_topic_with_http_info(app_id, id,
|
409
|
+
def users_post_allowed_topic(body, app_id, id, opts = {})
|
410
|
+
users_post_allowed_topic_with_http_info(body, app_id, id, opts)
|
456
411
|
nil
|
457
412
|
end
|
458
413
|
|
459
414
|
# Add an allowed topic.
|
460
|
-
# @param
|
461
|
-
# @param
|
462
|
-
# @param
|
415
|
+
# @param body The upsert request.
|
416
|
+
# @param app_id The app where the users belong to.
|
417
|
+
# @param id The user id.
|
463
418
|
# @param [Hash] opts the optional parameters
|
464
419
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
465
|
-
def users_post_allowed_topic_with_http_info(app_id, id,
|
420
|
+
def users_post_allowed_topic_with_http_info(body, app_id, id, opts = {})
|
466
421
|
if @api_client.config.debugging
|
467
422
|
@api_client.config.logger.debug 'Calling API: UsersApi.users_post_allowed_topic ...'
|
468
423
|
end
|
424
|
+
# verify the required parameter 'body' is set
|
425
|
+
if @api_client.config.client_side_validation && body.nil?
|
426
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling UsersApi.users_post_allowed_topic"
|
427
|
+
end
|
469
428
|
# verify the required parameter 'app_id' is set
|
470
429
|
if @api_client.config.client_side_validation && app_id.nil?
|
471
430
|
fail ArgumentError, "Missing the required parameter 'app_id' when calling UsersApi.users_post_allowed_topic"
|
@@ -474,12 +433,8 @@ module Notifo
|
|
474
433
|
if @api_client.config.client_side_validation && id.nil?
|
475
434
|
fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.users_post_allowed_topic"
|
476
435
|
end
|
477
|
-
# verify the required parameter 'add_allowed_topic_dto' is set
|
478
|
-
if @api_client.config.client_side_validation && add_allowed_topic_dto.nil?
|
479
|
-
fail ArgumentError, "Missing the required parameter 'add_allowed_topic_dto' when calling UsersApi.users_post_allowed_topic"
|
480
|
-
end
|
481
436
|
# resource path
|
482
|
-
local_var_path = '/api/apps/{appId}/users/{id}/allowed-topics'.sub('{' + 'appId' + '}',
|
437
|
+
local_var_path = '/api/apps/{appId}/users/{id}/allowed-topics'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'id' + '}', id.to_s)
|
483
438
|
|
484
439
|
# query parameters
|
485
440
|
query_params = opts[:query_params] || {}
|
@@ -495,52 +450,49 @@ module Notifo
|
|
495
450
|
form_params = opts[:form_params] || {}
|
496
451
|
|
497
452
|
# http body (model)
|
498
|
-
post_body = opts[:
|
453
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
499
454
|
|
500
|
-
|
501
|
-
return_type = opts[:debug_return_type]
|
455
|
+
return_type = opts[:return_type]
|
502
456
|
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
new_options = opts.merge(
|
507
|
-
:operation => :"UsersApi.users_post_allowed_topic",
|
457
|
+
auth_names = opts[:auth_names] || []
|
458
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
508
459
|
:header_params => header_params,
|
509
460
|
:query_params => query_params,
|
510
461
|
:form_params => form_params,
|
511
462
|
:body => post_body,
|
512
463
|
:auth_names => auth_names,
|
513
|
-
:return_type => return_type
|
514
|
-
)
|
464
|
+
:return_type => return_type)
|
515
465
|
|
516
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
517
466
|
if @api_client.config.debugging
|
518
467
|
@api_client.config.logger.debug "API called: UsersApi#users_post_allowed_topic\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
519
468
|
end
|
520
469
|
return data, status_code, headers
|
521
470
|
end
|
522
|
-
|
523
471
|
# Upsert a user subscriptions.
|
524
|
-
# @param
|
525
|
-
# @param
|
526
|
-
# @param
|
472
|
+
# @param body The subscription object.
|
473
|
+
# @param app_id The app where the user belongs to.
|
474
|
+
# @param id The user id.
|
527
475
|
# @param [Hash] opts the optional parameters
|
528
476
|
# @return [nil]
|
529
|
-
def users_post_subscription(app_id, id,
|
530
|
-
users_post_subscription_with_http_info(app_id, id,
|
477
|
+
def users_post_subscription(body, app_id, id, opts = {})
|
478
|
+
users_post_subscription_with_http_info(body, app_id, id, opts)
|
531
479
|
nil
|
532
480
|
end
|
533
481
|
|
534
482
|
# Upsert a user subscriptions.
|
535
|
-
# @param
|
536
|
-
# @param
|
537
|
-
# @param
|
483
|
+
# @param body The subscription object.
|
484
|
+
# @param app_id The app where the user belongs to.
|
485
|
+
# @param id The user id.
|
538
486
|
# @param [Hash] opts the optional parameters
|
539
487
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
540
|
-
def users_post_subscription_with_http_info(app_id, id,
|
488
|
+
def users_post_subscription_with_http_info(body, app_id, id, opts = {})
|
541
489
|
if @api_client.config.debugging
|
542
490
|
@api_client.config.logger.debug 'Calling API: UsersApi.users_post_subscription ...'
|
543
491
|
end
|
492
|
+
# verify the required parameter 'body' is set
|
493
|
+
if @api_client.config.client_side_validation && body.nil?
|
494
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling UsersApi.users_post_subscription"
|
495
|
+
end
|
544
496
|
# verify the required parameter 'app_id' is set
|
545
497
|
if @api_client.config.client_side_validation && app_id.nil?
|
546
498
|
fail ArgumentError, "Missing the required parameter 'app_id' when calling UsersApi.users_post_subscription"
|
@@ -549,12 +501,8 @@ module Notifo
|
|
549
501
|
if @api_client.config.client_side_validation && id.nil?
|
550
502
|
fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.users_post_subscription"
|
551
503
|
end
|
552
|
-
# verify the required parameter 'subscription_dto' is set
|
553
|
-
if @api_client.config.client_side_validation && subscription_dto.nil?
|
554
|
-
fail ArgumentError, "Missing the required parameter 'subscription_dto' when calling UsersApi.users_post_subscription"
|
555
|
-
end
|
556
504
|
# resource path
|
557
|
-
local_var_path = '/api/apps/{appId}/users/{id}/subscriptions'.sub('{' + 'appId' + '}',
|
505
|
+
local_var_path = '/api/apps/{appId}/users/{id}/subscriptions'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'id' + '}', id.to_s)
|
558
506
|
|
559
507
|
# query parameters
|
560
508
|
query_params = opts[:query_params] || {}
|
@@ -570,60 +518,53 @@ module Notifo
|
|
570
518
|
form_params = opts[:form_params] || {}
|
571
519
|
|
572
520
|
# http body (model)
|
573
|
-
post_body = opts[:
|
574
|
-
|
575
|
-
# return_type
|
576
|
-
return_type = opts[:debug_return_type]
|
521
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
577
522
|
|
578
|
-
|
579
|
-
auth_names = opts[:debug_auth_names] || []
|
523
|
+
return_type = opts[:return_type]
|
580
524
|
|
581
|
-
|
582
|
-
|
525
|
+
auth_names = opts[:auth_names] || []
|
526
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
583
527
|
:header_params => header_params,
|
584
528
|
:query_params => query_params,
|
585
529
|
:form_params => form_params,
|
586
530
|
:body => post_body,
|
587
531
|
:auth_names => auth_names,
|
588
|
-
:return_type => return_type
|
589
|
-
)
|
532
|
+
:return_type => return_type)
|
590
533
|
|
591
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
592
534
|
if @api_client.config.debugging
|
593
535
|
@api_client.config.logger.debug "API called: UsersApi#users_post_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
594
536
|
end
|
595
537
|
return data, status_code, headers
|
596
538
|
end
|
597
|
-
|
598
539
|
# Upsert users.
|
599
|
-
# @param
|
600
|
-
# @param
|
540
|
+
# @param body The upsert request.
|
541
|
+
# @param app_id The app where the users belong to.
|
601
542
|
# @param [Hash] opts the optional parameters
|
602
543
|
# @return [Array<UserDto>]
|
603
|
-
def users_post_users(
|
604
|
-
data, _status_code, _headers = users_post_users_with_http_info(
|
544
|
+
def users_post_users(body, app_id, opts = {})
|
545
|
+
data, _status_code, _headers = users_post_users_with_http_info(body, app_id, opts)
|
605
546
|
data
|
606
547
|
end
|
607
548
|
|
608
549
|
# Upsert users.
|
609
|
-
# @param
|
610
|
-
# @param
|
550
|
+
# @param body The upsert request.
|
551
|
+
# @param app_id The app where the users belong to.
|
611
552
|
# @param [Hash] opts the optional parameters
|
612
553
|
# @return [Array<(Array<UserDto>, Integer, Hash)>] Array<UserDto> data, response status code and response headers
|
613
|
-
def users_post_users_with_http_info(
|
554
|
+
def users_post_users_with_http_info(body, app_id, opts = {})
|
614
555
|
if @api_client.config.debugging
|
615
556
|
@api_client.config.logger.debug 'Calling API: UsersApi.users_post_users ...'
|
616
557
|
end
|
558
|
+
# verify the required parameter 'body' is set
|
559
|
+
if @api_client.config.client_side_validation && body.nil?
|
560
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling UsersApi.users_post_users"
|
561
|
+
end
|
617
562
|
# verify the required parameter 'app_id' is set
|
618
563
|
if @api_client.config.client_side_validation && app_id.nil?
|
619
564
|
fail ArgumentError, "Missing the required parameter 'app_id' when calling UsersApi.users_post_users"
|
620
565
|
end
|
621
|
-
# verify the required parameter 'upsert_users_dto' is set
|
622
|
-
if @api_client.config.client_side_validation && upsert_users_dto.nil?
|
623
|
-
fail ArgumentError, "Missing the required parameter 'upsert_users_dto' when calling UsersApi.users_post_users"
|
624
|
-
end
|
625
566
|
# resource path
|
626
|
-
local_var_path = '/api/apps/{appId}/users'.sub('{' + 'appId' + '}',
|
567
|
+
local_var_path = '/api/apps/{appId}/users'.sub('{' + 'appId' + '}', app_id.to_s)
|
627
568
|
|
628
569
|
# query parameters
|
629
570
|
query_params = opts[:query_params] || {}
|
@@ -639,25 +580,19 @@ module Notifo
|
|
639
580
|
form_params = opts[:form_params] || {}
|
640
581
|
|
641
582
|
# http body (model)
|
642
|
-
post_body = opts[:
|
643
|
-
|
644
|
-
# return_type
|
645
|
-
return_type = opts[:debug_return_type] || 'Array<UserDto>'
|
583
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
646
584
|
|
647
|
-
|
648
|
-
auth_names = opts[:debug_auth_names] || []
|
585
|
+
return_type = opts[:return_type] || 'Array<UserDto>'
|
649
586
|
|
650
|
-
|
651
|
-
|
587
|
+
auth_names = opts[:auth_names] || []
|
588
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
652
589
|
:header_params => header_params,
|
653
590
|
:query_params => query_params,
|
654
591
|
:form_params => form_params,
|
655
592
|
:body => post_body,
|
656
593
|
:auth_names => auth_names,
|
657
|
-
:return_type => return_type
|
658
|
-
)
|
594
|
+
:return_type => return_type)
|
659
595
|
|
660
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
661
596
|
if @api_client.config.debugging
|
662
597
|
@api_client.config.logger.debug "API called: UsersApi#users_post_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
663
598
|
end
|