notifo-io 1.0.0.pre → 1.0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +726 -19
- data/Rakefile +0 -2
- data/docs/AddAllowedTopicDto.md +7 -0
- data/docs/AddContributorDto.md +4 -16
- data/docs/AppContributorDto.md +5 -18
- data/docs/AppDetailsDto.md +10 -44
- data/docs/AppDto.md +8 -24
- data/docs/AppIdMediaBody.md +7 -0
- data/docs/AppsApi.md +301 -297
- data/docs/AuthorizationApi.md +121 -0
- data/docs/Body.md +7 -0
- data/docs/ConfigsApi.md +21 -61
- data/docs/ConfiguredIntegrationDto.md +12 -0
- data/docs/ConfiguredIntegrationsDto.md +8 -0
- data/docs/ConfirmMode.md +2 -11
- data/docs/CreateEmailTemplateDto.md +3 -14
- data/docs/CreateIntegrationDto.md +11 -0
- 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 +15 -36
- data/docs/EventProperties.md +6 -0
- data/docs/EventsApi.md +72 -65
- data/docs/IntegrationCreatedDto.md +8 -0
- data/docs/IntegrationDefinitionDto.md +11 -0
- data/docs/IntegrationProperties.md +6 -0
- data/docs/IntegrationPropertyDto.md +17 -0
- data/docs/IntegrationPropertyType.md +6 -0
- data/docs/IntegrationStatus.md +6 -0
- 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/ListResponseDtoOfMobilePushTokenDto.md +8 -0
- data/docs/ListResponseDtoOfNotificationDto.md +8 -0
- 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 +134 -141
- data/docs/MediaDto.md +9 -24
- data/docs/MediaMetadata.md +6 -0
- data/docs/MediaType.md +2 -11
- data/docs/MobileDeviceType.md +6 -0
- data/docs/MobilePushApi.md +135 -0
- data/docs/MobilePushTokenDto.md +8 -0
- data/docs/NotificationDto.md +21 -0
- data/docs/NotificationFormattingDto.md +10 -28
- data/docs/NotificationSend.md +6 -0
- data/docs/NotificationSettingDto.md +4 -16
- data/docs/NotificationsApi.md +141 -0
- data/docs/ProfileDto.md +14 -0
- data/docs/PublishDto.md +18 -0
- data/docs/PublishManyDto.md +7 -0
- data/docs/RegisterMobileTokenDto.md +8 -0
- 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 +19 -230
- data/docs/TrackNotificationDto.md +10 -0
- data/docs/UpdateIntegrationDto.md +10 -0
- data/docs/UpdateProfileDto.md +12 -0
- data/docs/UpsertAppDto.md +12 -32
- data/docs/UpsertTemplateDto.md +5 -18
- data/docs/UpsertTemplatesDto.md +3 -14
- data/docs/UpsertUserDto.md +11 -28
- data/docs/UpsertUsersDto.md +3 -14
- data/docs/UserApi.md +231 -0
- data/docs/UserDto.md +15 -32
- data/docs/UserInfoApi.md +83 -0
- data/docs/UsersApi.md +144 -308
- data/git_push.sh +7 -10
- data/lib/notifo.rb +37 -11
- data/lib/notifo/api/apps_api.rb +373 -201
- data/lib/notifo/api/authorization_api.rb +158 -0
- data/lib/notifo/api/configs_api.rb +14 -30
- data/lib/notifo/api/events_api.rb +85 -45
- data/lib/notifo/api/logs_api.rb +12 -21
- data/lib/notifo/api/media_api.rb +137 -77
- data/lib/notifo/api/mobile_push_api.rb +178 -0
- data/lib/notifo/api/notifications_api.rb +181 -0
- data/lib/notifo/api/templates_api.rb +39 -62
- data/lib/notifo/api/topics_api.rb +12 -210
- data/lib/notifo/api/user_api.rb +294 -0
- data/lib/notifo/api/user_info_api.rb +112 -0
- data/lib/notifo/api/users_api.rb +121 -186
- data/lib/notifo/api_client.rb +53 -55
- data/lib/notifo/api_error.rb +5 -5
- data/lib/notifo/configuration.rb +8 -78
- data/lib/notifo/models/{add_allowed_topic_request.rb → add_allowed_topic_dto.rb} +21 -28
- data/lib/notifo/models/add_contributor_dto.rb +24 -26
- data/lib/notifo/models/app_contributor_dto.rb +30 -27
- data/lib/notifo/models/app_details_dto.rb +59 -119
- data/lib/notifo/models/app_dto.rb +51 -31
- data/lib/notifo/models/{inline_object.rb → app_id_media_body.rb} +16 -28
- data/lib/notifo/models/body.rb +206 -0
- data/lib/notifo/models/configured_integration_dto.rb +271 -0
- data/lib/notifo/models/configured_integrations_dto.rb +231 -0
- data/lib/notifo/models/confirm_mode.rb +7 -16
- data/lib/notifo/models/create_email_template_dto.rb +18 -25
- data/lib/notifo/models/create_integration_dto.rb +257 -0
- data/lib/notifo/models/email_template_dto.rb +25 -27
- 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 -29
- data/lib/notifo/models/event_dto.rb +92 -46
- data/lib/notifo/models/event_properties.rb +201 -0
- data/lib/notifo/models/{subscribe_dto.rb → integration_created_dto.rb} +39 -42
- data/lib/notifo/models/integration_definition_dto.rb +272 -0
- data/lib/notifo/models/integration_properties.rb +201 -0
- data/lib/notifo/models/integration_property_dto.rb +319 -0
- data/lib/notifo/models/integration_property_type.rb +31 -0
- data/lib/notifo/models/integration_status.rb +29 -0
- data/lib/notifo/models/iso_day_of_week.rb +12 -21
- data/lib/notifo/models/list_response_dto_of_event_dto.rb +24 -26
- data/lib/notifo/models/list_response_dto_of_log_entry_dto.rb +24 -26
- data/lib/notifo/models/list_response_dto_of_media_dto.rb +24 -26
- data/lib/notifo/models/list_response_dto_of_mobile_push_token_dto.rb +229 -0
- data/lib/notifo/models/list_response_dto_of_notification_dto.rb +229 -0
- data/lib/notifo/models/list_response_dto_of_subscription_dto.rb +24 -26
- data/lib/notifo/models/list_response_dto_of_template_dto.rb +24 -26
- data/lib/notifo/models/list_response_dto_of_topic_dto.rb +24 -26
- data/lib/notifo/models/list_response_dto_of_user_dto.rb +24 -26
- data/lib/notifo/models/localized_text.rb +201 -0
- data/lib/notifo/models/log_entry_dto.rb +36 -28
- data/lib/notifo/models/media_dto.rb +64 -33
- data/lib/notifo/models/media_metadata.rb +201 -0
- data/lib/notifo/models/media_type.rb +8 -17
- data/lib/notifo/models/mobile_device_type.rb +29 -0
- data/lib/notifo/models/mobile_push_token_dto.rb +221 -0
- data/lib/notifo/models/notification_dto.rb +386 -0
- data/lib/notifo/models/notification_formatting_dto.rb +30 -46
- data/lib/notifo/models/notification_send.rb +30 -0
- data/lib/notifo/models/notification_setting_dto.rb +25 -34
- data/lib/notifo/models/profile_dto.rb +311 -0
- data/lib/notifo/models/{publish_request_dto.rb → publish_dto.rb} +55 -44
- data/lib/notifo/models/{publish_many_request_dto.rb → publish_many_dto.rb} +21 -28
- data/lib/notifo/models/register_mobile_token_dto.rb +221 -0
- data/lib/notifo/models/resize_mode.rb +11 -20
- data/lib/notifo/models/scheduling_dto.rb +16 -31
- data/lib/notifo/models/scheduling_type.rb +6 -15
- data/lib/notifo/models/subscription_dto.rb +23 -27
- data/lib/notifo/models/template_dto.rb +33 -29
- data/lib/notifo/models/topic_dto.rb +33 -28
- data/lib/notifo/models/track_notification_dto.rb +243 -0
- data/lib/notifo/models/update_integration_dto.rb +242 -0
- data/lib/notifo/models/update_profile_dto.rb +265 -0
- data/lib/notifo/models/upsert_app_dto.rb +22 -34
- data/lib/notifo/models/upsert_template_dto.rb +28 -29
- data/lib/notifo/models/upsert_templates_dto.rb +18 -25
- data/lib/notifo/models/upsert_user_dto.rb +35 -34
- data/lib/notifo/models/upsert_users_dto.rb +18 -25
- data/lib/notifo/models/user_dto.rb +100 -37
- data/lib/notifo/version.rb +4 -5
- data/notifo-io-1.0.1.1.gem +0 -0
- data/notifo.gemspec +10 -10
- data/spec/api/apps_api_spec.rb +14 -15
- data/spec/api/authorization_api_spec.rb +61 -0
- 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 +33 -12
- data/spec/api/mobile_push_api_spec.rb +66 -0
- data/spec/api/notifications_api_spec.rb +68 -0
- data/spec/api/templates_api_spec.rb +8 -9
- data/spec/api/topics_api_spec.rb +7 -44
- data/spec/api/user_api_spec.rb +91 -0
- data/spec/api/user_info_api_spec.rb +52 -0
- 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 +4 -5
- data/spec/models/add_allowed_topic_dto_spec.rb +40 -0
- 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/app_id_media_body_spec.rb +40 -0
- data/spec/models/body_spec.rb +40 -0
- data/spec/models/configured_integration_dto_spec.rb +70 -0
- data/spec/models/configured_integrations_dto_spec.rb +46 -0
- data/spec/models/confirm_mode_spec.rb +15 -9
- data/spec/models/create_email_template_dto_spec.rb +15 -9
- data/spec/models/create_integration_dto_spec.rb +64 -0
- 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/integration_created_dto_spec.rb +46 -0
- data/spec/models/integration_definition_dto_spec.rb +64 -0
- data/spec/models/integration_properties_spec.rb +34 -0
- data/spec/models/integration_property_dto_spec.rb +100 -0
- data/spec/models/integration_property_type_spec.rb +34 -0
- data/spec/models/integration_status_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_mobile_push_token_dto_spec.rb +46 -0
- data/spec/models/list_response_dto_of_notification_dto_spec.rb +46 -0
- 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/mobile_device_type_spec.rb +34 -0
- data/spec/models/mobile_push_token_dto_spec.rb +46 -0
- data/spec/models/notification_dto_spec.rb +124 -0
- data/spec/models/notification_formatting_dto_spec.rb +15 -9
- data/spec/models/notification_send_spec.rb +34 -0
- data/spec/models/notification_setting_dto_spec.rb +16 -10
- data/spec/models/profile_dto_spec.rb +82 -0
- data/spec/models/{publish_request_dto_spec.rb → publish_dto_spec.rb} +18 -12
- data/spec/models/publish_many_dto_spec.rb +40 -0
- data/spec/models/register_mobile_token_dto_spec.rb +46 -0
- 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/track_notification_dto_spec.rb +58 -0
- data/spec/models/update_integration_dto_spec.rb +58 -0
- data/spec/models/update_profile_dto_spec.rb +70 -0
- 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 +167 -30
- data/docs/AddAllowedTopicRequest.md +0 -18
- data/docs/InlineObject.md +0 -18
- data/docs/PublishManyRequestDto.md +0 -18
- data/docs/PublishRequestDto.md +0 -36
- data/docs/SubscribeDto.md +0 -20
- data/notifo-io-1.0.0.gem +0 -0
- data/notifo-io-1.0.0.pre.beta.gem +0 -0
- data/spec/models/add_allowed_topic_request_spec.rb +0 -34
- data/spec/models/inline_object_spec.rb +0 -34
- data/spec/models/publish_many_request_dto_spec.rb +0 -34
- data/spec/models/subscribe_dto_spec.rb +0 -40
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6bbd6b15fb206d184caa21d3bd0ca7f0cfeed06797f2d65c33b42537c6616ad4
|
4
|
+
data.tar.gz: 1092106649a1c6c2136ecd97441abd5f45b0911d885169a9a793ee78bc895c80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 112af1bfc5ee3f774a8cd308174398c6591458fe8b405c864793b1eca2a41eec5ad3d59064b34d9be431bd2834cab7f4c7b4fe4ec5bb7d6ecb3b7d9ddf1cddec
|
7
|
+
data.tar.gz: 47e52057b246f67f9469189ca8f9962999b5a925355830cc5bacb1dd0c608a32f875bff308c1d8725e652df0c1dbb173ba6bdf4bb04d68da4f56509ebfbaa801
|
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,40 +67,728 @@ 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 where the email templates belong to.
|
84
|
+
id = 'id_example' # String | The id of the integration.
|
85
|
+
|
86
|
+
|
87
|
+
begin
|
88
|
+
#Delete an app integration.
|
89
|
+
api_instance.apps_delete_integration(app_id, id)
|
90
|
+
rescue Notifo::ApiError => e
|
91
|
+
puts "Exception when calling AppsApi->apps_delete_integration: #{e}"
|
92
|
+
end
|
93
|
+
|
94
|
+
api_instance = Notifo::AppsApi.new
|
95
|
+
app_id = 'app_id_example' # String | The id of the app.
|
96
|
+
|
97
|
+
|
98
|
+
begin
|
99
|
+
#Get app by id.
|
100
|
+
result = api_instance.apps_get_app(app_id)
|
101
|
+
p result
|
102
|
+
rescue Notifo::ApiError => e
|
103
|
+
puts "Exception when calling AppsApi->apps_get_app: #{e}"
|
104
|
+
end
|
105
|
+
|
106
|
+
api_instance = Notifo::AppsApi.new
|
107
|
+
|
108
|
+
begin
|
109
|
+
#Get the user apps.
|
110
|
+
result = api_instance.apps_get_apps
|
111
|
+
p result
|
112
|
+
rescue Notifo::ApiError => e
|
113
|
+
puts "Exception when calling AppsApi->apps_get_apps: #{e}"
|
114
|
+
end
|
115
|
+
|
116
|
+
api_instance = Notifo::AppsApi.new
|
117
|
+
app_id = 'app_id_example' # String | The id of the app where the email templates belong to.
|
118
|
+
|
119
|
+
|
120
|
+
begin
|
121
|
+
#Get the app email templates.
|
122
|
+
result = api_instance.apps_get_email_templates(app_id)
|
123
|
+
p result
|
124
|
+
rescue Notifo::ApiError => e
|
125
|
+
puts "Exception when calling AppsApi->apps_get_email_templates: #{e}"
|
126
|
+
end
|
127
|
+
|
128
|
+
api_instance = Notifo::AppsApi.new
|
129
|
+
app_id = 'app_id_example' # String | The id of the app where the integrations belong to.
|
130
|
+
|
131
|
+
|
132
|
+
begin
|
133
|
+
#Get the app integrations.
|
134
|
+
result = api_instance.apps_get_integrations(app_id)
|
135
|
+
p result
|
136
|
+
rescue Notifo::ApiError => e
|
137
|
+
puts "Exception when calling AppsApi->apps_get_integrations: #{e}"
|
138
|
+
end
|
139
|
+
|
140
|
+
api_instance = Notifo::AppsApi.new
|
141
|
+
body = Notifo::UpsertAppDto.new # UpsertAppDto | The request object.
|
142
|
+
|
143
|
+
|
144
|
+
begin
|
145
|
+
#Create an app.
|
146
|
+
result = api_instance.apps_post_app(body)
|
147
|
+
p result
|
148
|
+
rescue Notifo::ApiError => e
|
149
|
+
puts "Exception when calling AppsApi->apps_post_app: #{e}"
|
150
|
+
end
|
151
|
+
|
152
|
+
api_instance = Notifo::AppsApi.new
|
153
|
+
body = Notifo::AddContributorDto.new # AddContributorDto | The request object.
|
154
|
+
app_id = 'app_id_example' # String | The id of the app.
|
155
|
+
|
156
|
+
|
157
|
+
begin
|
158
|
+
#Add an app contributor.
|
159
|
+
result = api_instance.apps_post_contributor(body, app_id)
|
160
|
+
p result
|
161
|
+
rescue Notifo::ApiError => e
|
162
|
+
puts "Exception when calling AppsApi->apps_post_contributor: #{e}"
|
163
|
+
end
|
164
|
+
|
165
|
+
api_instance = Notifo::AppsApi.new
|
166
|
+
body = Notifo::CreateEmailTemplateDto.new # CreateEmailTemplateDto | The request object.
|
167
|
+
app_id = 'app_id_example' # String | The id of the app where the email templates belong to.
|
168
|
+
|
169
|
+
|
170
|
+
begin
|
171
|
+
#Create an app email template.
|
172
|
+
result = api_instance.apps_post_email_template(body, app_id)
|
173
|
+
p result
|
174
|
+
rescue Notifo::ApiError => e
|
175
|
+
puts "Exception when calling AppsApi->apps_post_email_template: #{e}"
|
176
|
+
end
|
177
|
+
|
178
|
+
api_instance = Notifo::AppsApi.new
|
179
|
+
body = Notifo::CreateIntegrationDto.new # CreateIntegrationDto | The request object.
|
180
|
+
app_id = 'app_id_example' # String | The id of the app where the integration belong to.
|
181
|
+
|
182
|
+
|
183
|
+
begin
|
184
|
+
#Create an app integrations.
|
185
|
+
result = api_instance.apps_post_integration(body, app_id)
|
186
|
+
p result
|
187
|
+
rescue Notifo::ApiError => e
|
188
|
+
puts "Exception when calling AppsApi->apps_post_integration: #{e}"
|
189
|
+
end
|
190
|
+
|
191
|
+
api_instance = Notifo::AppsApi.new
|
192
|
+
body = Notifo::UpsertAppDto.new # UpsertAppDto | The request object.
|
193
|
+
app_id = 'app_id_example' # String | The app id to update.
|
194
|
+
|
195
|
+
|
196
|
+
begin
|
197
|
+
#Update an app.
|
198
|
+
result = api_instance.apps_put_app(body, app_id)
|
199
|
+
p result
|
200
|
+
rescue Notifo::ApiError => e
|
201
|
+
puts "Exception when calling AppsApi->apps_put_app: #{e}"
|
202
|
+
end
|
203
|
+
|
204
|
+
api_instance = Notifo::AppsApi.new
|
205
|
+
body = Notifo::EmailTemplateDto.new # EmailTemplateDto | The request object.
|
206
|
+
app_id = 'app_id_example' # String | The id of the app where the email templates belong to.
|
207
|
+
language = 'language_example' # String | The language.
|
208
|
+
|
209
|
+
|
210
|
+
begin
|
211
|
+
#Update an app email template.
|
212
|
+
api_instance.apps_put_email_template(body, app_id, language)
|
213
|
+
rescue Notifo::ApiError => e
|
214
|
+
puts "Exception when calling AppsApi->apps_put_email_template: #{e}"
|
215
|
+
end
|
216
|
+
|
217
|
+
api_instance = Notifo::AppsApi.new
|
218
|
+
body = Notifo::UpdateIntegrationDto.new # UpdateIntegrationDto | The request object.
|
219
|
+
app_id = 'app_id_example' # String | The id of the app where the integration belong to.
|
220
|
+
id = 'id_example' # String | The id of the integration.
|
221
|
+
|
222
|
+
|
223
|
+
begin
|
224
|
+
#Update an app integration.
|
225
|
+
api_instance.apps_put_integration(body, app_id, id)
|
226
|
+
rescue Notifo::ApiError => e
|
227
|
+
puts "Exception when calling AppsApi->apps_put_integration: #{e}"
|
228
|
+
end
|
229
|
+
|
230
|
+
api_instance = Notifo::AuthorizationApi.new
|
231
|
+
|
232
|
+
begin
|
233
|
+
api_instance.authorization_authorize
|
234
|
+
rescue Notifo::ApiError => e
|
235
|
+
puts "Exception when calling AuthorizationApi->authorization_authorize: #{e}"
|
236
|
+
end
|
237
|
+
|
238
|
+
api_instance = Notifo::AuthorizationApi.new
|
239
|
+
|
240
|
+
begin
|
241
|
+
api_instance.authorization_exchange
|
242
|
+
rescue Notifo::ApiError => e
|
243
|
+
puts "Exception when calling AuthorizationApi->authorization_exchange: #{e}"
|
244
|
+
end
|
245
|
+
|
246
|
+
api_instance = Notifo::AuthorizationApi.new
|
247
|
+
|
248
|
+
begin
|
249
|
+
api_instance.authorization_logout
|
250
|
+
rescue Notifo::ApiError => e
|
251
|
+
puts "Exception when calling AuthorizationApi->authorization_logout: #{e}"
|
252
|
+
end
|
253
|
+
|
254
|
+
api_instance = Notifo::ConfigsApi.new
|
255
|
+
|
256
|
+
begin
|
257
|
+
#Get all supported languages.
|
258
|
+
result = api_instance.configs_get_languages
|
259
|
+
p result
|
260
|
+
rescue Notifo::ApiError => e
|
261
|
+
puts "Exception when calling ConfigsApi->configs_get_languages: #{e}"
|
262
|
+
end
|
263
|
+
|
264
|
+
api_instance = Notifo::ConfigsApi.new
|
265
|
+
|
266
|
+
begin
|
267
|
+
#Get all supported timezones.
|
268
|
+
result = api_instance.configs_get_timezones
|
269
|
+
p result
|
270
|
+
rescue Notifo::ApiError => e
|
271
|
+
puts "Exception when calling ConfigsApi->configs_get_timezones: #{e}"
|
272
|
+
end
|
273
|
+
|
274
|
+
api_instance = Notifo::EventsApi.new
|
275
|
+
app_id = 'app_id_example' # String | The app where the events belongs to.
|
276
|
+
opts = {
|
277
|
+
query: 'query_example', # String | The optional query to search for items.
|
278
|
+
take: 56, # Integer | The number of items to return.
|
279
|
+
skip: 56 # Integer | The number of items to skip.
|
280
|
+
}
|
281
|
+
|
282
|
+
begin
|
283
|
+
#Query events.
|
284
|
+
result = api_instance.events_get_events(app_id, opts)
|
285
|
+
p result
|
286
|
+
rescue Notifo::ApiError => e
|
287
|
+
puts "Exception when calling EventsApi->events_get_events: #{e}"
|
288
|
+
end
|
289
|
+
|
290
|
+
api_instance = Notifo::EventsApi.new
|
291
|
+
body = Notifo::PublishManyDto.new # PublishManyDto | The publish request.
|
292
|
+
app_id = 'app_id_example' # String | The app where the events belongs to.
|
293
|
+
|
294
|
+
|
295
|
+
begin
|
296
|
+
#Publish events.
|
297
|
+
api_instance.events_post_events(body, app_id)
|
298
|
+
rescue Notifo::ApiError => e
|
299
|
+
puts "Exception when calling EventsApi->events_post_events: #{e}"
|
300
|
+
end
|
301
|
+
|
302
|
+
api_instance = Notifo::EventsApi.new
|
303
|
+
body = Notifo::PublishDto.new # PublishDto | The publish request.
|
304
|
+
|
305
|
+
|
306
|
+
begin
|
307
|
+
#Publish an event for the current user.
|
308
|
+
api_instance.events_post_events2(body)
|
309
|
+
rescue Notifo::ApiError => e
|
310
|
+
puts "Exception when calling EventsApi->events_post_events2: #{e}"
|
311
|
+
end
|
312
|
+
|
313
|
+
api_instance = Notifo::LogsApi.new
|
314
|
+
app_id = 'app_id_example' # String | The app where the log entries belongs to.
|
315
|
+
opts = {
|
316
|
+
query: 'query_example', # String | The optional query to search for items.
|
317
|
+
take: 56, # Integer | The number of items to return.
|
318
|
+
skip: 56 # Integer | The number of items to skip.
|
319
|
+
}
|
320
|
+
|
321
|
+
begin
|
322
|
+
#Query log entries.
|
323
|
+
result = api_instance.logs_get_logs(app_id, opts)
|
324
|
+
p result
|
325
|
+
rescue Notifo::ApiError => e
|
326
|
+
puts "Exception when calling LogsApi->logs_get_logs: #{e}"
|
327
|
+
end
|
328
|
+
|
329
|
+
api_instance = Notifo::MediaApi.new
|
330
|
+
app_id = 'app_id_example' # String | The app id where the media belongs to.
|
331
|
+
file_name = 'file_name_example' # String | The file name of the media.
|
332
|
+
|
333
|
+
|
334
|
+
begin
|
335
|
+
#Delete a media.
|
336
|
+
api_instance.media_delete(app_id, file_name)
|
337
|
+
rescue Notifo::ApiError => e
|
338
|
+
puts "Exception when calling MediaApi->media_delete: #{e}"
|
339
|
+
end
|
340
|
+
|
341
|
+
api_instance = Notifo::MediaApi.new
|
342
|
+
app_id = 'app_id_example' # String | The app id where the media belongs to.
|
343
|
+
file_name = 'file_name_example' # String | The name of the media to download.
|
344
|
+
opts = {
|
345
|
+
cache: 789, # Integer | The cache duration.
|
346
|
+
download: 56, # Integer | Set it to 1 to create a download response.
|
347
|
+
width: 56, # Integer | The target width when an image.
|
348
|
+
height: 56, # Integer | The target height when an image.
|
349
|
+
quality: 56, # Integer | The target quality when an image.
|
350
|
+
preset: 'preset_example', # String | A preset dimension.
|
351
|
+
mode: Notifo::ResizeMode.new, # ResizeMode | The resize mode.
|
352
|
+
focus_x: 3.4, # Float | The x position of the focues point.
|
353
|
+
focus_y: 3.4, # Float | The y position of the focues point.
|
354
|
+
force: true # BOOLEAN | True to resize it and clear the cache.
|
355
|
+
}
|
356
|
+
|
357
|
+
begin
|
358
|
+
#Download a media object.
|
359
|
+
result = api_instance.media_download(app_id, file_name, opts)
|
360
|
+
p result
|
361
|
+
rescue Notifo::ApiError => e
|
362
|
+
puts "Exception when calling MediaApi->media_download: #{e}"
|
363
|
+
end
|
364
|
+
|
365
|
+
api_instance = Notifo::MediaApi.new
|
366
|
+
app_id = 'app_id_example' # String | The app id where the media belongs to.
|
367
|
+
file_name = 'file_name_example' # String | The name of the media to download.
|
368
|
+
opts = {
|
369
|
+
cache: 789, # Integer | The cache duration.
|
370
|
+
download: 56, # Integer | Set it to 1 to create a download response.
|
371
|
+
width: 56, # Integer | The target width when an image.
|
372
|
+
height: 56, # Integer | The target height when an image.
|
373
|
+
quality: 56, # Integer | The target quality when an image.
|
374
|
+
preset: 'preset_example', # String | A preset dimension.
|
375
|
+
mode: Notifo::ResizeMode.new, # ResizeMode | The resize mode.
|
376
|
+
focus_x: 3.4, # Float | The x position of the focues point.
|
377
|
+
focus_y: 3.4, # Float | The y position of the focues point.
|
378
|
+
force: true # BOOLEAN | True to resize it and clear the cache.
|
379
|
+
}
|
380
|
+
|
381
|
+
begin
|
382
|
+
#Download a media object.
|
383
|
+
result = api_instance.media_download2(app_id, file_name, opts)
|
384
|
+
p result
|
385
|
+
rescue Notifo::ApiError => e
|
386
|
+
puts "Exception when calling MediaApi->media_download2: #{e}"
|
387
|
+
end
|
388
|
+
|
389
|
+
api_instance = Notifo::MediaApi.new
|
390
|
+
app_id = 'app_id_example' # String | The app where the media belongs to.
|
391
|
+
opts = {
|
392
|
+
query: 'query_example', # String | The optional query to search for items.
|
393
|
+
take: 56, # Integer | The number of items to return.
|
394
|
+
skip: 56 # Integer | The number of items to skip.
|
395
|
+
}
|
396
|
+
|
397
|
+
begin
|
398
|
+
#Query media items.
|
399
|
+
result = api_instance.media_get_medias(app_id, opts)
|
400
|
+
p result
|
401
|
+
rescue Notifo::ApiError => e
|
402
|
+
puts "Exception when calling MediaApi->media_get_medias: #{e}"
|
403
|
+
end
|
404
|
+
|
405
|
+
api_instance = Notifo::MediaApi.new
|
406
|
+
app_id = 'app_id_example' # String | The app id where the media belongs to.
|
407
|
+
opts = {
|
408
|
+
file: 'file_example' # String |
|
409
|
+
}
|
410
|
+
|
411
|
+
begin
|
412
|
+
#Upload a media object.
|
413
|
+
api_instance.media_upload(app_id, opts)
|
414
|
+
rescue Notifo::ApiError => e
|
415
|
+
puts "Exception when calling MediaApi->media_upload: #{e}"
|
416
|
+
end
|
417
|
+
|
418
|
+
api_instance = Notifo::MobilePushApi.new
|
419
|
+
token = 'token_example' # String | The token to remove.
|
420
|
+
|
421
|
+
|
422
|
+
begin
|
423
|
+
#Deletes a mobile push token for the current user.
|
424
|
+
api_instance.mobile_push_delete_token(token)
|
425
|
+
rescue Notifo::ApiError => e
|
426
|
+
puts "Exception when calling MobilePushApi->mobile_push_delete_token: #{e}"
|
427
|
+
end
|
428
|
+
|
429
|
+
api_instance = Notifo::MobilePushApi.new
|
430
|
+
|
431
|
+
begin
|
432
|
+
#Returns the mobile push tokens.
|
433
|
+
result = api_instance.mobile_push_get_tokens
|
434
|
+
p result
|
435
|
+
rescue Notifo::ApiError => e
|
436
|
+
puts "Exception when calling MobilePushApi->mobile_push_get_tokens: #{e}"
|
437
|
+
end
|
438
|
+
|
439
|
+
api_instance = Notifo::MobilePushApi.new
|
440
|
+
body = Notifo::RegisterMobileTokenDto.new # RegisterMobileTokenDto | The request object.
|
441
|
+
|
442
|
+
|
443
|
+
begin
|
444
|
+
#Register a mobile push token for the current user.
|
445
|
+
api_instance.mobile_push_post_token(body)
|
446
|
+
rescue Notifo::ApiError => e
|
447
|
+
puts "Exception when calling MobilePushApi->mobile_push_post_token: #{e}"
|
448
|
+
end
|
449
|
+
|
450
|
+
api_instance = Notifo::NotificationsApi.new
|
451
|
+
body = Notifo::TrackNotificationDto.new # TrackNotificationDto | The request object.
|
452
|
+
|
453
|
+
|
454
|
+
begin
|
455
|
+
#Confirms the user notifications for the current user.
|
456
|
+
api_instance.notifications_confirm(body)
|
457
|
+
rescue Notifo::ApiError => e
|
458
|
+
puts "Exception when calling NotificationsApi->notifications_confirm: #{e}"
|
459
|
+
end
|
460
|
+
|
461
|
+
api_instance = Notifo::NotificationsApi.new
|
462
|
+
|
463
|
+
begin
|
464
|
+
#Query archhived user notifications of the current user.
|
465
|
+
result = api_instance.notifications_get_archive
|
466
|
+
p result
|
467
|
+
rescue Notifo::ApiError => e
|
468
|
+
puts "Exception when calling NotificationsApi->notifications_get_archive: #{e}"
|
469
|
+
end
|
470
|
+
|
471
|
+
api_instance = Notifo::NotificationsApi.new
|
472
|
+
opts = {
|
473
|
+
query: 'query_example', # String | The optional query to search for items.
|
474
|
+
take: 56, # Integer | The number of items to return.
|
475
|
+
skip: 56 # Integer | The number of items to skip.
|
476
|
+
}
|
477
|
+
|
478
|
+
begin
|
479
|
+
#Query user notifications of the current user.
|
480
|
+
result = api_instance.notifications_get_notifications(opts)
|
481
|
+
p result
|
482
|
+
rescue Notifo::ApiError => e
|
483
|
+
puts "Exception when calling NotificationsApi->notifications_get_notifications: #{e}"
|
484
|
+
end
|
485
|
+
|
486
|
+
api_instance = Notifo::TemplatesApi.new
|
487
|
+
app_id = 'app_id_example' # String | The app where the templates belong to.
|
488
|
+
code = 'code_example' # String | The template code to delete.
|
489
|
+
|
490
|
+
|
491
|
+
begin
|
492
|
+
#Delete a template.
|
493
|
+
result = api_instance.templates_delete_template(app_id, code)
|
494
|
+
p result
|
495
|
+
rescue Notifo::ApiError => e
|
496
|
+
puts "Exception when calling TemplatesApi->templates_delete_template: #{e}"
|
497
|
+
end
|
498
|
+
|
499
|
+
api_instance = Notifo::TemplatesApi.new
|
500
|
+
app_id = 'app_id_example' # String | The app where the templates belongs to.
|
501
|
+
opts = {
|
502
|
+
query: 'query_example', # String | The optional query to search for items.
|
503
|
+
take: 56, # Integer | The number of items to return.
|
504
|
+
skip: 56 # Integer | The number of items to skip.
|
505
|
+
}
|
506
|
+
|
507
|
+
begin
|
508
|
+
#Query templates.
|
509
|
+
result = api_instance.templates_get_templates(app_id, opts)
|
510
|
+
p result
|
511
|
+
rescue Notifo::ApiError => e
|
512
|
+
puts "Exception when calling TemplatesApi->templates_get_templates: #{e}"
|
513
|
+
end
|
514
|
+
|
515
|
+
api_instance = Notifo::TemplatesApi.new
|
516
|
+
body = Notifo::UpsertTemplatesDto.new # UpsertTemplatesDto | The upsert request.
|
517
|
+
app_id = 'app_id_example' # String | The app where the templates belong to.
|
518
|
+
|
519
|
+
|
520
|
+
begin
|
521
|
+
#Upsert templates.
|
522
|
+
result = api_instance.templates_post_templates(body, app_id)
|
523
|
+
p result
|
524
|
+
rescue Notifo::ApiError => e
|
525
|
+
puts "Exception when calling TemplatesApi->templates_post_templates: #{e}"
|
526
|
+
end
|
527
|
+
|
528
|
+
api_instance = Notifo::TopicsApi.new
|
529
|
+
app_id = 'app_id_example' # String | The app where the topics belongs to.
|
530
|
+
opts = {
|
531
|
+
query: 'query_example', # String | The optional query to search for items.
|
532
|
+
take: 56, # Integer | The number of items to return.
|
533
|
+
skip: 56 # Integer | The number of items to skip.
|
534
|
+
}
|
535
|
+
|
536
|
+
begin
|
537
|
+
#Query topics.
|
538
|
+
result = api_instance.topics_get_topics(app_id, opts)
|
539
|
+
p result
|
540
|
+
rescue Notifo::ApiError => e
|
541
|
+
puts "Exception when calling TopicsApi->topics_get_topics: #{e}"
|
542
|
+
end
|
543
|
+
|
544
|
+
api_instance = Notifo::UserApi.new
|
545
|
+
topic = 'topic_example' # String | The topic path.
|
546
|
+
|
547
|
+
|
548
|
+
begin
|
549
|
+
#Deletes a user subscription.
|
550
|
+
api_instance.user_delete_subscription(topic)
|
551
|
+
rescue Notifo::ApiError => e
|
552
|
+
puts "Exception when calling UserApi->user_delete_subscription: #{e}"
|
553
|
+
end
|
554
|
+
|
555
|
+
api_instance = Notifo::UserApi.new
|
556
|
+
topic = 'topic_example' # String | The topic path.
|
557
|
+
|
558
|
+
|
559
|
+
begin
|
560
|
+
#Gets a user subscription.
|
561
|
+
result = api_instance.user_get_subscription(topic)
|
562
|
+
p result
|
563
|
+
rescue Notifo::ApiError => e
|
564
|
+
puts "Exception when calling UserApi->user_get_subscription: #{e}"
|
565
|
+
end
|
566
|
+
|
567
|
+
api_instance = Notifo::UserApi.new
|
568
|
+
|
569
|
+
begin
|
570
|
+
#Get the current user.
|
571
|
+
result = api_instance.user_get_user
|
572
|
+
p result
|
573
|
+
rescue Notifo::ApiError => e
|
574
|
+
puts "Exception when calling UserApi->user_get_user: #{e}"
|
575
|
+
end
|
576
|
+
|
577
|
+
api_instance = Notifo::UserApi.new
|
578
|
+
body = Notifo::SubscriptionDto.new # SubscriptionDto | The subscription settings.
|
579
|
+
|
580
|
+
|
581
|
+
begin
|
582
|
+
#Creates a user subscription.
|
583
|
+
api_instance.user_post_subscription(body)
|
584
|
+
rescue Notifo::ApiError => e
|
585
|
+
puts "Exception when calling UserApi->user_post_subscription: #{e}"
|
586
|
+
end
|
587
|
+
|
588
|
+
api_instance = Notifo::UserApi.new
|
589
|
+
body = Notifo::UpdateProfileDto.new # UpdateProfileDto | The upsert request.
|
590
|
+
|
591
|
+
|
592
|
+
begin
|
593
|
+
#Update the user.
|
594
|
+
result = api_instance.user_post_user(body)
|
595
|
+
p result
|
596
|
+
rescue Notifo::ApiError => e
|
597
|
+
puts "Exception when calling UserApi->user_post_user: #{e}"
|
598
|
+
end
|
599
|
+
|
600
|
+
api_instance = Notifo::UserInfoApi.new
|
601
|
+
|
602
|
+
begin
|
603
|
+
api_instance.user_info_userinfo
|
604
|
+
rescue Notifo::ApiError => e
|
605
|
+
puts "Exception when calling UserInfoApi->user_info_userinfo: #{e}"
|
606
|
+
end
|
607
|
+
|
608
|
+
api_instance = Notifo::UserInfoApi.new
|
609
|
+
|
610
|
+
begin
|
611
|
+
api_instance.user_info_userinfo2
|
612
|
+
rescue Notifo::ApiError => e
|
613
|
+
puts "Exception when calling UserInfoApi->user_info_userinfo2: #{e}"
|
614
|
+
end
|
615
|
+
|
616
|
+
api_instance = Notifo::UsersApi.new
|
617
|
+
app_id = 'app_id_example' # String | The app where the users belong to.
|
618
|
+
id = 'id_example' # String | The user id.
|
619
|
+
prefix = 'prefix_example' # String | The topic prefix.
|
620
|
+
|
621
|
+
|
622
|
+
begin
|
623
|
+
#Remove an allowed topic.
|
624
|
+
api_instance.users_delete_allowed_topic(app_id, id, prefix)
|
625
|
+
rescue Notifo::ApiError => e
|
626
|
+
puts "Exception when calling UsersApi->users_delete_allowed_topic: #{e}"
|
627
|
+
end
|
628
|
+
|
629
|
+
api_instance = Notifo::UsersApi.new
|
630
|
+
app_id = 'app_id_example' # String | The app where the user belongs to.
|
631
|
+
id = 'id_example' # String | The user id.
|
632
|
+
prefix = 'prefix_example' # String | The topic prefix.
|
633
|
+
|
634
|
+
|
635
|
+
begin
|
636
|
+
#Remove a user subscriptions.
|
637
|
+
api_instance.users_delete_subscription(app_id, id, prefix)
|
638
|
+
rescue Notifo::ApiError => e
|
639
|
+
puts "Exception when calling UsersApi->users_delete_subscription: #{e}"
|
640
|
+
end
|
641
|
+
|
642
|
+
api_instance = Notifo::UsersApi.new
|
643
|
+
app_id = 'app_id_example' # String | The app where the users belongs to.
|
644
|
+
id = 'id_example' # String | The user id to delete.
|
645
|
+
|
646
|
+
|
647
|
+
begin
|
648
|
+
#Delete a user.
|
649
|
+
result = api_instance.users_delete_user(app_id, id)
|
650
|
+
p result
|
651
|
+
rescue Notifo::ApiError => e
|
652
|
+
puts "Exception when calling UsersApi->users_delete_user: #{e}"
|
653
|
+
end
|
654
|
+
|
655
|
+
api_instance = Notifo::UsersApi.new
|
656
|
+
app_id = 'app_id_example' # String | The app where the user belongs to.
|
657
|
+
id = 'id_example' # String | The user id.
|
658
|
+
opts = {
|
659
|
+
query: 'query_example', # String | The optional query to search for items.
|
660
|
+
take: 56, # Integer | The number of items to return.
|
661
|
+
skip: 56 # Integer | The number of items to skip.
|
662
|
+
}
|
663
|
+
|
664
|
+
begin
|
665
|
+
#Query user subscriptions.
|
666
|
+
result = api_instance.users_get_subscriptions(app_id, id, opts)
|
667
|
+
p result
|
668
|
+
rescue Notifo::ApiError => e
|
669
|
+
puts "Exception when calling UsersApi->users_get_subscriptions: #{e}"
|
670
|
+
end
|
671
|
+
|
672
|
+
api_instance = Notifo::UsersApi.new
|
673
|
+
app_id = 'app_id_example' # String | The app where the user belongs to.
|
674
|
+
id = 'id_example' # String | The user id.
|
675
|
+
|
676
|
+
|
677
|
+
begin
|
678
|
+
#Get a user.
|
679
|
+
result = api_instance.users_get_user(app_id, id)
|
680
|
+
p result
|
681
|
+
rescue Notifo::ApiError => e
|
682
|
+
puts "Exception when calling UsersApi->users_get_user: #{e}"
|
683
|
+
end
|
684
|
+
|
685
|
+
api_instance = Notifo::UsersApi.new
|
686
|
+
app_id = 'app_id_example' # String | The app where the users belongs to.
|
687
|
+
opts = {
|
688
|
+
query: 'query_example', # String | The optional query to search for items.
|
689
|
+
take: 56, # Integer | The number of items to return.
|
690
|
+
skip: 56 # Integer | The number of items to skip.
|
691
|
+
}
|
692
|
+
|
693
|
+
begin
|
694
|
+
#Query users.
|
695
|
+
result = api_instance.users_get_users(app_id, opts)
|
696
|
+
p result
|
697
|
+
rescue Notifo::ApiError => e
|
698
|
+
puts "Exception when calling UsersApi->users_get_users: #{e}"
|
699
|
+
end
|
700
|
+
|
701
|
+
api_instance = Notifo::UsersApi.new
|
702
|
+
body = Notifo::AddAllowedTopicDto.new # AddAllowedTopicDto | The upsert request.
|
703
|
+
app_id = 'app_id_example' # String | The app where the users belong to.
|
704
|
+
id = 'id_example' # String | The user id.
|
705
|
+
|
706
|
+
|
707
|
+
begin
|
708
|
+
#Add an allowed topic.
|
709
|
+
api_instance.users_post_allowed_topic(body, app_id, id)
|
710
|
+
rescue Notifo::ApiError => e
|
711
|
+
puts "Exception when calling UsersApi->users_post_allowed_topic: #{e}"
|
712
|
+
end
|
713
|
+
|
714
|
+
api_instance = Notifo::UsersApi.new
|
715
|
+
body = Notifo::SubscriptionDto.new # SubscriptionDto | The subscription object.
|
716
|
+
app_id = 'app_id_example' # String | The app where the user belongs to.
|
717
|
+
id = 'id_example' # String | The user id.
|
718
|
+
|
719
|
+
|
720
|
+
begin
|
721
|
+
#Upsert a user subscriptions.
|
722
|
+
api_instance.users_post_subscription(body, app_id, id)
|
723
|
+
rescue Notifo::ApiError => e
|
724
|
+
puts "Exception when calling UsersApi->users_post_subscription: #{e}"
|
725
|
+
end
|
726
|
+
|
727
|
+
api_instance = Notifo::UsersApi.new
|
728
|
+
body = Notifo::UpsertUsersDto.new # UpsertUsersDto | The upsert request.
|
729
|
+
app_id = 'app_id_example' # String | The app where the users belong to.
|
730
|
+
|
731
|
+
|
732
|
+
begin
|
733
|
+
#Upsert users.
|
734
|
+
result = api_instance.users_post_users(body, app_id)
|
735
|
+
p result
|
736
|
+
rescue Notifo::ApiError => e
|
737
|
+
puts "Exception when calling UsersApi->users_post_users: #{e}"
|
738
|
+
end
|
71
739
|
```
|
72
740
|
|
73
741
|
## Documentation for API Endpoints
|
74
742
|
|
75
|
-
All URIs are relative to *https://
|
743
|
+
All URIs are relative to *https://notifo.easierlife.com*
|
76
744
|
|
77
745
|
Class | Method | HTTP request | Description
|
78
746
|
------------ | ------------- | ------------- | -------------
|
79
747
|
*Notifo::AppsApi* | [**apps_delete_contributor**](docs/AppsApi.md#apps_delete_contributor) | **POST** /api/apps/{appId}/contributors/{contributorId} | Delete an app contributor.
|
80
|
-
*Notifo::AppsApi* | [**apps_delete_email_template**](docs/AppsApi.md#apps_delete_email_template) | **
|
748
|
+
*Notifo::AppsApi* | [**apps_delete_email_template**](docs/AppsApi.md#apps_delete_email_template) | **DELETE** /api/apps/{appId}/email-templates/{language} | Delete an app email template.
|
749
|
+
*Notifo::AppsApi* | [**apps_delete_integration**](docs/AppsApi.md#apps_delete_integration) | **DELETE** /api/apps/{appId}/integrations/{id} | Delete an app integration.
|
81
750
|
*Notifo::AppsApi* | [**apps_get_app**](docs/AppsApi.md#apps_get_app) | **GET** /api/apps/{appId} | Get app by id.
|
82
751
|
*Notifo::AppsApi* | [**apps_get_apps**](docs/AppsApi.md#apps_get_apps) | **GET** /api/apps | Get the user apps.
|
83
752
|
*Notifo::AppsApi* | [**apps_get_email_templates**](docs/AppsApi.md#apps_get_email_templates) | **GET** /api/apps/{appId}/email-templates | Get the app email templates.
|
753
|
+
*Notifo::AppsApi* | [**apps_get_integrations**](docs/AppsApi.md#apps_get_integrations) | **GET** /api/apps/{appId}/integrations | Get the app integrations.
|
84
754
|
*Notifo::AppsApi* | [**apps_post_app**](docs/AppsApi.md#apps_post_app) | **POST** /api/apps | Create an app.
|
85
755
|
*Notifo::AppsApi* | [**apps_post_contributor**](docs/AppsApi.md#apps_post_contributor) | **POST** /api/apps/{appId}/contributors | Add an app contributor.
|
86
756
|
*Notifo::AppsApi* | [**apps_post_email_template**](docs/AppsApi.md#apps_post_email_template) | **POST** /api/apps/{appId}/email-templates | Create an app email template.
|
757
|
+
*Notifo::AppsApi* | [**apps_post_integration**](docs/AppsApi.md#apps_post_integration) | **POST** /api/apps/{appId}/integration | Create an app integrations.
|
87
758
|
*Notifo::AppsApi* | [**apps_put_app**](docs/AppsApi.md#apps_put_app) | **POST** /api/apps/{appId} | Update an app.
|
88
759
|
*Notifo::AppsApi* | [**apps_put_email_template**](docs/AppsApi.md#apps_put_email_template) | **PUT** /api/apps/{appId}/email-templates/{language} | Update an app email template.
|
760
|
+
*Notifo::AppsApi* | [**apps_put_integration**](docs/AppsApi.md#apps_put_integration) | **PUT** /api/apps/{appId}/integrations/{id} | Update an app integration.
|
761
|
+
*Notifo::AuthorizationApi* | [**authorization_authorize**](docs/AuthorizationApi.md#authorization_authorize) | **GET** /connect/authorize |
|
762
|
+
*Notifo::AuthorizationApi* | [**authorization_exchange**](docs/AuthorizationApi.md#authorization_exchange) | **POST** /connect/token |
|
763
|
+
*Notifo::AuthorizationApi* | [**authorization_logout**](docs/AuthorizationApi.md#authorization_logout) | **GET** /connect/logout |
|
89
764
|
*Notifo::ConfigsApi* | [**configs_get_languages**](docs/ConfigsApi.md#configs_get_languages) | **GET** /api/languages | Get all supported languages.
|
90
765
|
*Notifo::ConfigsApi* | [**configs_get_timezones**](docs/ConfigsApi.md#configs_get_timezones) | **GET** /api/timezones | Get all supported timezones.
|
91
766
|
*Notifo::EventsApi* | [**events_get_events**](docs/EventsApi.md#events_get_events) | **GET** /api/apps/{appId}/events | Query events.
|
92
767
|
*Notifo::EventsApi* | [**events_post_events**](docs/EventsApi.md#events_post_events) | **POST** /api/apps/{appId}/events | Publish events.
|
768
|
+
*Notifo::EventsApi* | [**events_post_events2**](docs/EventsApi.md#events_post_events2) | **POST** /api/me/events | Publish an event for the current user.
|
93
769
|
*Notifo::LogsApi* | [**logs_get_logs**](docs/LogsApi.md#logs_get_logs) | **GET** /api/apps/{appId}/logs | Query log entries.
|
94
770
|
*Notifo::MediaApi* | [**media_delete**](docs/MediaApi.md#media_delete) | **DELETE** /api/apps/{appId}/media/{fileName} | Delete a media.
|
95
|
-
*Notifo::MediaApi* | [**media_download**](docs/MediaApi.md#media_download) | **GET** /api/
|
771
|
+
*Notifo::MediaApi* | [**media_download**](docs/MediaApi.md#media_download) | **GET** /api/apps/{appId}/media/{fileName} | Download a media object.
|
772
|
+
*Notifo::MediaApi* | [**media_download2**](docs/MediaApi.md#media_download2) | **GET** /api/assets/{appId}/{fileName} | Download a media object.
|
96
773
|
*Notifo::MediaApi* | [**media_get_medias**](docs/MediaApi.md#media_get_medias) | **GET** /api/apps/{appId}/media | Query media items.
|
97
774
|
*Notifo::MediaApi* | [**media_upload**](docs/MediaApi.md#media_upload) | **POST** /api/apps/{appId}/media | Upload a media object.
|
775
|
+
*Notifo::MobilePushApi* | [**mobile_push_delete_token**](docs/MobilePushApi.md#mobile_push_delete_token) | **DELETE** /api/me/mobilepush/{token} | Deletes a mobile push token for the current user.
|
776
|
+
*Notifo::MobilePushApi* | [**mobile_push_get_tokens**](docs/MobilePushApi.md#mobile_push_get_tokens) | **GET** /api/me/mobilepush | Returns the mobile push tokens.
|
777
|
+
*Notifo::MobilePushApi* | [**mobile_push_post_token**](docs/MobilePushApi.md#mobile_push_post_token) | **POST** /api/me/mobilepush | Register a mobile push token for the current user.
|
778
|
+
*Notifo::NotificationsApi* | [**notifications_confirm**](docs/NotificationsApi.md#notifications_confirm) | **POST** /api/me/notifications/handled | Confirms the user notifications for the current user.
|
779
|
+
*Notifo::NotificationsApi* | [**notifications_get_archive**](docs/NotificationsApi.md#notifications_get_archive) | **GET** /api/me/notifications/archive | Query archhived user notifications of the current user.
|
780
|
+
*Notifo::NotificationsApi* | [**notifications_get_notifications**](docs/NotificationsApi.md#notifications_get_notifications) | **GET** /api/me/notifications | Query user notifications of the current user.
|
98
781
|
*Notifo::TemplatesApi* | [**templates_delete_template**](docs/TemplatesApi.md#templates_delete_template) | **DELETE** /api/apps/{appId}/templates/{code} | Delete a template.
|
99
782
|
*Notifo::TemplatesApi* | [**templates_get_templates**](docs/TemplatesApi.md#templates_get_templates) | **GET** /api/apps/{appId}/templates | Query templates.
|
100
783
|
*Notifo::TemplatesApi* | [**templates_post_templates**](docs/TemplatesApi.md#templates_post_templates) | **POST** /api/apps/{appId}/templates | Upsert templates.
|
101
|
-
*Notifo::TopicsApi* | [**topics_get_subscription**](docs/TopicsApi.md#topics_get_subscription) | **GET** /api/web/subscriptions/{topic} | Gets a user subscription.
|
102
784
|
*Notifo::TopicsApi* | [**topics_get_topics**](docs/TopicsApi.md#topics_get_topics) | **GET** /api/apps/{appId}/topics | Query topics.
|
103
|
-
*Notifo::
|
104
|
-
*Notifo::
|
785
|
+
*Notifo::UserApi* | [**user_delete_subscription**](docs/UserApi.md#user_delete_subscription) | **DELETE** /api/me/subscriptions/{topic} | Deletes a user subscription.
|
786
|
+
*Notifo::UserApi* | [**user_get_subscription**](docs/UserApi.md#user_get_subscription) | **GET** /api/me/subscriptions/{topic} | Gets a user subscription.
|
787
|
+
*Notifo::UserApi* | [**user_get_user**](docs/UserApi.md#user_get_user) | **GET** /api/me | Get the current user.
|
788
|
+
*Notifo::UserApi* | [**user_post_subscription**](docs/UserApi.md#user_post_subscription) | **POST** /api/me/subscriptions | Creates a user subscription.
|
789
|
+
*Notifo::UserApi* | [**user_post_user**](docs/UserApi.md#user_post_user) | **POST** /api/me | Update the user.
|
790
|
+
*Notifo::UserInfoApi* | [**user_info_userinfo**](docs/UserInfoApi.md#user_info_userinfo) | **GET** /connect/userinfo |
|
791
|
+
*Notifo::UserInfoApi* | [**user_info_userinfo2**](docs/UserInfoApi.md#user_info_userinfo2) | **POST** /connect/userinfo |
|
105
792
|
*Notifo::UsersApi* | [**users_delete_allowed_topic**](docs/UsersApi.md#users_delete_allowed_topic) | **DELETE** /api/apps/{appId}/users/{id}/allowed-topics/{prefix} | Remove an allowed topic.
|
106
793
|
*Notifo::UsersApi* | [**users_delete_subscription**](docs/UsersApi.md#users_delete_subscription) | **DELETE** /api/apps/{appId}/users/{id}/subscriptions/{prefix} | Remove a user subscriptions.
|
107
794
|
*Notifo::UsersApi* | [**users_delete_user**](docs/UsersApi.md#users_delete_user) | **DELETE** /api/apps/{appId}/users/{id} | Delete a user.
|
@@ -112,43 +799,64 @@ Class | Method | HTTP request | Description
|
|
112
799
|
*Notifo::UsersApi* | [**users_post_subscription**](docs/UsersApi.md#users_post_subscription) | **POST** /api/apps/{appId}/users/{id}/subscriptions | Upsert a user subscriptions.
|
113
800
|
*Notifo::UsersApi* | [**users_post_users**](docs/UsersApi.md#users_post_users) | **POST** /api/apps/{appId}/users | Upsert users.
|
114
801
|
|
115
|
-
|
116
802
|
## Documentation for Models
|
117
803
|
|
118
|
-
- [Notifo::
|
804
|
+
- [Notifo::AddAllowedTopicDto](docs/AddAllowedTopicDto.md)
|
119
805
|
- [Notifo::AddContributorDto](docs/AddContributorDto.md)
|
120
806
|
- [Notifo::AppContributorDto](docs/AppContributorDto.md)
|
121
807
|
- [Notifo::AppDetailsDto](docs/AppDetailsDto.md)
|
122
808
|
- [Notifo::AppDto](docs/AppDto.md)
|
809
|
+
- [Notifo::AppIdMediaBody](docs/AppIdMediaBody.md)
|
810
|
+
- [Notifo::ConfiguredIntegrationDto](docs/ConfiguredIntegrationDto.md)
|
811
|
+
- [Notifo::ConfiguredIntegrationsDto](docs/ConfiguredIntegrationsDto.md)
|
123
812
|
- [Notifo::ConfirmMode](docs/ConfirmMode.md)
|
124
813
|
- [Notifo::CreateEmailTemplateDto](docs/CreateEmailTemplateDto.md)
|
814
|
+
- [Notifo::CreateIntegrationDto](docs/CreateIntegrationDto.md)
|
125
815
|
- [Notifo::EmailTemplateDto](docs/EmailTemplateDto.md)
|
126
|
-
- [Notifo::
|
816
|
+
- [Notifo::EmailTemplatesDto](docs/EmailTemplatesDto.md)
|
127
817
|
- [Notifo::ErrorDto](docs/ErrorDto.md)
|
128
818
|
- [Notifo::EventDto](docs/EventDto.md)
|
129
|
-
- [Notifo::
|
819
|
+
- [Notifo::EventProperties](docs/EventProperties.md)
|
820
|
+
- [Notifo::IntegrationCreatedDto](docs/IntegrationCreatedDto.md)
|
821
|
+
- [Notifo::IntegrationDefinitionDto](docs/IntegrationDefinitionDto.md)
|
822
|
+
- [Notifo::IntegrationProperties](docs/IntegrationProperties.md)
|
823
|
+
- [Notifo::IntegrationPropertyDto](docs/IntegrationPropertyDto.md)
|
824
|
+
- [Notifo::IntegrationPropertyType](docs/IntegrationPropertyType.md)
|
825
|
+
- [Notifo::IntegrationStatus](docs/IntegrationStatus.md)
|
130
826
|
- [Notifo::IsoDayOfWeek](docs/IsoDayOfWeek.md)
|
131
827
|
- [Notifo::ListResponseDtoOfEventDto](docs/ListResponseDtoOfEventDto.md)
|
132
828
|
- [Notifo::ListResponseDtoOfLogEntryDto](docs/ListResponseDtoOfLogEntryDto.md)
|
133
829
|
- [Notifo::ListResponseDtoOfMediaDto](docs/ListResponseDtoOfMediaDto.md)
|
830
|
+
- [Notifo::ListResponseDtoOfMobilePushTokenDto](docs/ListResponseDtoOfMobilePushTokenDto.md)
|
831
|
+
- [Notifo::ListResponseDtoOfNotificationDto](docs/ListResponseDtoOfNotificationDto.md)
|
134
832
|
- [Notifo::ListResponseDtoOfSubscriptionDto](docs/ListResponseDtoOfSubscriptionDto.md)
|
135
833
|
- [Notifo::ListResponseDtoOfTemplateDto](docs/ListResponseDtoOfTemplateDto.md)
|
136
834
|
- [Notifo::ListResponseDtoOfTopicDto](docs/ListResponseDtoOfTopicDto.md)
|
137
835
|
- [Notifo::ListResponseDtoOfUserDto](docs/ListResponseDtoOfUserDto.md)
|
836
|
+
- [Notifo::LocalizedText](docs/LocalizedText.md)
|
138
837
|
- [Notifo::LogEntryDto](docs/LogEntryDto.md)
|
139
838
|
- [Notifo::MediaDto](docs/MediaDto.md)
|
839
|
+
- [Notifo::MediaMetadata](docs/MediaMetadata.md)
|
140
840
|
- [Notifo::MediaType](docs/MediaType.md)
|
841
|
+
- [Notifo::MobileDeviceType](docs/MobileDeviceType.md)
|
842
|
+
- [Notifo::MobilePushTokenDto](docs/MobilePushTokenDto.md)
|
843
|
+
- [Notifo::NotificationDto](docs/NotificationDto.md)
|
141
844
|
- [Notifo::NotificationFormattingDto](docs/NotificationFormattingDto.md)
|
845
|
+
- [Notifo::NotificationSend](docs/NotificationSend.md)
|
142
846
|
- [Notifo::NotificationSettingDto](docs/NotificationSettingDto.md)
|
143
|
-
- [Notifo::
|
144
|
-
- [Notifo::
|
847
|
+
- [Notifo::ProfileDto](docs/ProfileDto.md)
|
848
|
+
- [Notifo::PublishDto](docs/PublishDto.md)
|
849
|
+
- [Notifo::PublishManyDto](docs/PublishManyDto.md)
|
850
|
+
- [Notifo::RegisterMobileTokenDto](docs/RegisterMobileTokenDto.md)
|
145
851
|
- [Notifo::ResizeMode](docs/ResizeMode.md)
|
146
852
|
- [Notifo::SchedulingDto](docs/SchedulingDto.md)
|
147
853
|
- [Notifo::SchedulingType](docs/SchedulingType.md)
|
148
|
-
- [Notifo::SubscribeDto](docs/SubscribeDto.md)
|
149
854
|
- [Notifo::SubscriptionDto](docs/SubscriptionDto.md)
|
150
855
|
- [Notifo::TemplateDto](docs/TemplateDto.md)
|
151
856
|
- [Notifo::TopicDto](docs/TopicDto.md)
|
857
|
+
- [Notifo::TrackNotificationDto](docs/TrackNotificationDto.md)
|
858
|
+
- [Notifo::UpdateIntegrationDto](docs/UpdateIntegrationDto.md)
|
859
|
+
- [Notifo::UpdateProfileDto](docs/UpdateProfileDto.md)
|
152
860
|
- [Notifo::UpsertAppDto](docs/UpsertAppDto.md)
|
153
861
|
- [Notifo::UpsertTemplateDto](docs/UpsertTemplateDto.md)
|
154
862
|
- [Notifo::UpsertTemplatesDto](docs/UpsertTemplatesDto.md)
|
@@ -156,7 +864,6 @@ Class | Method | HTTP request | Description
|
|
156
864
|
- [Notifo::UpsertUsersDto](docs/UpsertUsersDto.md)
|
157
865
|
- [Notifo::UserDto](docs/UserDto.md)
|
158
866
|
|
159
|
-
|
160
867
|
## Documentation for Authorization
|
161
868
|
|
162
869
|
All endpoints do not require authorization.
|