notifo-io 1.0.1 → 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 +510 -8
- data/Rakefile +0 -2
- data/docs/AddAllowedTopicDto.md +3 -14
- data/docs/AddContributorDto.md +4 -16
- data/docs/AppContributorDto.md +5 -18
- data/docs/AppDetailsDto.md +18 -44
- data/docs/AppDto.md +8 -24
- data/docs/AppsApi.md +149 -331
- data/docs/Body.md +7 -0
- data/docs/ConfigsApi.md +21 -61
- data/docs/ConfirmMode.md +2 -11
- data/docs/CreateEmailTemplateDto.md +3 -14
- data/docs/EmailTemplateDto.md +5 -18
- data/docs/EmailTemplatesDto.md +6 -0
- data/docs/EmailVerificationStatus.md +2 -11
- data/docs/ErrorDto.md +7 -22
- data/docs/EventDto.md +14 -36
- data/docs/EventProperties.md +6 -0
- data/docs/EventsApi.md +36 -73
- data/docs/IsoDayOfWeek.md +2 -11
- data/docs/ListResponseDtoOfEventDto.md +4 -16
- data/docs/ListResponseDtoOfLogEntryDto.md +4 -16
- data/docs/ListResponseDtoOfMediaDto.md +4 -16
- data/docs/ListResponseDtoOfSubscriptionDto.md +4 -16
- data/docs/ListResponseDtoOfTemplateDto.md +4 -16
- data/docs/ListResponseDtoOfTopicDto.md +4 -16
- data/docs/ListResponseDtoOfUserDto.md +4 -16
- data/docs/LocalizedText.md +6 -0
- data/docs/LogEntryDto.md +6 -20
- data/docs/LogsApi.md +21 -40
- data/docs/MediaApi.md +102 -196
- data/docs/MediaDto.md +9 -26
- data/docs/MediaMetadata.md +6 -0
- data/docs/MediaType.md +2 -11
- data/docs/NotificationFormattingDto.md +10 -28
- data/docs/NotificationSend.md +2 -11
- data/docs/NotificationSettingDto.md +4 -16
- data/docs/ProfileDto.md +10 -28
- data/docs/PublishDto.md +12 -32
- data/docs/PublishManyDto.md +3 -14
- data/docs/ResizeMode.md +2 -11
- data/docs/SchedulingDto.md +6 -20
- data/docs/SchedulingType.md +2 -11
- data/docs/SubscriptionDto.md +4 -16
- data/docs/TemplateDto.md +5 -18
- data/docs/TemplatesApi.md +51 -106
- data/docs/TopicDto.md +5 -18
- data/docs/TopicsApi.md +21 -40
- data/docs/UpdateProfileDto.md +8 -24
- data/docs/UpsertAppDto.md +12 -32
- data/docs/UpsertTemplateDto.md +5 -18
- data/docs/UpsertTemplatesDto.md +3 -14
- data/docs/UpsertUserDto.md +10 -28
- data/docs/UpsertUsersDto.md +3 -14
- data/docs/UserApi.md +68 -160
- data/docs/UserDto.md +12 -32
- data/docs/UsersApi.md +144 -308
- data/git_push.sh +7 -10
- data/lib/notifo.rb +9 -5
- data/lib/notifo/api/apps_api.rb +130 -202
- data/lib/notifo/api/configs_api.rb +14 -30
- data/lib/notifo/api/events_api.rb +29 -45
- data/lib/notifo/api/logs_api.rb +12 -21
- data/lib/notifo/api/media_api.rb +60 -97
- data/lib/notifo/api/templates_api.rb +39 -62
- data/lib/notifo/api/topics_api.rb +12 -21
- data/lib/notifo/api/user_api.rb +51 -88
- data/lib/notifo/api/users_api.rb +121 -186
- data/lib/notifo/api_client.rb +54 -56
- data/lib/notifo/api_error.rb +5 -5
- data/lib/notifo/configuration.rb +12 -84
- data/lib/notifo/models/add_allowed_topic_dto.rb +13 -44
- data/lib/notifo/models/add_contributor_dto.rb +14 -64
- data/lib/notifo/models/app_contributor_dto.rb +15 -84
- data/lib/notifo/models/app_details_dto.rb +28 -103
- data/lib/notifo/models/app_dto.rb +18 -87
- data/lib/notifo/models/{inline_object.rb → body.rb} +16 -29
- data/lib/notifo/models/confirm_mode.rb +7 -16
- data/lib/notifo/models/create_email_template_dto.rb +13 -44
- data/lib/notifo/models/email_template_dto.rb +15 -66
- data/lib/notifo/models/email_templates_dto.rb +201 -0
- data/lib/notifo/models/email_verification_status.rb +8 -17
- data/lib/notifo/models/error_dto.rb +17 -33
- data/lib/notifo/models/event_dto.rb +24 -114
- data/lib/notifo/models/event_properties.rb +201 -0
- data/lib/notifo/models/iso_day_of_week.rb +12 -21
- data/lib/notifo/models/list_response_dto_of_event_dto.rb +14 -26
- data/lib/notifo/models/list_response_dto_of_log_entry_dto.rb +14 -26
- data/lib/notifo/models/list_response_dto_of_media_dto.rb +14 -26
- data/lib/notifo/models/list_response_dto_of_subscription_dto.rb +14 -26
- data/lib/notifo/models/list_response_dto_of_template_dto.rb +14 -26
- data/lib/notifo/models/list_response_dto_of_topic_dto.rb +14 -26
- data/lib/notifo/models/list_response_dto_of_user_dto.rb +14 -26
- data/lib/notifo/models/localized_text.rb +201 -0
- data/lib/notifo/models/log_entry_dto.rb +16 -85
- data/lib/notifo/models/media_dto.rb +20 -110
- data/lib/notifo/models/media_metadata.rb +201 -0
- data/lib/notifo/models/media_type.rb +8 -17
- data/lib/notifo/models/notification_formatting_dto.rb +27 -53
- data/lib/notifo/models/notification_send.rb +8 -17
- data/lib/notifo/models/notification_setting_dto.rb +23 -36
- data/lib/notifo/models/profile_dto.rb +20 -73
- data/lib/notifo/models/publish_dto.rb +23 -60
- data/lib/notifo/models/publish_many_dto.rb +13 -25
- data/lib/notifo/models/resize_mode.rb +11 -20
- data/lib/notifo/models/scheduling_dto.rb +16 -29
- data/lib/notifo/models/scheduling_type.rb +6 -15
- data/lib/notifo/models/subscription_dto.rb +14 -46
- data/lib/notifo/models/template_dto.rb +15 -46
- data/lib/notifo/models/topic_dto.rb +15 -65
- data/lib/notifo/models/update_profile_dto.rb +18 -36
- data/lib/notifo/models/upsert_app_dto.rb +22 -44
- data/lib/notifo/models/upsert_template_dto.rb +15 -47
- data/lib/notifo/models/upsert_templates_dto.rb +13 -25
- data/lib/notifo/models/upsert_user_dto.rb +20 -40
- data/lib/notifo/models/upsert_users_dto.rb +13 -25
- data/lib/notifo/models/user_dto.rb +22 -77
- data/lib/notifo/version.rb +4 -5
- data/notifo.gemspec +7 -7
- data/spec/api/apps_api_spec.rb +14 -15
- data/spec/api/configs_api_spec.rb +7 -8
- data/spec/api/events_api_spec.rb +8 -9
- data/spec/api/logs_api_spec.rb +7 -8
- data/spec/api/media_api_spec.rb +32 -11
- data/spec/api/templates_api_spec.rb +8 -9
- data/spec/api/topics_api_spec.rb +7 -8
- data/spec/api/user_api_spec.rb +9 -10
- data/spec/api/users_api_spec.rb +10 -11
- data/spec/api_client_spec.rb +5 -6
- data/spec/base_object_spec.rb +109 -0
- data/spec/configuration_spec.rb +7 -8
- data/spec/models/add_allowed_topic_dto_spec.rb +15 -9
- data/spec/models/add_contributor_dto_spec.rb +15 -9
- data/spec/models/app_contributor_dto_spec.rb +15 -9
- data/spec/models/app_details_dto_spec.rb +15 -9
- data/spec/models/app_dto_spec.rb +15 -9
- data/spec/models/body_spec.rb +40 -0
- data/spec/models/confirm_mode_spec.rb +15 -9
- data/spec/models/create_email_template_dto_spec.rb +15 -9
- data/spec/models/email_template_dto_spec.rb +15 -9
- data/spec/models/email_templates_dto_spec.rb +34 -0
- data/spec/models/email_verification_status_spec.rb +15 -9
- data/spec/models/error_dto_spec.rb +15 -9
- data/spec/models/event_dto_spec.rb +15 -9
- data/spec/models/event_properties_spec.rb +34 -0
- data/spec/models/iso_day_of_week_spec.rb +15 -9
- data/spec/models/list_response_dto_of_event_dto_spec.rb +15 -9
- data/spec/models/list_response_dto_of_log_entry_dto_spec.rb +15 -9
- data/spec/models/list_response_dto_of_media_dto_spec.rb +15 -9
- data/spec/models/list_response_dto_of_subscription_dto_spec.rb +15 -9
- data/spec/models/list_response_dto_of_template_dto_spec.rb +15 -9
- data/spec/models/list_response_dto_of_topic_dto_spec.rb +15 -9
- data/spec/models/list_response_dto_of_user_dto_spec.rb +15 -9
- data/spec/models/localized_text_spec.rb +34 -0
- data/spec/models/log_entry_dto_spec.rb +15 -9
- data/spec/models/media_dto_spec.rb +21 -9
- data/spec/models/media_metadata_spec.rb +34 -0
- data/spec/models/media_type_spec.rb +15 -9
- data/spec/models/notification_formatting_dto_spec.rb +15 -9
- data/spec/models/notification_send_spec.rb +15 -9
- data/spec/models/notification_setting_dto_spec.rb +16 -10
- data/spec/models/profile_dto_spec.rb +15 -9
- data/spec/models/publish_dto_spec.rb +15 -9
- data/spec/models/publish_many_dto_spec.rb +15 -9
- data/spec/models/resize_mode_spec.rb +15 -9
- data/spec/models/scheduling_dto_spec.rb +15 -9
- data/spec/models/scheduling_type_spec.rb +15 -9
- data/spec/models/subscription_dto_spec.rb +15 -9
- data/spec/models/template_dto_spec.rb +15 -9
- data/spec/models/topic_dto_spec.rb +15 -9
- data/spec/models/update_profile_dto_spec.rb +15 -9
- data/spec/models/upsert_app_dto_spec.rb +15 -9
- data/spec/models/upsert_template_dto_spec.rb +15 -9
- data/spec/models/upsert_templates_dto_spec.rb +15 -9
- data/spec/models/upsert_user_dto_spec.rb +15 -9
- data/spec/models/upsert_users_dto_spec.rb +15 -9
- data/spec/models/user_dto_spec.rb +15 -9
- data/spec/spec_helper.rb +4 -5
- metadata +44 -9
- data/docs/InlineObject.md +0 -18
- data/notifo-1.0.0.gem +0 -0
- data/notifo-io-1.0.0.2.gem +0 -0
- data/notifo-io-1.0.0.gem +0 -0
- data/spec/models/inline_object_spec.rb +0 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1b2be9e3dc4d74499c621ebfb4cbc073aaa28a3044195bb8aa828f7ab4dfab9
|
4
|
+
data.tar.gz: 1f214ae9cca32fb3a33d9d25913dc76d825a9fbb0b62a357a76b07520f91398c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5f9d6fbc13c6519661d7467fac4f05039d6712a1dfc3f3096cabb31b890ef60bb486b2e97522f668275d61a24d014c9c7f3afa6a1efb8abf126832ef91292e6
|
7
|
+
data.tar.gz: 272bd439c40a480cd1bbed86bcbba7607f33fab365aaca786338ca3befd0c08a907339cbb9288356af8ee8c52bd984078d01c0850ee7904d0d5c9016234fec40
|
data/README.md
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
|
3
3
|
Notifo - the Ruby gem for the Notifo API
|
4
4
|
|
5
|
-
No description provided (generated by
|
5
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
6
6
|
|
7
|
-
This SDK is automatically generated by the [
|
7
|
+
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: 1.0.0
|
10
10
|
- Package version: 1.0.0
|
11
|
-
- Build package:
|
11
|
+
- Build package: io.swagger.codegen.v3.generators.ruby.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
14
14
|
|
@@ -25,7 +25,6 @@ Then either install the gem locally:
|
|
25
25
|
```shell
|
26
26
|
gem install ./notifo-1.0.0.gem
|
27
27
|
```
|
28
|
-
|
29
28
|
(for development, run `gem install --dev ./notifo-1.0.0.gem` to install the development dependencies)
|
30
29
|
|
31
30
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
@@ -51,7 +50,6 @@ ruby -Ilib script.rb
|
|
51
50
|
## Getting Started
|
52
51
|
|
53
52
|
Please follow the [installation](#installation) procedure and then run the following code:
|
54
|
-
|
55
53
|
```ruby
|
56
54
|
# Load the gem
|
57
55
|
require 'notifo'
|
@@ -60,6 +58,7 @@ api_instance = Notifo::AppsApi.new
|
|
60
58
|
app_id = 'app_id_example' # String | The id of the app.
|
61
59
|
contributor_id = 'contributor_id_example' # String | The contributor to remove.
|
62
60
|
|
61
|
+
|
63
62
|
begin
|
64
63
|
#Delete an app contributor.
|
65
64
|
result = api_instance.apps_delete_contributor(app_id, contributor_id)
|
@@ -68,11 +67,511 @@ rescue Notifo::ApiError => e
|
|
68
67
|
puts "Exception when calling AppsApi->apps_delete_contributor: #{e}"
|
69
68
|
end
|
70
69
|
|
70
|
+
api_instance = Notifo::AppsApi.new
|
71
|
+
app_id = 'app_id_example' # String | The id of the app where the email templates belong to.
|
72
|
+
language = 'language_example' # String | The language.
|
73
|
+
|
74
|
+
|
75
|
+
begin
|
76
|
+
#Delete an app email template.
|
77
|
+
api_instance.apps_delete_email_template(app_id, language)
|
78
|
+
rescue Notifo::ApiError => e
|
79
|
+
puts "Exception when calling AppsApi->apps_delete_email_template: #{e}"
|
80
|
+
end
|
81
|
+
|
82
|
+
api_instance = Notifo::AppsApi.new
|
83
|
+
app_id = 'app_id_example' # String | The id of the app.
|
84
|
+
|
85
|
+
|
86
|
+
begin
|
87
|
+
#Get app by id.
|
88
|
+
result = api_instance.apps_get_app(app_id)
|
89
|
+
p result
|
90
|
+
rescue Notifo::ApiError => e
|
91
|
+
puts "Exception when calling AppsApi->apps_get_app: #{e}"
|
92
|
+
end
|
93
|
+
|
94
|
+
api_instance = Notifo::AppsApi.new
|
95
|
+
|
96
|
+
begin
|
97
|
+
#Get the user apps.
|
98
|
+
result = api_instance.apps_get_apps
|
99
|
+
p result
|
100
|
+
rescue Notifo::ApiError => e
|
101
|
+
puts "Exception when calling AppsApi->apps_get_apps: #{e}"
|
102
|
+
end
|
103
|
+
|
104
|
+
api_instance = Notifo::AppsApi.new
|
105
|
+
app_id = 'app_id_example' # String | The id of the app where the email templates belong to.
|
106
|
+
|
107
|
+
|
108
|
+
begin
|
109
|
+
#Get the app email templates.
|
110
|
+
result = api_instance.apps_get_email_templates(app_id)
|
111
|
+
p result
|
112
|
+
rescue Notifo::ApiError => e
|
113
|
+
puts "Exception when calling AppsApi->apps_get_email_templates: #{e}"
|
114
|
+
end
|
115
|
+
|
116
|
+
api_instance = Notifo::AppsApi.new
|
117
|
+
body = Notifo::UpsertAppDto.new # UpsertAppDto | The request object.
|
118
|
+
|
119
|
+
|
120
|
+
begin
|
121
|
+
#Create an app.
|
122
|
+
result = api_instance.apps_post_app(body)
|
123
|
+
p result
|
124
|
+
rescue Notifo::ApiError => e
|
125
|
+
puts "Exception when calling AppsApi->apps_post_app: #{e}"
|
126
|
+
end
|
127
|
+
|
128
|
+
api_instance = Notifo::AppsApi.new
|
129
|
+
body = Notifo::AddContributorDto.new # AddContributorDto | The request object.
|
130
|
+
app_id = 'app_id_example' # String | The id of the app.
|
131
|
+
|
132
|
+
|
133
|
+
begin
|
134
|
+
#Add an app contributor.
|
135
|
+
result = api_instance.apps_post_contributor(body, app_id)
|
136
|
+
p result
|
137
|
+
rescue Notifo::ApiError => e
|
138
|
+
puts "Exception when calling AppsApi->apps_post_contributor: #{e}"
|
139
|
+
end
|
140
|
+
|
141
|
+
api_instance = Notifo::AppsApi.new
|
142
|
+
body = Notifo::CreateEmailTemplateDto.new # CreateEmailTemplateDto | The request object.
|
143
|
+
app_id = 'app_id_example' # String | The id of the app where the email templates belong to.
|
144
|
+
|
145
|
+
|
146
|
+
begin
|
147
|
+
#Create an app email template.
|
148
|
+
result = api_instance.apps_post_email_template(body, app_id)
|
149
|
+
p result
|
150
|
+
rescue Notifo::ApiError => e
|
151
|
+
puts "Exception when calling AppsApi->apps_post_email_template: #{e}"
|
152
|
+
end
|
153
|
+
|
154
|
+
api_instance = Notifo::AppsApi.new
|
155
|
+
body = Notifo::UpsertAppDto.new # UpsertAppDto | The request object.
|
156
|
+
app_id = 'app_id_example' # String | The app id to update.
|
157
|
+
|
158
|
+
|
159
|
+
begin
|
160
|
+
#Update an app.
|
161
|
+
result = api_instance.apps_put_app(body, app_id)
|
162
|
+
p result
|
163
|
+
rescue Notifo::ApiError => e
|
164
|
+
puts "Exception when calling AppsApi->apps_put_app: #{e}"
|
165
|
+
end
|
166
|
+
|
167
|
+
api_instance = Notifo::AppsApi.new
|
168
|
+
body = Notifo::EmailTemplateDto.new # EmailTemplateDto | The request object.
|
169
|
+
app_id = 'app_id_example' # String | The id of the app where the email templates belong to.
|
170
|
+
language = 'language_example' # String | The language.
|
171
|
+
|
172
|
+
|
173
|
+
begin
|
174
|
+
#Update an app email template.
|
175
|
+
api_instance.apps_put_email_template(body, app_id, language)
|
176
|
+
rescue Notifo::ApiError => e
|
177
|
+
puts "Exception when calling AppsApi->apps_put_email_template: #{e}"
|
178
|
+
end
|
179
|
+
|
180
|
+
api_instance = Notifo::ConfigsApi.new
|
181
|
+
|
182
|
+
begin
|
183
|
+
#Get all supported languages.
|
184
|
+
result = api_instance.configs_get_languages
|
185
|
+
p result
|
186
|
+
rescue Notifo::ApiError => e
|
187
|
+
puts "Exception when calling ConfigsApi->configs_get_languages: #{e}"
|
188
|
+
end
|
189
|
+
|
190
|
+
api_instance = Notifo::ConfigsApi.new
|
191
|
+
|
192
|
+
begin
|
193
|
+
#Get all supported timezones.
|
194
|
+
result = api_instance.configs_get_timezones
|
195
|
+
p result
|
196
|
+
rescue Notifo::ApiError => e
|
197
|
+
puts "Exception when calling ConfigsApi->configs_get_timezones: #{e}"
|
198
|
+
end
|
199
|
+
|
200
|
+
api_instance = Notifo::EventsApi.new
|
201
|
+
app_id = 'app_id_example' # String | The app where the events belongs to.
|
202
|
+
opts = {
|
203
|
+
query: 'query_example', # String | The optional query to search for items.
|
204
|
+
take: 56, # Integer | The number of items to return.
|
205
|
+
skip: 56 # Integer | The number of items to skip.
|
206
|
+
}
|
207
|
+
|
208
|
+
begin
|
209
|
+
#Query events.
|
210
|
+
result = api_instance.events_get_events(app_id, opts)
|
211
|
+
p result
|
212
|
+
rescue Notifo::ApiError => e
|
213
|
+
puts "Exception when calling EventsApi->events_get_events: #{e}"
|
214
|
+
end
|
215
|
+
|
216
|
+
api_instance = Notifo::EventsApi.new
|
217
|
+
body = Notifo::PublishManyDto.new # PublishManyDto | The publish request.
|
218
|
+
app_id = 'app_id_example' # String | The app where the events belongs to.
|
219
|
+
|
220
|
+
|
221
|
+
begin
|
222
|
+
#Publish events.
|
223
|
+
api_instance.events_post_events(body, app_id)
|
224
|
+
rescue Notifo::ApiError => e
|
225
|
+
puts "Exception when calling EventsApi->events_post_events: #{e}"
|
226
|
+
end
|
227
|
+
|
228
|
+
api_instance = Notifo::LogsApi.new
|
229
|
+
app_id = 'app_id_example' # String | The app where the log entries belongs to.
|
230
|
+
opts = {
|
231
|
+
query: 'query_example', # String | The optional query to search for items.
|
232
|
+
take: 56, # Integer | The number of items to return.
|
233
|
+
skip: 56 # Integer | The number of items to skip.
|
234
|
+
}
|
235
|
+
|
236
|
+
begin
|
237
|
+
#Query log entries.
|
238
|
+
result = api_instance.logs_get_logs(app_id, opts)
|
239
|
+
p result
|
240
|
+
rescue Notifo::ApiError => e
|
241
|
+
puts "Exception when calling LogsApi->logs_get_logs: #{e}"
|
242
|
+
end
|
243
|
+
|
244
|
+
api_instance = Notifo::MediaApi.new
|
245
|
+
app_id = 'app_id_example' # String | The app id where the media belongs to.
|
246
|
+
file_name = 'file_name_example' # String | The file name of the media.
|
247
|
+
|
248
|
+
|
249
|
+
begin
|
250
|
+
#Delete a media.
|
251
|
+
api_instance.media_delete(app_id, file_name)
|
252
|
+
rescue Notifo::ApiError => e
|
253
|
+
puts "Exception when calling MediaApi->media_delete: #{e}"
|
254
|
+
end
|
255
|
+
|
256
|
+
api_instance = Notifo::MediaApi.new
|
257
|
+
app_id = 'app_id_example' # String | The app id where the media belongs to.
|
258
|
+
file_name = 'file_name_example' # String | The name of the media to download.
|
259
|
+
opts = {
|
260
|
+
cache: 789, # Integer | The cache duration.
|
261
|
+
download: 56, # Integer | Set it to 1 to create a download response.
|
262
|
+
width: 56, # Integer | The target width when an image.
|
263
|
+
height: 56, # Integer | The target height when an image.
|
264
|
+
quality: 56, # Integer | The target quality when an image.
|
265
|
+
preset: 'preset_example', # String | A preset dimension.
|
266
|
+
mode: Notifo::ResizeMode.new, # ResizeMode | The resize mode.
|
267
|
+
focus_x: 3.4, # Float | The x position of the focues point.
|
268
|
+
focus_y: 3.4, # Float | The y position of the focues point.
|
269
|
+
force: true # BOOLEAN | True to resize it and clear the cache.
|
270
|
+
}
|
271
|
+
|
272
|
+
begin
|
273
|
+
#Download a media object.
|
274
|
+
result = api_instance.media_download(app_id, file_name, opts)
|
275
|
+
p result
|
276
|
+
rescue Notifo::ApiError => e
|
277
|
+
puts "Exception when calling MediaApi->media_download: #{e}"
|
278
|
+
end
|
279
|
+
|
280
|
+
api_instance = Notifo::MediaApi.new
|
281
|
+
app_id = 'app_id_example' # String | The app id where the media belongs to.
|
282
|
+
file_name = 'file_name_example' # String | The name of the media to download.
|
283
|
+
opts = {
|
284
|
+
cache: 789, # Integer | The cache duration.
|
285
|
+
download: 56, # Integer | Set it to 1 to create a download response.
|
286
|
+
width: 56, # Integer | The target width when an image.
|
287
|
+
height: 56, # Integer | The target height when an image.
|
288
|
+
quality: 56, # Integer | The target quality when an image.
|
289
|
+
preset: 'preset_example', # String | A preset dimension.
|
290
|
+
mode: Notifo::ResizeMode.new, # ResizeMode | The resize mode.
|
291
|
+
focus_x: 3.4, # Float | The x position of the focues point.
|
292
|
+
focus_y: 3.4, # Float | The y position of the focues point.
|
293
|
+
force: true # BOOLEAN | True to resize it and clear the cache.
|
294
|
+
}
|
295
|
+
|
296
|
+
begin
|
297
|
+
#Download a media object.
|
298
|
+
result = api_instance.media_download2(app_id, file_name, opts)
|
299
|
+
p result
|
300
|
+
rescue Notifo::ApiError => e
|
301
|
+
puts "Exception when calling MediaApi->media_download2: #{e}"
|
302
|
+
end
|
303
|
+
|
304
|
+
api_instance = Notifo::MediaApi.new
|
305
|
+
app_id = 'app_id_example' # String | The app where the media belongs to.
|
306
|
+
opts = {
|
307
|
+
query: 'query_example', # String | The optional query to search for items.
|
308
|
+
take: 56, # Integer | The number of items to return.
|
309
|
+
skip: 56 # Integer | The number of items to skip.
|
310
|
+
}
|
311
|
+
|
312
|
+
begin
|
313
|
+
#Query media items.
|
314
|
+
result = api_instance.media_get_medias(app_id, opts)
|
315
|
+
p result
|
316
|
+
rescue Notifo::ApiError => e
|
317
|
+
puts "Exception when calling MediaApi->media_get_medias: #{e}"
|
318
|
+
end
|
319
|
+
|
320
|
+
api_instance = Notifo::MediaApi.new
|
321
|
+
app_id = 'app_id_example' # String | The app id where the media belongs to.
|
322
|
+
opts = {
|
323
|
+
file: 'file_example' # String |
|
324
|
+
}
|
325
|
+
|
326
|
+
begin
|
327
|
+
#Upload a media object.
|
328
|
+
api_instance.media_upload(app_id, opts)
|
329
|
+
rescue Notifo::ApiError => e
|
330
|
+
puts "Exception when calling MediaApi->media_upload: #{e}"
|
331
|
+
end
|
332
|
+
|
333
|
+
api_instance = Notifo::TemplatesApi.new
|
334
|
+
app_id = 'app_id_example' # String | The app where the templates belong to.
|
335
|
+
code = 'code_example' # String | The template code to delete.
|
336
|
+
|
337
|
+
|
338
|
+
begin
|
339
|
+
#Delete a template.
|
340
|
+
result = api_instance.templates_delete_template(app_id, code)
|
341
|
+
p result
|
342
|
+
rescue Notifo::ApiError => e
|
343
|
+
puts "Exception when calling TemplatesApi->templates_delete_template: #{e}"
|
344
|
+
end
|
345
|
+
|
346
|
+
api_instance = Notifo::TemplatesApi.new
|
347
|
+
app_id = 'app_id_example' # String | The app where the templates belongs to.
|
348
|
+
opts = {
|
349
|
+
query: 'query_example', # String | The optional query to search for items.
|
350
|
+
take: 56, # Integer | The number of items to return.
|
351
|
+
skip: 56 # Integer | The number of items to skip.
|
352
|
+
}
|
353
|
+
|
354
|
+
begin
|
355
|
+
#Query templates.
|
356
|
+
result = api_instance.templates_get_templates(app_id, opts)
|
357
|
+
p result
|
358
|
+
rescue Notifo::ApiError => e
|
359
|
+
puts "Exception when calling TemplatesApi->templates_get_templates: #{e}"
|
360
|
+
end
|
361
|
+
|
362
|
+
api_instance = Notifo::TemplatesApi.new
|
363
|
+
body = Notifo::UpsertTemplatesDto.new # UpsertTemplatesDto | The upsert request.
|
364
|
+
app_id = 'app_id_example' # String | The app where the templates belong to.
|
365
|
+
|
366
|
+
|
367
|
+
begin
|
368
|
+
#Upsert templates.
|
369
|
+
result = api_instance.templates_post_templates(body, app_id)
|
370
|
+
p result
|
371
|
+
rescue Notifo::ApiError => e
|
372
|
+
puts "Exception when calling TemplatesApi->templates_post_templates: #{e}"
|
373
|
+
end
|
374
|
+
|
375
|
+
api_instance = Notifo::TopicsApi.new
|
376
|
+
app_id = 'app_id_example' # String | The app where the topics belongs to.
|
377
|
+
opts = {
|
378
|
+
query: 'query_example', # String | The optional query to search for items.
|
379
|
+
take: 56, # Integer | The number of items to return.
|
380
|
+
skip: 56 # Integer | The number of items to skip.
|
381
|
+
}
|
382
|
+
|
383
|
+
begin
|
384
|
+
#Query topics.
|
385
|
+
result = api_instance.topics_get_topics(app_id, opts)
|
386
|
+
p result
|
387
|
+
rescue Notifo::ApiError => e
|
388
|
+
puts "Exception when calling TopicsApi->topics_get_topics: #{e}"
|
389
|
+
end
|
390
|
+
|
391
|
+
api_instance = Notifo::UserApi.new
|
392
|
+
topic = 'topic_example' # String | The topic path.
|
393
|
+
|
394
|
+
|
395
|
+
begin
|
396
|
+
#Deletes a user subscription.
|
397
|
+
api_instance.user_delete_subscription(topic)
|
398
|
+
rescue Notifo::ApiError => e
|
399
|
+
puts "Exception when calling UserApi->user_delete_subscription: #{e}"
|
400
|
+
end
|
401
|
+
|
402
|
+
api_instance = Notifo::UserApi.new
|
403
|
+
topic = 'topic_example' # String | The topic path.
|
404
|
+
|
405
|
+
|
406
|
+
begin
|
407
|
+
#Gets a user subscription.
|
408
|
+
result = api_instance.user_get_subscription(topic)
|
409
|
+
p result
|
410
|
+
rescue Notifo::ApiError => e
|
411
|
+
puts "Exception when calling UserApi->user_get_subscription: #{e}"
|
412
|
+
end
|
413
|
+
|
414
|
+
api_instance = Notifo::UserApi.new
|
415
|
+
|
416
|
+
begin
|
417
|
+
#Get the current user.
|
418
|
+
result = api_instance.user_get_user
|
419
|
+
p result
|
420
|
+
rescue Notifo::ApiError => e
|
421
|
+
puts "Exception when calling UserApi->user_get_user: #{e}"
|
422
|
+
end
|
423
|
+
|
424
|
+
api_instance = Notifo::UserApi.new
|
425
|
+
body = Notifo::SubscriptionDto.new # SubscriptionDto | The subscription settings.
|
426
|
+
|
427
|
+
|
428
|
+
begin
|
429
|
+
#Creates a user subscription.
|
430
|
+
api_instance.user_post_subscription(body)
|
431
|
+
rescue Notifo::ApiError => e
|
432
|
+
puts "Exception when calling UserApi->user_post_subscription: #{e}"
|
433
|
+
end
|
434
|
+
|
435
|
+
api_instance = Notifo::UserApi.new
|
436
|
+
body = Notifo::UpdateProfileDto.new # UpdateProfileDto | The upsert request.
|
437
|
+
|
438
|
+
|
439
|
+
begin
|
440
|
+
#Update the user.
|
441
|
+
result = api_instance.user_post_user(body)
|
442
|
+
p result
|
443
|
+
rescue Notifo::ApiError => e
|
444
|
+
puts "Exception when calling UserApi->user_post_user: #{e}"
|
445
|
+
end
|
446
|
+
|
447
|
+
api_instance = Notifo::UsersApi.new
|
448
|
+
app_id = 'app_id_example' # String | The app where the users belong to.
|
449
|
+
id = 'id_example' # String | The user id.
|
450
|
+
prefix = 'prefix_example' # String | The topic prefix.
|
451
|
+
|
452
|
+
|
453
|
+
begin
|
454
|
+
#Remove an allowed topic.
|
455
|
+
api_instance.users_delete_allowed_topic(app_id, id, prefix)
|
456
|
+
rescue Notifo::ApiError => e
|
457
|
+
puts "Exception when calling UsersApi->users_delete_allowed_topic: #{e}"
|
458
|
+
end
|
459
|
+
|
460
|
+
api_instance = Notifo::UsersApi.new
|
461
|
+
app_id = 'app_id_example' # String | The app where the user belongs to.
|
462
|
+
id = 'id_example' # String | The user id.
|
463
|
+
prefix = 'prefix_example' # String | The topic prefix.
|
464
|
+
|
465
|
+
|
466
|
+
begin
|
467
|
+
#Remove a user subscriptions.
|
468
|
+
api_instance.users_delete_subscription(app_id, id, prefix)
|
469
|
+
rescue Notifo::ApiError => e
|
470
|
+
puts "Exception when calling UsersApi->users_delete_subscription: #{e}"
|
471
|
+
end
|
472
|
+
|
473
|
+
api_instance = Notifo::UsersApi.new
|
474
|
+
app_id = 'app_id_example' # String | The app where the users belongs to.
|
475
|
+
id = 'id_example' # String | The user id to delete.
|
476
|
+
|
477
|
+
|
478
|
+
begin
|
479
|
+
#Delete a user.
|
480
|
+
result = api_instance.users_delete_user(app_id, id)
|
481
|
+
p result
|
482
|
+
rescue Notifo::ApiError => e
|
483
|
+
puts "Exception when calling UsersApi->users_delete_user: #{e}"
|
484
|
+
end
|
485
|
+
|
486
|
+
api_instance = Notifo::UsersApi.new
|
487
|
+
app_id = 'app_id_example' # String | The app where the user belongs to.
|
488
|
+
id = 'id_example' # String | The user id.
|
489
|
+
opts = {
|
490
|
+
query: 'query_example', # String | The optional query to search for items.
|
491
|
+
take: 56, # Integer | The number of items to return.
|
492
|
+
skip: 56 # Integer | The number of items to skip.
|
493
|
+
}
|
494
|
+
|
495
|
+
begin
|
496
|
+
#Query user subscriptions.
|
497
|
+
result = api_instance.users_get_subscriptions(app_id, id, opts)
|
498
|
+
p result
|
499
|
+
rescue Notifo::ApiError => e
|
500
|
+
puts "Exception when calling UsersApi->users_get_subscriptions: #{e}"
|
501
|
+
end
|
502
|
+
|
503
|
+
api_instance = Notifo::UsersApi.new
|
504
|
+
app_id = 'app_id_example' # String | The app where the user belongs to.
|
505
|
+
id = 'id_example' # String | The user id.
|
506
|
+
|
507
|
+
|
508
|
+
begin
|
509
|
+
#Get a user.
|
510
|
+
result = api_instance.users_get_user(app_id, id)
|
511
|
+
p result
|
512
|
+
rescue Notifo::ApiError => e
|
513
|
+
puts "Exception when calling UsersApi->users_get_user: #{e}"
|
514
|
+
end
|
515
|
+
|
516
|
+
api_instance = Notifo::UsersApi.new
|
517
|
+
app_id = 'app_id_example' # String | The app where the users belongs to.
|
518
|
+
opts = {
|
519
|
+
query: 'query_example', # String | The optional query to search for items.
|
520
|
+
take: 56, # Integer | The number of items to return.
|
521
|
+
skip: 56 # Integer | The number of items to skip.
|
522
|
+
}
|
523
|
+
|
524
|
+
begin
|
525
|
+
#Query users.
|
526
|
+
result = api_instance.users_get_users(app_id, opts)
|
527
|
+
p result
|
528
|
+
rescue Notifo::ApiError => e
|
529
|
+
puts "Exception when calling UsersApi->users_get_users: #{e}"
|
530
|
+
end
|
531
|
+
|
532
|
+
api_instance = Notifo::UsersApi.new
|
533
|
+
body = Notifo::AddAllowedTopicDto.new # AddAllowedTopicDto | The upsert request.
|
534
|
+
app_id = 'app_id_example' # String | The app where the users belong to.
|
535
|
+
id = 'id_example' # String | The user id.
|
536
|
+
|
537
|
+
|
538
|
+
begin
|
539
|
+
#Add an allowed topic.
|
540
|
+
api_instance.users_post_allowed_topic(body, app_id, id)
|
541
|
+
rescue Notifo::ApiError => e
|
542
|
+
puts "Exception when calling UsersApi->users_post_allowed_topic: #{e}"
|
543
|
+
end
|
544
|
+
|
545
|
+
api_instance = Notifo::UsersApi.new
|
546
|
+
body = Notifo::SubscriptionDto.new # SubscriptionDto | The subscription object.
|
547
|
+
app_id = 'app_id_example' # String | The app where the user belongs to.
|
548
|
+
id = 'id_example' # String | The user id.
|
549
|
+
|
550
|
+
|
551
|
+
begin
|
552
|
+
#Upsert a user subscriptions.
|
553
|
+
api_instance.users_post_subscription(body, app_id, id)
|
554
|
+
rescue Notifo::ApiError => e
|
555
|
+
puts "Exception when calling UsersApi->users_post_subscription: #{e}"
|
556
|
+
end
|
557
|
+
|
558
|
+
api_instance = Notifo::UsersApi.new
|
559
|
+
body = Notifo::UpsertUsersDto.new # UpsertUsersDto | The upsert request.
|
560
|
+
app_id = 'app_id_example' # String | The app where the users belong to.
|
561
|
+
|
562
|
+
|
563
|
+
begin
|
564
|
+
#Upsert users.
|
565
|
+
result = api_instance.users_post_users(body, app_id)
|
566
|
+
p result
|
567
|
+
rescue Notifo::ApiError => e
|
568
|
+
puts "Exception when calling UsersApi->users_post_users: #{e}"
|
569
|
+
end
|
71
570
|
```
|
72
571
|
|
73
572
|
## Documentation for API Endpoints
|
74
573
|
|
75
|
-
All URIs are relative to *
|
574
|
+
All URIs are relative to *https://app.notifo.io*
|
76
575
|
|
77
576
|
Class | Method | HTTP request | Description
|
78
577
|
------------ | ------------- | ------------- | -------------
|
@@ -115,7 +614,6 @@ Class | Method | HTTP request | Description
|
|
115
614
|
*Notifo::UsersApi* | [**users_post_subscription**](docs/UsersApi.md#users_post_subscription) | **POST** /api/apps/{appId}/users/{id}/subscriptions | Upsert a user subscriptions.
|
116
615
|
*Notifo::UsersApi* | [**users_post_users**](docs/UsersApi.md#users_post_users) | **POST** /api/apps/{appId}/users | Upsert users.
|
117
616
|
|
118
|
-
|
119
617
|
## Documentation for Models
|
120
618
|
|
121
619
|
- [Notifo::AddAllowedTopicDto](docs/AddAllowedTopicDto.md)
|
@@ -123,12 +621,15 @@ Class | Method | HTTP request | Description
|
|
123
621
|
- [Notifo::AppContributorDto](docs/AppContributorDto.md)
|
124
622
|
- [Notifo::AppDetailsDto](docs/AppDetailsDto.md)
|
125
623
|
- [Notifo::AppDto](docs/AppDto.md)
|
624
|
+
- [Notifo::Body](docs/Body.md)
|
126
625
|
- [Notifo::ConfirmMode](docs/ConfirmMode.md)
|
127
626
|
- [Notifo::CreateEmailTemplateDto](docs/CreateEmailTemplateDto.md)
|
128
627
|
- [Notifo::EmailTemplateDto](docs/EmailTemplateDto.md)
|
628
|
+
- [Notifo::EmailTemplatesDto](docs/EmailTemplatesDto.md)
|
129
629
|
- [Notifo::EmailVerificationStatus](docs/EmailVerificationStatus.md)
|
130
630
|
- [Notifo::ErrorDto](docs/ErrorDto.md)
|
131
631
|
- [Notifo::EventDto](docs/EventDto.md)
|
632
|
+
- [Notifo::EventProperties](docs/EventProperties.md)
|
132
633
|
- [Notifo::IsoDayOfWeek](docs/IsoDayOfWeek.md)
|
133
634
|
- [Notifo::ListResponseDtoOfEventDto](docs/ListResponseDtoOfEventDto.md)
|
134
635
|
- [Notifo::ListResponseDtoOfLogEntryDto](docs/ListResponseDtoOfLogEntryDto.md)
|
@@ -137,8 +638,10 @@ Class | Method | HTTP request | Description
|
|
137
638
|
- [Notifo::ListResponseDtoOfTemplateDto](docs/ListResponseDtoOfTemplateDto.md)
|
138
639
|
- [Notifo::ListResponseDtoOfTopicDto](docs/ListResponseDtoOfTopicDto.md)
|
139
640
|
- [Notifo::ListResponseDtoOfUserDto](docs/ListResponseDtoOfUserDto.md)
|
641
|
+
- [Notifo::LocalizedText](docs/LocalizedText.md)
|
140
642
|
- [Notifo::LogEntryDto](docs/LogEntryDto.md)
|
141
643
|
- [Notifo::MediaDto](docs/MediaDto.md)
|
644
|
+
- [Notifo::MediaMetadata](docs/MediaMetadata.md)
|
142
645
|
- [Notifo::MediaType](docs/MediaType.md)
|
143
646
|
- [Notifo::NotificationFormattingDto](docs/NotificationFormattingDto.md)
|
144
647
|
- [Notifo::NotificationSend](docs/NotificationSend.md)
|
@@ -160,7 +663,6 @@ Class | Method | HTTP request | Description
|
|
160
663
|
- [Notifo::UpsertUsersDto](docs/UpsertUsersDto.md)
|
161
664
|
- [Notifo::UserDto](docs/UserDto.md)
|
162
665
|
|
163
|
-
|
164
666
|
## Documentation for Authorization
|
165
667
|
|
166
668
|
All endpoints do not require authorization.
|