notifo-io 1.0.1.1 → 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 +205 -4
- data/docs/AppDetailsDto.md +0 -8
- data/docs/AppIdMediaBody.md +7 -0
- data/docs/AppsApi.md +188 -2
- data/docs/AuthorizationApi.md +121 -0
- data/docs/ConfigsApi.md +1 -1
- data/docs/ConfiguredIntegrationDto.md +12 -0
- data/docs/ConfiguredIntegrationsDto.md +8 -0
- data/docs/CreateIntegrationDto.md +11 -0
- data/docs/EventDto.md +1 -0
- data/docs/EventsApi.md +45 -1
- 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/ListResponseDtoOfMobilePushTokenDto.md +8 -0
- data/docs/ListResponseDtoOfNotificationDto.md +8 -0
- data/docs/LogsApi.md +1 -1
- data/docs/MediaApi.md +1 -1
- 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/NotificationsApi.md +141 -0
- data/docs/PublishDto.md +2 -0
- data/docs/RegisterMobileTokenDto.md +8 -0
- data/docs/TemplatesApi.md +1 -1
- data/docs/TopicsApi.md +1 -1
- data/docs/TrackNotificationDto.md +10 -0
- data/docs/UpdateIntegrationDto.md +10 -0
- data/docs/UpsertUserDto.md +1 -0
- data/docs/UserApi.md +1 -1
- data/docs/UserDto.md +3 -0
- data/docs/UserInfoApi.md +83 -0
- data/docs/UsersApi.md +1 -1
- data/lib/notifo.rb +23 -3
- data/lib/notifo/api/apps_api.rb +246 -2
- data/lib/notifo/api/authorization_api.rb +158 -0
- data/lib/notifo/api/configs_api.rb +1 -1
- data/lib/notifo/api/events_api.rb +57 -1
- data/lib/notifo/api/logs_api.rb +1 -1
- data/lib/notifo/api/media_api.rb +1 -1
- 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 +1 -1
- data/lib/notifo/api/topics_api.rb +1 -1
- data/lib/notifo/api/user_api.rb +1 -1
- data/lib/notifo/api/user_info_api.rb +112 -0
- data/lib/notifo/api/users_api.rb +1 -1
- data/lib/notifo/api_client.rb +1 -1
- data/lib/notifo/api_error.rb +1 -1
- data/lib/notifo/configuration.rb +3 -3
- data/lib/notifo/models/add_allowed_topic_dto.rb +1 -1
- data/lib/notifo/models/add_contributor_dto.rb +1 -1
- data/lib/notifo/models/app_contributor_dto.rb +1 -1
- data/lib/notifo/models/app_details_dto.rb +3 -96
- data/lib/notifo/models/app_dto.rb +1 -1
- data/lib/notifo/models/app_id_media_body.rb +207 -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 +1 -1
- data/lib/notifo/models/create_email_template_dto.rb +1 -1
- data/lib/notifo/models/create_integration_dto.rb +257 -0
- data/lib/notifo/models/email_template_dto.rb +2 -1
- data/lib/notifo/models/email_templates_dto.rb +1 -1
- data/lib/notifo/models/error_dto.rb +5 -1
- data/lib/notifo/models/event_dto.rb +18 -5
- data/lib/notifo/models/event_properties.rb +1 -1
- data/lib/notifo/models/integration_created_dto.rb +226 -0
- 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 +1 -1
- data/lib/notifo/models/list_response_dto_of_event_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_log_entry_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_media_dto.rb +1 -1
- 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 +1 -1
- data/lib/notifo/models/list_response_dto_of_template_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_topic_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_user_dto.rb +1 -1
- data/lib/notifo/models/localized_text.rb +1 -1
- data/lib/notifo/models/log_entry_dto.rb +1 -1
- data/lib/notifo/models/media_dto.rb +1 -1
- data/lib/notifo/models/media_metadata.rb +1 -1
- data/lib/notifo/models/media_type.rb +1 -1
- 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 +1 -1
- data/lib/notifo/models/notification_send.rb +1 -1
- data/lib/notifo/models/notification_setting_dto.rb +2 -1
- data/lib/notifo/models/profile_dto.rb +4 -1
- data/lib/notifo/models/publish_dto.rb +30 -5
- data/lib/notifo/models/publish_many_dto.rb +1 -1
- data/lib/notifo/models/register_mobile_token_dto.rb +221 -0
- data/lib/notifo/models/resize_mode.rb +1 -1
- data/lib/notifo/models/scheduling_dto.rb +2 -1
- data/lib/notifo/models/scheduling_type.rb +1 -1
- data/lib/notifo/models/subscription_dto.rb +2 -1
- data/lib/notifo/models/template_dto.rb +1 -1
- data/lib/notifo/models/topic_dto.rb +1 -1
- 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 +7 -1
- data/lib/notifo/models/upsert_app_dto.rb +11 -1
- data/lib/notifo/models/upsert_template_dto.rb +2 -1
- data/lib/notifo/models/upsert_templates_dto.rb +1 -1
- data/lib/notifo/models/upsert_user_dto.rb +21 -2
- data/lib/notifo/models/upsert_users_dto.rb +1 -1
- data/lib/notifo/models/user_dto.rb +48 -2
- data/lib/notifo/version.rb +1 -1
- data/notifo-io-1.0.1.1.gem +0 -0
- data/notifo.gemspec +2 -2
- data/spec/api/authorization_api_spec.rb +61 -0
- data/spec/api/mobile_push_api_spec.rb +66 -0
- data/spec/api/notifications_api_spec.rb +68 -0
- data/spec/api/user_info_api_spec.rb +52 -0
- data/spec/models/app_id_media_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/create_integration_dto_spec.rb +64 -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/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/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/register_mobile_token_dto_spec.rb +46 -0
- data/spec/models/track_notification_dto_spec.rb +58 -0
- data/spec/models/update_integration_dto_spec.rb +58 -0
- metadata +91 -2
@@ -0,0 +1,8 @@
|
|
1
|
+
# Notifo::MobilePushTokenDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**token** | **String** | The device token. |
|
7
|
+
**device_type** | [**MobileDeviceType**](MobileDeviceType.md) | | [optional]
|
8
|
+
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# Notifo::NotificationDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**id** | **String** | The id of the notification. |
|
7
|
+
**subject** | **String** | The subject of the notification in the language of the user. |
|
8
|
+
**silent** | **BOOLEAN** | True when the notification is silent. |
|
9
|
+
**is_confirmed** | **BOOLEAN** | True when the notification has been confirmed. |
|
10
|
+
**is_seen** | **BOOLEAN** | True when the notification has been seen. |
|
11
|
+
**created** | **DateTime** | The timestamp when the notification has been created. |
|
12
|
+
**body** | **String** | The optional body text. | [optional]
|
13
|
+
**image_small** | **String** | The optional link to the small image. | [optional]
|
14
|
+
**image_large** | **String** | The optional link to the large image. | [optional]
|
15
|
+
**tracking_url** | **String** | The tracking url that needs to be invoked to mark the notifiation as seen. | [optional]
|
16
|
+
**link_url** | **String** | An optional link. | [optional]
|
17
|
+
**link_text** | **String** | The link text. | [optional]
|
18
|
+
**confirm_text** | **String** | The text for the confirm button. | [optional]
|
19
|
+
**confirm_url** | **String** | The tracking url that needs to be invoked to mark the notifiation as confirmed. | [optional]
|
20
|
+
**data** | **String** | Optional data, usually a json object. | [optional]
|
21
|
+
|
@@ -0,0 +1,141 @@
|
|
1
|
+
# Notifo::NotificationsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://notifo.easierlife.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**notifications_confirm**](NotificationsApi.md#notifications_confirm) | **POST** /api/me/notifications/handled | Confirms the user notifications for the current user.
|
8
|
+
[**notifications_get_archive**](NotificationsApi.md#notifications_get_archive) | **GET** /api/me/notifications/archive | Query archhived user notifications of the current user.
|
9
|
+
[**notifications_get_notifications**](NotificationsApi.md#notifications_get_notifications) | **GET** /api/me/notifications | Query user notifications of the current user.
|
10
|
+
|
11
|
+
# **notifications_confirm**
|
12
|
+
> notifications_confirm(body)
|
13
|
+
|
14
|
+
Confirms the user notifications for the current user.
|
15
|
+
|
16
|
+
### Example
|
17
|
+
```ruby
|
18
|
+
# load the gem
|
19
|
+
require 'notifo'
|
20
|
+
|
21
|
+
api_instance = Notifo::NotificationsApi.new
|
22
|
+
body = Notifo::TrackNotificationDto.new # TrackNotificationDto | The request object.
|
23
|
+
|
24
|
+
|
25
|
+
begin
|
26
|
+
#Confirms the user notifications for the current user.
|
27
|
+
api_instance.notifications_confirm(body)
|
28
|
+
rescue Notifo::ApiError => e
|
29
|
+
puts "Exception when calling NotificationsApi->notifications_confirm: #{e}"
|
30
|
+
end
|
31
|
+
```
|
32
|
+
|
33
|
+
### Parameters
|
34
|
+
|
35
|
+
Name | Type | Description | Notes
|
36
|
+
------------- | ------------- | ------------- | -------------
|
37
|
+
**body** | [**TrackNotificationDto**](TrackNotificationDto.md)| The request object. |
|
38
|
+
|
39
|
+
### Return type
|
40
|
+
|
41
|
+
nil (empty response body)
|
42
|
+
|
43
|
+
### Authorization
|
44
|
+
|
45
|
+
No authorization required
|
46
|
+
|
47
|
+
### HTTP request headers
|
48
|
+
|
49
|
+
- **Content-Type**: application/json
|
50
|
+
- **Accept**: application/json
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
# **notifications_get_archive**
|
55
|
+
> ListResponseDtoOfNotificationDto notifications_get_archive
|
56
|
+
|
57
|
+
Query archhived user notifications of the current user.
|
58
|
+
|
59
|
+
### Example
|
60
|
+
```ruby
|
61
|
+
# load the gem
|
62
|
+
require 'notifo'
|
63
|
+
|
64
|
+
api_instance = Notifo::NotificationsApi.new
|
65
|
+
|
66
|
+
begin
|
67
|
+
#Query archhived user notifications of the current user.
|
68
|
+
result = api_instance.notifications_get_archive
|
69
|
+
p result
|
70
|
+
rescue Notifo::ApiError => e
|
71
|
+
puts "Exception when calling NotificationsApi->notifications_get_archive: #{e}"
|
72
|
+
end
|
73
|
+
```
|
74
|
+
|
75
|
+
### Parameters
|
76
|
+
This endpoint does not need any parameter.
|
77
|
+
|
78
|
+
### Return type
|
79
|
+
|
80
|
+
[**ListResponseDtoOfNotificationDto**](ListResponseDtoOfNotificationDto.md)
|
81
|
+
|
82
|
+
### Authorization
|
83
|
+
|
84
|
+
No authorization required
|
85
|
+
|
86
|
+
### HTTP request headers
|
87
|
+
|
88
|
+
- **Content-Type**: Not defined
|
89
|
+
- **Accept**: application/json
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
# **notifications_get_notifications**
|
94
|
+
> ListResponseDtoOfNotificationDto notifications_get_notifications(opts)
|
95
|
+
|
96
|
+
Query user notifications of the current user.
|
97
|
+
|
98
|
+
### Example
|
99
|
+
```ruby
|
100
|
+
# load the gem
|
101
|
+
require 'notifo'
|
102
|
+
|
103
|
+
api_instance = Notifo::NotificationsApi.new
|
104
|
+
opts = {
|
105
|
+
query: 'query_example', # String | The optional query to search for items.
|
106
|
+
take: 56, # Integer | The number of items to return.
|
107
|
+
skip: 56 # Integer | The number of items to skip.
|
108
|
+
}
|
109
|
+
|
110
|
+
begin
|
111
|
+
#Query user notifications of the current user.
|
112
|
+
result = api_instance.notifications_get_notifications(opts)
|
113
|
+
p result
|
114
|
+
rescue Notifo::ApiError => e
|
115
|
+
puts "Exception when calling NotificationsApi->notifications_get_notifications: #{e}"
|
116
|
+
end
|
117
|
+
```
|
118
|
+
|
119
|
+
### Parameters
|
120
|
+
|
121
|
+
Name | Type | Description | Notes
|
122
|
+
------------- | ------------- | ------------- | -------------
|
123
|
+
**query** | **String**| The optional query to search for items. | [optional]
|
124
|
+
**take** | **Integer**| The number of items to return. | [optional]
|
125
|
+
**skip** | **Integer**| The number of items to skip. | [optional]
|
126
|
+
|
127
|
+
### Return type
|
128
|
+
|
129
|
+
[**ListResponseDtoOfNotificationDto**](ListResponseDtoOfNotificationDto.md)
|
130
|
+
|
131
|
+
### Authorization
|
132
|
+
|
133
|
+
No authorization required
|
134
|
+
|
135
|
+
### HTTP request headers
|
136
|
+
|
137
|
+
- **Content-Type**: Not defined
|
138
|
+
- **Accept**: application/json
|
139
|
+
|
140
|
+
|
141
|
+
|
data/docs/PublishDto.md
CHANGED
@@ -13,4 +13,6 @@ Name | Type | Description | Notes
|
|
13
13
|
**properties** | [**EventProperties**](EventProperties.md) | | [optional]
|
14
14
|
**scheduling** | [**SchedulingDto**](SchedulingDto.md) | | [optional]
|
15
15
|
**silent** | **BOOLEAN** | True when silent. | [optional]
|
16
|
+
**test** | **BOOLEAN** | True when using test integrations. | [optional]
|
17
|
+
**time_to_live_in_seconds** | **Integer** | The time to live in seconds. | [optional]
|
16
18
|
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Notifo::RegisterMobileTokenDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**token** | **String** | The device token. |
|
7
|
+
**device_type** | [**MobileDeviceType**](MobileDeviceType.md) | | [optional]
|
8
|
+
|
data/docs/TemplatesApi.md
CHANGED
data/docs/TopicsApi.md
CHANGED
@@ -0,0 +1,10 @@
|
|
1
|
+
# Notifo::TrackNotificationDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**confirmed** | **String** | The id of the noitifications to mark as confirmed. | [optional]
|
7
|
+
**seen** | **Array<String>** | The id of the noitifications to mark as seen. | [optional]
|
8
|
+
**channel** | **String** | The channel name. | [optional]
|
9
|
+
**device_identifier** | **String** | The device identifier. | [optional]
|
10
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Notifo::UpdateIntegrationDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**properties** | [**IntegrationProperties**](IntegrationProperties.md) | |
|
7
|
+
**enabled** | **BOOLEAN** | True when enabled. | [optional]
|
8
|
+
**test** | **BOOLEAN** | True when used for test events. | [optional]
|
9
|
+
**priority** | **Integer** | The priority in which order the integrations must run. | [optional]
|
10
|
+
|
data/docs/UpsertUserDto.md
CHANGED
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
|
|
7
7
|
**full_name** | **String** | The full name of the user. | [optional]
|
8
8
|
**email_address** | **String** | The email of the user. | [optional]
|
9
9
|
**phone_number** | **String** | The phone number. | [optional]
|
10
|
+
**threema_id** | **String** | The threema id. | [optional]
|
10
11
|
**preferred_language** | **String** | The preferred language of the user. | [optional]
|
11
12
|
**preferred_timezone** | **String** | The timezone of the user. | [optional]
|
12
13
|
**requires_whitelisted_topics** | **BOOLEAN** | True when only whitelisted topic are allowed. | [optional]
|
data/docs/UserApi.md
CHANGED
data/docs/UserDto.md
CHANGED
@@ -8,8 +8,11 @@ Name | Type | Description | Notes
|
|
8
8
|
**full_name** | **String** | The full name of the user. | [optional]
|
9
9
|
**email_address** | **String** | The email of the user. | [optional]
|
10
10
|
**phone_number** | **String** | The phone number. | [optional]
|
11
|
+
**threema_id** | **String** | The threema id. | [optional]
|
11
12
|
**preferred_language** | **String** | The preferred language of the user. | [optional]
|
12
13
|
**preferred_timezone** | **String** | The timezone of the user. | [optional]
|
14
|
+
**number_of_web_push_tokens** | **Integer** | The number of web hook tokens. |
|
15
|
+
**number_of_mobile_push_tokens** | **Integer** | The number of web hook tokens. |
|
13
16
|
**requires_whitelisted_topics** | **BOOLEAN** | True when only whitelisted topic are allowed. |
|
14
17
|
**settings** | [**Hash<String, NotificationSettingDto>**](NotificationSettingDto.md) | Notification settings per channel. |
|
15
18
|
**counters** | **Hash<String, Integer>** | The statistics counters. |
|
data/docs/UserInfoApi.md
ADDED
@@ -0,0 +1,83 @@
|
|
1
|
+
# Notifo::UserInfoApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://notifo.easierlife.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**user_info_userinfo**](UserInfoApi.md#user_info_userinfo) | **GET** /connect/userinfo |
|
8
|
+
[**user_info_userinfo2**](UserInfoApi.md#user_info_userinfo2) | **POST** /connect/userinfo |
|
9
|
+
|
10
|
+
# **user_info_userinfo**
|
11
|
+
> user_info_userinfo
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
### Example
|
16
|
+
```ruby
|
17
|
+
# load the gem
|
18
|
+
require 'notifo'
|
19
|
+
|
20
|
+
api_instance = Notifo::UserInfoApi.new
|
21
|
+
|
22
|
+
begin
|
23
|
+
api_instance.user_info_userinfo
|
24
|
+
rescue Notifo::ApiError => e
|
25
|
+
puts "Exception when calling UserInfoApi->user_info_userinfo: #{e}"
|
26
|
+
end
|
27
|
+
```
|
28
|
+
|
29
|
+
### Parameters
|
30
|
+
This endpoint does not need any parameter.
|
31
|
+
|
32
|
+
### Return type
|
33
|
+
|
34
|
+
nil (empty response body)
|
35
|
+
|
36
|
+
### Authorization
|
37
|
+
|
38
|
+
No authorization required
|
39
|
+
|
40
|
+
### HTTP request headers
|
41
|
+
|
42
|
+
- **Content-Type**: Not defined
|
43
|
+
- **Accept**: application/json
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
# **user_info_userinfo2**
|
48
|
+
> user_info_userinfo2
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
### Example
|
53
|
+
```ruby
|
54
|
+
# load the gem
|
55
|
+
require 'notifo'
|
56
|
+
|
57
|
+
api_instance = Notifo::UserInfoApi.new
|
58
|
+
|
59
|
+
begin
|
60
|
+
api_instance.user_info_userinfo2
|
61
|
+
rescue Notifo::ApiError => e
|
62
|
+
puts "Exception when calling UserInfoApi->user_info_userinfo2: #{e}"
|
63
|
+
end
|
64
|
+
```
|
65
|
+
|
66
|
+
### Parameters
|
67
|
+
This endpoint does not need any parameter.
|
68
|
+
|
69
|
+
### Return type
|
70
|
+
|
71
|
+
nil (empty response body)
|
72
|
+
|
73
|
+
### Authorization
|
74
|
+
|
75
|
+
No authorization required
|
76
|
+
|
77
|
+
### HTTP request headers
|
78
|
+
|
79
|
+
- **Content-Type**: Not defined
|
80
|
+
- **Accept**: application/json
|
81
|
+
|
82
|
+
|
83
|
+
|
data/docs/UsersApi.md
CHANGED
data/lib/notifo.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 3.0.
|
9
|
+
Swagger Codegen version: 3.0.26
|
10
10
|
=end
|
11
11
|
|
12
12
|
# Common files
|
@@ -21,19 +21,29 @@ require 'notifo/models/add_contributor_dto'
|
|
21
21
|
require 'notifo/models/app_contributor_dto'
|
22
22
|
require 'notifo/models/app_details_dto'
|
23
23
|
require 'notifo/models/app_dto'
|
24
|
-
require 'notifo/models/
|
24
|
+
require 'notifo/models/app_id_media_body'
|
25
|
+
require 'notifo/models/configured_integration_dto'
|
26
|
+
require 'notifo/models/configured_integrations_dto'
|
25
27
|
require 'notifo/models/confirm_mode'
|
26
28
|
require 'notifo/models/create_email_template_dto'
|
29
|
+
require 'notifo/models/create_integration_dto'
|
27
30
|
require 'notifo/models/email_template_dto'
|
28
31
|
require 'notifo/models/email_templates_dto'
|
29
|
-
require 'notifo/models/email_verification_status'
|
30
32
|
require 'notifo/models/error_dto'
|
31
33
|
require 'notifo/models/event_dto'
|
32
34
|
require 'notifo/models/event_properties'
|
35
|
+
require 'notifo/models/integration_created_dto'
|
36
|
+
require 'notifo/models/integration_definition_dto'
|
37
|
+
require 'notifo/models/integration_properties'
|
38
|
+
require 'notifo/models/integration_property_dto'
|
39
|
+
require 'notifo/models/integration_property_type'
|
40
|
+
require 'notifo/models/integration_status'
|
33
41
|
require 'notifo/models/iso_day_of_week'
|
34
42
|
require 'notifo/models/list_response_dto_of_event_dto'
|
35
43
|
require 'notifo/models/list_response_dto_of_log_entry_dto'
|
36
44
|
require 'notifo/models/list_response_dto_of_media_dto'
|
45
|
+
require 'notifo/models/list_response_dto_of_mobile_push_token_dto'
|
46
|
+
require 'notifo/models/list_response_dto_of_notification_dto'
|
37
47
|
require 'notifo/models/list_response_dto_of_subscription_dto'
|
38
48
|
require 'notifo/models/list_response_dto_of_template_dto'
|
39
49
|
require 'notifo/models/list_response_dto_of_topic_dto'
|
@@ -43,18 +53,24 @@ require 'notifo/models/log_entry_dto'
|
|
43
53
|
require 'notifo/models/media_dto'
|
44
54
|
require 'notifo/models/media_metadata'
|
45
55
|
require 'notifo/models/media_type'
|
56
|
+
require 'notifo/models/mobile_device_type'
|
57
|
+
require 'notifo/models/mobile_push_token_dto'
|
58
|
+
require 'notifo/models/notification_dto'
|
46
59
|
require 'notifo/models/notification_formatting_dto'
|
47
60
|
require 'notifo/models/notification_send'
|
48
61
|
require 'notifo/models/notification_setting_dto'
|
49
62
|
require 'notifo/models/profile_dto'
|
50
63
|
require 'notifo/models/publish_dto'
|
51
64
|
require 'notifo/models/publish_many_dto'
|
65
|
+
require 'notifo/models/register_mobile_token_dto'
|
52
66
|
require 'notifo/models/resize_mode'
|
53
67
|
require 'notifo/models/scheduling_dto'
|
54
68
|
require 'notifo/models/scheduling_type'
|
55
69
|
require 'notifo/models/subscription_dto'
|
56
70
|
require 'notifo/models/template_dto'
|
57
71
|
require 'notifo/models/topic_dto'
|
72
|
+
require 'notifo/models/track_notification_dto'
|
73
|
+
require 'notifo/models/update_integration_dto'
|
58
74
|
require 'notifo/models/update_profile_dto'
|
59
75
|
require 'notifo/models/upsert_app_dto'
|
60
76
|
require 'notifo/models/upsert_template_dto'
|
@@ -65,13 +81,17 @@ require 'notifo/models/user_dto'
|
|
65
81
|
|
66
82
|
# APIs
|
67
83
|
require 'notifo/api/apps_api'
|
84
|
+
require 'notifo/api/authorization_api'
|
68
85
|
require 'notifo/api/configs_api'
|
69
86
|
require 'notifo/api/events_api'
|
70
87
|
require 'notifo/api/logs_api'
|
71
88
|
require 'notifo/api/media_api'
|
89
|
+
require 'notifo/api/mobile_push_api'
|
90
|
+
require 'notifo/api/notifications_api'
|
72
91
|
require 'notifo/api/templates_api'
|
73
92
|
require 'notifo/api/topics_api'
|
74
93
|
require 'notifo/api/user_api'
|
94
|
+
require 'notifo/api/user_info_api'
|
75
95
|
require 'notifo/api/users_api'
|
76
96
|
|
77
97
|
module Notifo
|
data/lib/notifo/api/apps_api.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 3.0.
|
9
|
+
Swagger Codegen version: 3.0.26
|
10
10
|
=end
|
11
11
|
|
12
12
|
module Notifo
|
@@ -123,7 +123,7 @@ module Notifo
|
|
123
123
|
return_type = opts[:return_type]
|
124
124
|
|
125
125
|
auth_names = opts[:auth_names] || []
|
126
|
-
data, status_code, headers = @api_client.call_api(:
|
126
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
127
127
|
:header_params => header_params,
|
128
128
|
:query_params => query_params,
|
129
129
|
:form_params => form_params,
|
@@ -136,6 +136,66 @@ module Notifo
|
|
136
136
|
end
|
137
137
|
return data, status_code, headers
|
138
138
|
end
|
139
|
+
# Delete an app integration.
|
140
|
+
# @param app_id The id of the app where the email templates belong to.
|
141
|
+
# @param id The id of the integration.
|
142
|
+
# @param [Hash] opts the optional parameters
|
143
|
+
# @return [nil]
|
144
|
+
def apps_delete_integration(app_id, id, opts = {})
|
145
|
+
apps_delete_integration_with_http_info(app_id, id, opts)
|
146
|
+
nil
|
147
|
+
end
|
148
|
+
|
149
|
+
# Delete an app integration.
|
150
|
+
# @param app_id The id of the app where the email templates belong to.
|
151
|
+
# @param id The id of the integration.
|
152
|
+
# @param [Hash] opts the optional parameters
|
153
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
154
|
+
def apps_delete_integration_with_http_info(app_id, id, opts = {})
|
155
|
+
if @api_client.config.debugging
|
156
|
+
@api_client.config.logger.debug 'Calling API: AppsApi.apps_delete_integration ...'
|
157
|
+
end
|
158
|
+
# verify the required parameter 'app_id' is set
|
159
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
160
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_delete_integration"
|
161
|
+
end
|
162
|
+
# verify the required parameter 'id' is set
|
163
|
+
if @api_client.config.client_side_validation && id.nil?
|
164
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AppsApi.apps_delete_integration"
|
165
|
+
end
|
166
|
+
# resource path
|
167
|
+
local_var_path = '/api/apps/{appId}/integrations/{id}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'id' + '}', id.to_s)
|
168
|
+
|
169
|
+
# query parameters
|
170
|
+
query_params = opts[:query_params] || {}
|
171
|
+
|
172
|
+
# header parameters
|
173
|
+
header_params = opts[:header_params] || {}
|
174
|
+
# HTTP header 'Accept' (if needed)
|
175
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
176
|
+
|
177
|
+
# form parameters
|
178
|
+
form_params = opts[:form_params] || {}
|
179
|
+
|
180
|
+
# http body (model)
|
181
|
+
post_body = opts[:body]
|
182
|
+
|
183
|
+
return_type = opts[:return_type]
|
184
|
+
|
185
|
+
auth_names = opts[:auth_names] || []
|
186
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
187
|
+
:header_params => header_params,
|
188
|
+
:query_params => query_params,
|
189
|
+
:form_params => form_params,
|
190
|
+
:body => post_body,
|
191
|
+
:auth_names => auth_names,
|
192
|
+
:return_type => return_type)
|
193
|
+
|
194
|
+
if @api_client.config.debugging
|
195
|
+
@api_client.config.logger.debug "API called: AppsApi#apps_delete_integration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
196
|
+
end
|
197
|
+
return data, status_code, headers
|
198
|
+
end
|
139
199
|
# Get app by id.
|
140
200
|
# @param app_id The id of the app.
|
141
201
|
# @param [Hash] opts the optional parameters
|
@@ -292,6 +352,60 @@ module Notifo
|
|
292
352
|
end
|
293
353
|
return data, status_code, headers
|
294
354
|
end
|
355
|
+
# Get the app integrations.
|
356
|
+
# @param app_id The id of the app where the integrations belong to.
|
357
|
+
# @param [Hash] opts the optional parameters
|
358
|
+
# @return [ConfiguredIntegrationsDto]
|
359
|
+
def apps_get_integrations(app_id, opts = {})
|
360
|
+
data, _status_code, _headers = apps_get_integrations_with_http_info(app_id, opts)
|
361
|
+
data
|
362
|
+
end
|
363
|
+
|
364
|
+
# Get the app integrations.
|
365
|
+
# @param app_id The id of the app where the integrations belong to.
|
366
|
+
# @param [Hash] opts the optional parameters
|
367
|
+
# @return [Array<(ConfiguredIntegrationsDto, Integer, Hash)>] ConfiguredIntegrationsDto data, response status code and response headers
|
368
|
+
def apps_get_integrations_with_http_info(app_id, opts = {})
|
369
|
+
if @api_client.config.debugging
|
370
|
+
@api_client.config.logger.debug 'Calling API: AppsApi.apps_get_integrations ...'
|
371
|
+
end
|
372
|
+
# verify the required parameter 'app_id' is set
|
373
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
374
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_get_integrations"
|
375
|
+
end
|
376
|
+
# resource path
|
377
|
+
local_var_path = '/api/apps/{appId}/integrations'.sub('{' + 'appId' + '}', app_id.to_s)
|
378
|
+
|
379
|
+
# query parameters
|
380
|
+
query_params = opts[:query_params] || {}
|
381
|
+
|
382
|
+
# header parameters
|
383
|
+
header_params = opts[:header_params] || {}
|
384
|
+
# HTTP header 'Accept' (if needed)
|
385
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
386
|
+
|
387
|
+
# form parameters
|
388
|
+
form_params = opts[:form_params] || {}
|
389
|
+
|
390
|
+
# http body (model)
|
391
|
+
post_body = opts[:body]
|
392
|
+
|
393
|
+
return_type = opts[:return_type] || 'ConfiguredIntegrationsDto'
|
394
|
+
|
395
|
+
auth_names = opts[:auth_names] || []
|
396
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
397
|
+
:header_params => header_params,
|
398
|
+
:query_params => query_params,
|
399
|
+
:form_params => form_params,
|
400
|
+
:body => post_body,
|
401
|
+
:auth_names => auth_names,
|
402
|
+
:return_type => return_type)
|
403
|
+
|
404
|
+
if @api_client.config.debugging
|
405
|
+
@api_client.config.logger.debug "API called: AppsApi#apps_get_integrations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
406
|
+
end
|
407
|
+
return data, status_code, headers
|
408
|
+
end
|
295
409
|
# Create an app.
|
296
410
|
# @param body The request object.
|
297
411
|
# @param [Hash] opts the optional parameters
|
@@ -472,6 +586,68 @@ module Notifo
|
|
472
586
|
end
|
473
587
|
return data, status_code, headers
|
474
588
|
end
|
589
|
+
# Create an app integrations.
|
590
|
+
# @param body The request object.
|
591
|
+
# @param app_id The id of the app where the integration belong to.
|
592
|
+
# @param [Hash] opts the optional parameters
|
593
|
+
# @return [IntegrationCreatedDto]
|
594
|
+
def apps_post_integration(body, app_id, opts = {})
|
595
|
+
data, _status_code, _headers = apps_post_integration_with_http_info(body, app_id, opts)
|
596
|
+
data
|
597
|
+
end
|
598
|
+
|
599
|
+
# Create an app integrations.
|
600
|
+
# @param body The request object.
|
601
|
+
# @param app_id The id of the app where the integration belong to.
|
602
|
+
# @param [Hash] opts the optional parameters
|
603
|
+
# @return [Array<(IntegrationCreatedDto, Integer, Hash)>] IntegrationCreatedDto data, response status code and response headers
|
604
|
+
def apps_post_integration_with_http_info(body, app_id, opts = {})
|
605
|
+
if @api_client.config.debugging
|
606
|
+
@api_client.config.logger.debug 'Calling API: AppsApi.apps_post_integration ...'
|
607
|
+
end
|
608
|
+
# verify the required parameter 'body' is set
|
609
|
+
if @api_client.config.client_side_validation && body.nil?
|
610
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.apps_post_integration"
|
611
|
+
end
|
612
|
+
# verify the required parameter 'app_id' is set
|
613
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
614
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_post_integration"
|
615
|
+
end
|
616
|
+
# resource path
|
617
|
+
local_var_path = '/api/apps/{appId}/integration'.sub('{' + 'appId' + '}', app_id.to_s)
|
618
|
+
|
619
|
+
# query parameters
|
620
|
+
query_params = opts[:query_params] || {}
|
621
|
+
|
622
|
+
# header parameters
|
623
|
+
header_params = opts[:header_params] || {}
|
624
|
+
# HTTP header 'Accept' (if needed)
|
625
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
626
|
+
# HTTP header 'Content-Type'
|
627
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
628
|
+
|
629
|
+
# form parameters
|
630
|
+
form_params = opts[:form_params] || {}
|
631
|
+
|
632
|
+
# http body (model)
|
633
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
634
|
+
|
635
|
+
return_type = opts[:return_type] || 'IntegrationCreatedDto'
|
636
|
+
|
637
|
+
auth_names = opts[:auth_names] || []
|
638
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
639
|
+
:header_params => header_params,
|
640
|
+
:query_params => query_params,
|
641
|
+
:form_params => form_params,
|
642
|
+
:body => post_body,
|
643
|
+
:auth_names => auth_names,
|
644
|
+
:return_type => return_type)
|
645
|
+
|
646
|
+
if @api_client.config.debugging
|
647
|
+
@api_client.config.logger.debug "API called: AppsApi#apps_post_integration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
648
|
+
end
|
649
|
+
return data, status_code, headers
|
650
|
+
end
|
475
651
|
# Update an app.
|
476
652
|
# @param body The request object.
|
477
653
|
# @param app_id The app id to update.
|
@@ -602,5 +778,73 @@ module Notifo
|
|
602
778
|
end
|
603
779
|
return data, status_code, headers
|
604
780
|
end
|
781
|
+
# Update an app integration.
|
782
|
+
# @param body The request object.
|
783
|
+
# @param app_id The id of the app where the integration belong to.
|
784
|
+
# @param id The id of the integration.
|
785
|
+
# @param [Hash] opts the optional parameters
|
786
|
+
# @return [nil]
|
787
|
+
def apps_put_integration(body, app_id, id, opts = {})
|
788
|
+
apps_put_integration_with_http_info(body, app_id, id, opts)
|
789
|
+
nil
|
790
|
+
end
|
791
|
+
|
792
|
+
# Update an app integration.
|
793
|
+
# @param body The request object.
|
794
|
+
# @param app_id The id of the app where the integration belong to.
|
795
|
+
# @param id The id of the integration.
|
796
|
+
# @param [Hash] opts the optional parameters
|
797
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
798
|
+
def apps_put_integration_with_http_info(body, app_id, id, opts = {})
|
799
|
+
if @api_client.config.debugging
|
800
|
+
@api_client.config.logger.debug 'Calling API: AppsApi.apps_put_integration ...'
|
801
|
+
end
|
802
|
+
# verify the required parameter 'body' is set
|
803
|
+
if @api_client.config.client_side_validation && body.nil?
|
804
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.apps_put_integration"
|
805
|
+
end
|
806
|
+
# verify the required parameter 'app_id' is set
|
807
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
808
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_put_integration"
|
809
|
+
end
|
810
|
+
# verify the required parameter 'id' is set
|
811
|
+
if @api_client.config.client_side_validation && id.nil?
|
812
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AppsApi.apps_put_integration"
|
813
|
+
end
|
814
|
+
# resource path
|
815
|
+
local_var_path = '/api/apps/{appId}/integrations/{id}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'id' + '}', id.to_s)
|
816
|
+
|
817
|
+
# query parameters
|
818
|
+
query_params = opts[:query_params] || {}
|
819
|
+
|
820
|
+
# header parameters
|
821
|
+
header_params = opts[:header_params] || {}
|
822
|
+
# HTTP header 'Accept' (if needed)
|
823
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
824
|
+
# HTTP header 'Content-Type'
|
825
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
826
|
+
|
827
|
+
# form parameters
|
828
|
+
form_params = opts[:form_params] || {}
|
829
|
+
|
830
|
+
# http body (model)
|
831
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
832
|
+
|
833
|
+
return_type = opts[:return_type]
|
834
|
+
|
835
|
+
auth_names = opts[:auth_names] || []
|
836
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
837
|
+
:header_params => header_params,
|
838
|
+
:query_params => query_params,
|
839
|
+
:form_params => form_params,
|
840
|
+
:body => post_body,
|
841
|
+
:auth_names => auth_names,
|
842
|
+
:return_type => return_type)
|
843
|
+
|
844
|
+
if @api_client.config.debugging
|
845
|
+
@api_client.config.logger.debug "API called: AppsApi#apps_put_integration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
846
|
+
end
|
847
|
+
return data, status_code, headers
|
848
|
+
end
|
605
849
|
end
|
606
850
|
end
|