notifo-io-easierlife 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +167 -0
- data/Rakefile +10 -0
- data/docs/AddAllowedTopicDto.md +18 -0
- data/docs/AddContributorDto.md +20 -0
- data/docs/AppContributorDto.md +22 -0
- data/docs/AppDetailsDto.md +48 -0
- data/docs/AppDto.md +28 -0
- data/docs/AppsApi.md +646 -0
- data/docs/ConfigsApi.md +127 -0
- data/docs/ConfirmMode.md +15 -0
- data/docs/CreateEmailTemplateDto.md +18 -0
- data/docs/EmailTemplateDto.md +22 -0
- data/docs/EmailVerificationStatus.md +15 -0
- data/docs/ErrorDto.md +26 -0
- data/docs/EventDto.md +40 -0
- data/docs/EventsApi.md +142 -0
- data/docs/IsoDayOfWeek.md +15 -0
- data/docs/ListResponseDtoOfEventDto.md +20 -0
- data/docs/ListResponseDtoOfLogEntryDto.md +20 -0
- data/docs/ListResponseDtoOfMediaDto.md +20 -0
- data/docs/ListResponseDtoOfSubscriptionDto.md +20 -0
- data/docs/ListResponseDtoOfTemplateDto.md +20 -0
- data/docs/ListResponseDtoOfTopicDto.md +20 -0
- data/docs/ListResponseDtoOfUserDto.md +20 -0
- data/docs/LogEntryDto.md +24 -0
- data/docs/LogsApi.md +78 -0
- data/docs/MediaApi.md +382 -0
- data/docs/MediaDto.md +30 -0
- data/docs/MediaType.md +15 -0
- data/docs/NotificationFormattingDto.md +32 -0
- data/docs/NotificationSend.md +15 -0
- data/docs/NotificationSettingDto.md +20 -0
- data/docs/ProfileDto.md +32 -0
- data/docs/PublishDto.md +36 -0
- data/docs/PublishManyDto.md +18 -0
- data/docs/ResizeMode.md +15 -0
- data/docs/SchedulingDto.md +24 -0
- data/docs/SchedulingType.md +15 -0
- data/docs/SubscriptionDto.md +20 -0
- data/docs/TemplateDto.md +22 -0
- data/docs/TemplatesApi.md +208 -0
- data/docs/TopicDto.md +22 -0
- data/docs/TopicsApi.md +78 -0
- data/docs/UpdateProfileDto.md +28 -0
- data/docs/UpsertAppDto.md +36 -0
- data/docs/UpsertTemplateDto.md +22 -0
- data/docs/UpsertTemplatesDto.md +18 -0
- data/docs/UpsertUserDto.md +32 -0
- data/docs/UpsertUsersDto.md +18 -0
- data/docs/UserApi.md +323 -0
- data/docs/UserDto.md +36 -0
- data/docs/UsersApi.md +610 -0
- data/git_push.sh +58 -0
- data/lib/notifo.rb +89 -0
- data/lib/notifo/api/apps_api.rb +678 -0
- data/lib/notifo/api/configs_api.rb +132 -0
- data/lib/notifo/api/events_api.rb +161 -0
- data/lib/notifo/api/logs_api.rb +92 -0
- data/lib/notifo/api/media_api.rb +419 -0
- data/lib/notifo/api/templates_api.rb +228 -0
- data/lib/notifo/api/topics_api.rb +92 -0
- data/lib/notifo/api/user_api.rb +331 -0
- data/lib/notifo/api/users_api.rb +667 -0
- data/lib/notifo/api_client.rb +389 -0
- data/lib/notifo/api_error.rb +57 -0
- data/lib/notifo/configuration.rb +270 -0
- data/lib/notifo/models/add_allowed_topic_dto.rb +243 -0
- data/lib/notifo/models/add_contributor_dto.rb +277 -0
- data/lib/notifo/models/app_contributor_dto.rb +311 -0
- data/lib/notifo/models/app_details_dto.rb +489 -0
- data/lib/notifo/models/app_dto.rb +362 -0
- data/lib/notifo/models/confirm_mode.rb +38 -0
- data/lib/notifo/models/create_email_template_dto.rb +243 -0
- data/lib/notifo/models/email_template_dto.rb +288 -0
- data/lib/notifo/models/email_verification_status.rb +39 -0
- data/lib/notifo/models/error_dto.rb +265 -0
- data/lib/notifo/models/event_dto.rb +456 -0
- data/lib/notifo/models/iso_day_of_week.rb +43 -0
- data/lib/notifo/models/list_response_dto_of_event_dto.rb +241 -0
- data/lib/notifo/models/list_response_dto_of_log_entry_dto.rb +241 -0
- data/lib/notifo/models/list_response_dto_of_media_dto.rb +241 -0
- data/lib/notifo/models/list_response_dto_of_subscription_dto.rb +241 -0
- data/lib/notifo/models/list_response_dto_of_template_dto.rb +241 -0
- data/lib/notifo/models/list_response_dto_of_topic_dto.rb +241 -0
- data/lib/notifo/models/list_response_dto_of_user_dto.rb +241 -0
- data/lib/notifo/models/log_entry_dto.rb +326 -0
- data/lib/notifo/models/media_dto.rb +390 -0
- data/lib/notifo/models/media_type.rb +39 -0
- data/lib/notifo/models/notification_formatting_dto.rb +305 -0
- data/lib/notifo/models/notification_send.rb +39 -0
- data/lib/notifo/models/notification_setting_dto.rb +234 -0
- data/lib/notifo/models/profile_dto.rb +361 -0
- data/lib/notifo/models/publish_dto.rb +338 -0
- data/lib/notifo/models/publish_many_dto.rb +226 -0
- data/lib/notifo/models/resize_mode.rb +42 -0
- data/lib/notifo/models/scheduling_dto.rb +248 -0
- data/lib/notifo/models/scheduling_type.rb +37 -0
- data/lib/notifo/models/subscription_dto.rb +256 -0
- data/lib/notifo/models/template_dto.rb +274 -0
- data/lib/notifo/models/topic_dto.rb +294 -0
- data/lib/notifo/models/update_profile_dto.rb +277 -0
- data/lib/notifo/models/upsert_app_dto.rb +321 -0
- data/lib/notifo/models/upsert_template_dto.rb +270 -0
- data/lib/notifo/models/upsert_templates_dto.rb +226 -0
- data/lib/notifo/models/upsert_user_dto.rb +299 -0
- data/lib/notifo/models/upsert_users_dto.rb +226 -0
- data/lib/notifo/models/user_dto.rb +381 -0
- data/lib/notifo/version.rb +15 -0
- data/notifo-io-1.0.0.gem +0 -0
- data/notifo.gemspec +38 -0
- data/spec/api/apps_api_spec.rb +151 -0
- data/spec/api/configs_api_spec.rb +55 -0
- data/spec/api/events_api_spec.rb +61 -0
- data/spec/api/logs_api_spec.rb +49 -0
- data/spec/api/media_api_spec.rb +117 -0
- data/spec/api/templates_api_spec.rb +73 -0
- data/spec/api/topics_api_spec.rb +49 -0
- data/spec/api/user_api_spec.rb +92 -0
- data/spec/api/users_api_spec.rb +152 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/add_allowed_topic_dto_spec.rb +34 -0
- data/spec/models/add_contributor_dto_spec.rb +40 -0
- data/spec/models/app_contributor_dto_spec.rb +46 -0
- data/spec/models/app_details_dto_spec.rb +124 -0
- data/spec/models/app_dto_spec.rb +64 -0
- data/spec/models/confirm_mode_spec.rb +28 -0
- data/spec/models/create_email_template_dto_spec.rb +34 -0
- data/spec/models/email_template_dto_spec.rb +46 -0
- data/spec/models/email_verification_status_spec.rb +28 -0
- data/spec/models/error_dto_spec.rb +58 -0
- data/spec/models/event_dto_spec.rb +100 -0
- data/spec/models/iso_day_of_week_spec.rb +28 -0
- data/spec/models/list_response_dto_of_event_dto_spec.rb +40 -0
- data/spec/models/list_response_dto_of_log_entry_dto_spec.rb +40 -0
- data/spec/models/list_response_dto_of_media_dto_spec.rb +40 -0
- data/spec/models/list_response_dto_of_subscription_dto_spec.rb +40 -0
- data/spec/models/list_response_dto_of_template_dto_spec.rb +40 -0
- data/spec/models/list_response_dto_of_topic_dto_spec.rb +40 -0
- data/spec/models/list_response_dto_of_user_dto_spec.rb +40 -0
- data/spec/models/log_entry_dto_spec.rb +52 -0
- data/spec/models/media_dto_spec.rb +70 -0
- data/spec/models/media_type_spec.rb +28 -0
- data/spec/models/notification_formatting_dto_spec.rb +76 -0
- data/spec/models/notification_send_spec.rb +28 -0
- data/spec/models/notification_setting_dto_spec.rb +40 -0
- data/spec/models/profile_dto_spec.rb +76 -0
- data/spec/models/publish_dto_spec.rb +88 -0
- data/spec/models/publish_many_dto_spec.rb +34 -0
- data/spec/models/resize_mode_spec.rb +28 -0
- data/spec/models/scheduling_dto_spec.rb +52 -0
- data/spec/models/scheduling_type_spec.rb +28 -0
- data/spec/models/subscription_dto_spec.rb +40 -0
- data/spec/models/template_dto_spec.rb +46 -0
- data/spec/models/topic_dto_spec.rb +46 -0
- data/spec/models/update_profile_dto_spec.rb +64 -0
- data/spec/models/upsert_app_dto_spec.rb +88 -0
- data/spec/models/upsert_template_dto_spec.rb +46 -0
- data/spec/models/upsert_templates_dto_spec.rb +34 -0
- data/spec/models/upsert_user_dto_spec.rb +76 -0
- data/spec/models/upsert_users_dto_spec.rb +34 -0
- data/spec/models/user_dto_spec.rb +88 -0
- data/spec/spec_helper.rb +111 -0
- metadata +301 -0
data/docs/UserDto.md
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# Notifo::UserDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | The id of the user. | |
|
8
|
+
| **api_key** | **String** | The unique api key for the user. | |
|
9
|
+
| **full_name** | **String** | The full name of the user. | [optional] |
|
10
|
+
| **email_address** | **String** | The email of the user. | [optional] |
|
11
|
+
| **phone_number** | **String** | The phone number. | [optional] |
|
12
|
+
| **preferred_language** | **String** | The preferred language of the user. | [optional] |
|
13
|
+
| **preferred_timezone** | **String** | The timezone of the user. | [optional] |
|
14
|
+
| **requires_whitelisted_topics** | **Boolean** | True when only whitelisted topic are allowed. | |
|
15
|
+
| **settings** | [**Hash<String, NotificationSettingDto>**](NotificationSettingDto.md) | Notification settings per channel. | |
|
16
|
+
| **counters** | **Hash<String, Integer>** | The statistics counters. | |
|
17
|
+
|
18
|
+
## Example
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'notifo'
|
22
|
+
|
23
|
+
instance = Notifo::UserDto.new(
|
24
|
+
id: null,
|
25
|
+
api_key: null,
|
26
|
+
full_name: null,
|
27
|
+
email_address: null,
|
28
|
+
phone_number: null,
|
29
|
+
preferred_language: null,
|
30
|
+
preferred_timezone: null,
|
31
|
+
requires_whitelisted_topics: null,
|
32
|
+
settings: null,
|
33
|
+
counters: null
|
34
|
+
)
|
35
|
+
```
|
36
|
+
|
data/docs/UsersApi.md
ADDED
@@ -0,0 +1,610 @@
|
|
1
|
+
# Notifo::UsersApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://notifo.easierlife.com*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**users_delete_allowed_topic**](UsersApi.md#users_delete_allowed_topic) | **DELETE** /api/apps/{appId}/users/{id}/allowed-topics/{prefix} | Remove an allowed topic. |
|
8
|
+
| [**users_delete_subscription**](UsersApi.md#users_delete_subscription) | **DELETE** /api/apps/{appId}/users/{id}/subscriptions/{prefix} | Remove a user subscriptions. |
|
9
|
+
| [**users_delete_user**](UsersApi.md#users_delete_user) | **DELETE** /api/apps/{appId}/users/{id} | Delete a user. |
|
10
|
+
| [**users_get_subscriptions**](UsersApi.md#users_get_subscriptions) | **GET** /api/apps/{appId}/users/{id}/subscriptions | Query user subscriptions. |
|
11
|
+
| [**users_get_user**](UsersApi.md#users_get_user) | **GET** /api/apps/{appId}/users/{id} | Get a user. |
|
12
|
+
| [**users_get_users**](UsersApi.md#users_get_users) | **GET** /api/apps/{appId}/users | Query users. |
|
13
|
+
| [**users_post_allowed_topic**](UsersApi.md#users_post_allowed_topic) | **POST** /api/apps/{appId}/users/{id}/allowed-topics | Add an allowed topic. |
|
14
|
+
| [**users_post_subscription**](UsersApi.md#users_post_subscription) | **POST** /api/apps/{appId}/users/{id}/subscriptions | Upsert a user subscriptions. |
|
15
|
+
| [**users_post_users**](UsersApi.md#users_post_users) | **POST** /api/apps/{appId}/users | Upsert users. |
|
16
|
+
|
17
|
+
|
18
|
+
## users_delete_allowed_topic
|
19
|
+
|
20
|
+
> users_delete_allowed_topic(app_id, id, prefix)
|
21
|
+
|
22
|
+
Remove an allowed topic.
|
23
|
+
|
24
|
+
### Examples
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
require 'time'
|
28
|
+
require 'notifo'
|
29
|
+
|
30
|
+
api_instance = Notifo::UsersApi.new
|
31
|
+
app_id = 'app_id_example' # String | The app where the users belong to.
|
32
|
+
id = 'id_example' # String | The user id.
|
33
|
+
prefix = 'prefix_example' # String | The topic prefix.
|
34
|
+
|
35
|
+
begin
|
36
|
+
# Remove an allowed topic.
|
37
|
+
api_instance.users_delete_allowed_topic(app_id, id, prefix)
|
38
|
+
rescue Notifo::ApiError => e
|
39
|
+
puts "Error when calling UsersApi->users_delete_allowed_topic: #{e}"
|
40
|
+
end
|
41
|
+
```
|
42
|
+
|
43
|
+
#### Using the users_delete_allowed_topic_with_http_info variant
|
44
|
+
|
45
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
46
|
+
|
47
|
+
> <Array(nil, Integer, Hash)> users_delete_allowed_topic_with_http_info(app_id, id, prefix)
|
48
|
+
|
49
|
+
```ruby
|
50
|
+
begin
|
51
|
+
# Remove an allowed topic.
|
52
|
+
data, status_code, headers = api_instance.users_delete_allowed_topic_with_http_info(app_id, id, prefix)
|
53
|
+
p status_code # => 2xx
|
54
|
+
p headers # => { ... }
|
55
|
+
p data # => nil
|
56
|
+
rescue Notifo::ApiError => e
|
57
|
+
puts "Error when calling UsersApi->users_delete_allowed_topic_with_http_info: #{e}"
|
58
|
+
end
|
59
|
+
```
|
60
|
+
|
61
|
+
### Parameters
|
62
|
+
|
63
|
+
| Name | Type | Description | Notes |
|
64
|
+
| ---- | ---- | ----------- | ----- |
|
65
|
+
| **app_id** | **String** | The app where the users belong to. | |
|
66
|
+
| **id** | **String** | The user id. | |
|
67
|
+
| **prefix** | **String** | The topic prefix. | |
|
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
|
+
## users_delete_subscription
|
84
|
+
|
85
|
+
> users_delete_subscription(app_id, id, prefix)
|
86
|
+
|
87
|
+
Remove a user subscriptions.
|
88
|
+
|
89
|
+
### Examples
|
90
|
+
|
91
|
+
```ruby
|
92
|
+
require 'time'
|
93
|
+
require 'notifo'
|
94
|
+
|
95
|
+
api_instance = Notifo::UsersApi.new
|
96
|
+
app_id = 'app_id_example' # String | The app where the user belongs to.
|
97
|
+
id = 'id_example' # String | The user id.
|
98
|
+
prefix = 'prefix_example' # String | The topic prefix.
|
99
|
+
|
100
|
+
begin
|
101
|
+
# Remove a user subscriptions.
|
102
|
+
api_instance.users_delete_subscription(app_id, id, prefix)
|
103
|
+
rescue Notifo::ApiError => e
|
104
|
+
puts "Error when calling UsersApi->users_delete_subscription: #{e}"
|
105
|
+
end
|
106
|
+
```
|
107
|
+
|
108
|
+
#### Using the users_delete_subscription_with_http_info variant
|
109
|
+
|
110
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
111
|
+
|
112
|
+
> <Array(nil, Integer, Hash)> users_delete_subscription_with_http_info(app_id, id, prefix)
|
113
|
+
|
114
|
+
```ruby
|
115
|
+
begin
|
116
|
+
# Remove a user subscriptions.
|
117
|
+
data, status_code, headers = api_instance.users_delete_subscription_with_http_info(app_id, id, prefix)
|
118
|
+
p status_code # => 2xx
|
119
|
+
p headers # => { ... }
|
120
|
+
p data # => nil
|
121
|
+
rescue Notifo::ApiError => e
|
122
|
+
puts "Error when calling UsersApi->users_delete_subscription_with_http_info: #{e}"
|
123
|
+
end
|
124
|
+
```
|
125
|
+
|
126
|
+
### Parameters
|
127
|
+
|
128
|
+
| Name | Type | Description | Notes |
|
129
|
+
| ---- | ---- | ----------- | ----- |
|
130
|
+
| **app_id** | **String** | The app where the user belongs to. | |
|
131
|
+
| **id** | **String** | The user id. | |
|
132
|
+
| **prefix** | **String** | The topic prefix. | |
|
133
|
+
|
134
|
+
### Return type
|
135
|
+
|
136
|
+
nil (empty response body)
|
137
|
+
|
138
|
+
### Authorization
|
139
|
+
|
140
|
+
No authorization required
|
141
|
+
|
142
|
+
### HTTP request headers
|
143
|
+
|
144
|
+
- **Content-Type**: Not defined
|
145
|
+
- **Accept**: application/json
|
146
|
+
|
147
|
+
|
148
|
+
## users_delete_user
|
149
|
+
|
150
|
+
> <ListResponseDtoOfUserDto> users_delete_user(app_id, id)
|
151
|
+
|
152
|
+
Delete a user.
|
153
|
+
|
154
|
+
### Examples
|
155
|
+
|
156
|
+
```ruby
|
157
|
+
require 'time'
|
158
|
+
require 'notifo'
|
159
|
+
|
160
|
+
api_instance = Notifo::UsersApi.new
|
161
|
+
app_id = 'app_id_example' # String | The app where the users belongs to.
|
162
|
+
id = 'id_example' # String | The user id to delete.
|
163
|
+
|
164
|
+
begin
|
165
|
+
# Delete a user.
|
166
|
+
result = api_instance.users_delete_user(app_id, id)
|
167
|
+
p result
|
168
|
+
rescue Notifo::ApiError => e
|
169
|
+
puts "Error when calling UsersApi->users_delete_user: #{e}"
|
170
|
+
end
|
171
|
+
```
|
172
|
+
|
173
|
+
#### Using the users_delete_user_with_http_info variant
|
174
|
+
|
175
|
+
This returns an Array which contains the response data, status code and headers.
|
176
|
+
|
177
|
+
> <Array(<ListResponseDtoOfUserDto>, Integer, Hash)> users_delete_user_with_http_info(app_id, id)
|
178
|
+
|
179
|
+
```ruby
|
180
|
+
begin
|
181
|
+
# Delete a user.
|
182
|
+
data, status_code, headers = api_instance.users_delete_user_with_http_info(app_id, id)
|
183
|
+
p status_code # => 2xx
|
184
|
+
p headers # => { ... }
|
185
|
+
p data # => <ListResponseDtoOfUserDto>
|
186
|
+
rescue Notifo::ApiError => e
|
187
|
+
puts "Error when calling UsersApi->users_delete_user_with_http_info: #{e}"
|
188
|
+
end
|
189
|
+
```
|
190
|
+
|
191
|
+
### Parameters
|
192
|
+
|
193
|
+
| Name | Type | Description | Notes |
|
194
|
+
| ---- | ---- | ----------- | ----- |
|
195
|
+
| **app_id** | **String** | The app where the users belongs to. | |
|
196
|
+
| **id** | **String** | The user id to delete. | |
|
197
|
+
|
198
|
+
### Return type
|
199
|
+
|
200
|
+
[**ListResponseDtoOfUserDto**](ListResponseDtoOfUserDto.md)
|
201
|
+
|
202
|
+
### Authorization
|
203
|
+
|
204
|
+
No authorization required
|
205
|
+
|
206
|
+
### HTTP request headers
|
207
|
+
|
208
|
+
- **Content-Type**: Not defined
|
209
|
+
- **Accept**: application/json
|
210
|
+
|
211
|
+
|
212
|
+
## users_get_subscriptions
|
213
|
+
|
214
|
+
> <ListResponseDtoOfSubscriptionDto> users_get_subscriptions(app_id, id, opts)
|
215
|
+
|
216
|
+
Query user subscriptions.
|
217
|
+
|
218
|
+
### Examples
|
219
|
+
|
220
|
+
```ruby
|
221
|
+
require 'time'
|
222
|
+
require 'notifo'
|
223
|
+
|
224
|
+
api_instance = Notifo::UsersApi.new
|
225
|
+
app_id = 'app_id_example' # String | The app where the user belongs to.
|
226
|
+
id = 'id_example' # String | The user id.
|
227
|
+
opts = {
|
228
|
+
query: 'query_example', # String | The optional query to search for items.
|
229
|
+
take: 56, # Integer | The number of items to return.
|
230
|
+
skip: 56 # Integer | The number of items to skip.
|
231
|
+
}
|
232
|
+
|
233
|
+
begin
|
234
|
+
# Query user subscriptions.
|
235
|
+
result = api_instance.users_get_subscriptions(app_id, id, opts)
|
236
|
+
p result
|
237
|
+
rescue Notifo::ApiError => e
|
238
|
+
puts "Error when calling UsersApi->users_get_subscriptions: #{e}"
|
239
|
+
end
|
240
|
+
```
|
241
|
+
|
242
|
+
#### Using the users_get_subscriptions_with_http_info variant
|
243
|
+
|
244
|
+
This returns an Array which contains the response data, status code and headers.
|
245
|
+
|
246
|
+
> <Array(<ListResponseDtoOfSubscriptionDto>, Integer, Hash)> users_get_subscriptions_with_http_info(app_id, id, opts)
|
247
|
+
|
248
|
+
```ruby
|
249
|
+
begin
|
250
|
+
# Query user subscriptions.
|
251
|
+
data, status_code, headers = api_instance.users_get_subscriptions_with_http_info(app_id, id, opts)
|
252
|
+
p status_code # => 2xx
|
253
|
+
p headers # => { ... }
|
254
|
+
p data # => <ListResponseDtoOfSubscriptionDto>
|
255
|
+
rescue Notifo::ApiError => e
|
256
|
+
puts "Error when calling UsersApi->users_get_subscriptions_with_http_info: #{e}"
|
257
|
+
end
|
258
|
+
```
|
259
|
+
|
260
|
+
### Parameters
|
261
|
+
|
262
|
+
| Name | Type | Description | Notes |
|
263
|
+
| ---- | ---- | ----------- | ----- |
|
264
|
+
| **app_id** | **String** | The app where the user belongs to. | |
|
265
|
+
| **id** | **String** | The user id. | |
|
266
|
+
| **query** | **String** | The optional query to search for items. | [optional] |
|
267
|
+
| **take** | **Integer** | The number of items to return. | [optional] |
|
268
|
+
| **skip** | **Integer** | The number of items to skip. | [optional] |
|
269
|
+
|
270
|
+
### Return type
|
271
|
+
|
272
|
+
[**ListResponseDtoOfSubscriptionDto**](ListResponseDtoOfSubscriptionDto.md)
|
273
|
+
|
274
|
+
### Authorization
|
275
|
+
|
276
|
+
No authorization required
|
277
|
+
|
278
|
+
### HTTP request headers
|
279
|
+
|
280
|
+
- **Content-Type**: Not defined
|
281
|
+
- **Accept**: application/json
|
282
|
+
|
283
|
+
|
284
|
+
## users_get_user
|
285
|
+
|
286
|
+
> <ListResponseDtoOfUserDto> users_get_user(app_id, id)
|
287
|
+
|
288
|
+
Get a user.
|
289
|
+
|
290
|
+
### Examples
|
291
|
+
|
292
|
+
```ruby
|
293
|
+
require 'time'
|
294
|
+
require 'notifo'
|
295
|
+
|
296
|
+
api_instance = Notifo::UsersApi.new
|
297
|
+
app_id = 'app_id_example' # String | The app where the user belongs to.
|
298
|
+
id = 'id_example' # String | The user id.
|
299
|
+
|
300
|
+
begin
|
301
|
+
# Get a user.
|
302
|
+
result = api_instance.users_get_user(app_id, id)
|
303
|
+
p result
|
304
|
+
rescue Notifo::ApiError => e
|
305
|
+
puts "Error when calling UsersApi->users_get_user: #{e}"
|
306
|
+
end
|
307
|
+
```
|
308
|
+
|
309
|
+
#### Using the users_get_user_with_http_info variant
|
310
|
+
|
311
|
+
This returns an Array which contains the response data, status code and headers.
|
312
|
+
|
313
|
+
> <Array(<ListResponseDtoOfUserDto>, Integer, Hash)> users_get_user_with_http_info(app_id, id)
|
314
|
+
|
315
|
+
```ruby
|
316
|
+
begin
|
317
|
+
# Get a user.
|
318
|
+
data, status_code, headers = api_instance.users_get_user_with_http_info(app_id, id)
|
319
|
+
p status_code # => 2xx
|
320
|
+
p headers # => { ... }
|
321
|
+
p data # => <ListResponseDtoOfUserDto>
|
322
|
+
rescue Notifo::ApiError => e
|
323
|
+
puts "Error when calling UsersApi->users_get_user_with_http_info: #{e}"
|
324
|
+
end
|
325
|
+
```
|
326
|
+
|
327
|
+
### Parameters
|
328
|
+
|
329
|
+
| Name | Type | Description | Notes |
|
330
|
+
| ---- | ---- | ----------- | ----- |
|
331
|
+
| **app_id** | **String** | The app where the user belongs to. | |
|
332
|
+
| **id** | **String** | The user id. | |
|
333
|
+
|
334
|
+
### Return type
|
335
|
+
|
336
|
+
[**ListResponseDtoOfUserDto**](ListResponseDtoOfUserDto.md)
|
337
|
+
|
338
|
+
### Authorization
|
339
|
+
|
340
|
+
No authorization required
|
341
|
+
|
342
|
+
### HTTP request headers
|
343
|
+
|
344
|
+
- **Content-Type**: Not defined
|
345
|
+
- **Accept**: application/json
|
346
|
+
|
347
|
+
|
348
|
+
## users_get_users
|
349
|
+
|
350
|
+
> <ListResponseDtoOfUserDto> users_get_users(app_id, opts)
|
351
|
+
|
352
|
+
Query users.
|
353
|
+
|
354
|
+
### Examples
|
355
|
+
|
356
|
+
```ruby
|
357
|
+
require 'time'
|
358
|
+
require 'notifo'
|
359
|
+
|
360
|
+
api_instance = Notifo::UsersApi.new
|
361
|
+
app_id = 'app_id_example' # String | The app where the users belongs to.
|
362
|
+
opts = {
|
363
|
+
query: 'query_example', # String | The optional query to search for items.
|
364
|
+
take: 56, # Integer | The number of items to return.
|
365
|
+
skip: 56 # Integer | The number of items to skip.
|
366
|
+
}
|
367
|
+
|
368
|
+
begin
|
369
|
+
# Query users.
|
370
|
+
result = api_instance.users_get_users(app_id, opts)
|
371
|
+
p result
|
372
|
+
rescue Notifo::ApiError => e
|
373
|
+
puts "Error when calling UsersApi->users_get_users: #{e}"
|
374
|
+
end
|
375
|
+
```
|
376
|
+
|
377
|
+
#### Using the users_get_users_with_http_info variant
|
378
|
+
|
379
|
+
This returns an Array which contains the response data, status code and headers.
|
380
|
+
|
381
|
+
> <Array(<ListResponseDtoOfUserDto>, Integer, Hash)> users_get_users_with_http_info(app_id, opts)
|
382
|
+
|
383
|
+
```ruby
|
384
|
+
begin
|
385
|
+
# Query users.
|
386
|
+
data, status_code, headers = api_instance.users_get_users_with_http_info(app_id, opts)
|
387
|
+
p status_code # => 2xx
|
388
|
+
p headers # => { ... }
|
389
|
+
p data # => <ListResponseDtoOfUserDto>
|
390
|
+
rescue Notifo::ApiError => e
|
391
|
+
puts "Error when calling UsersApi->users_get_users_with_http_info: #{e}"
|
392
|
+
end
|
393
|
+
```
|
394
|
+
|
395
|
+
### Parameters
|
396
|
+
|
397
|
+
| Name | Type | Description | Notes |
|
398
|
+
| ---- | ---- | ----------- | ----- |
|
399
|
+
| **app_id** | **String** | The app where the users belongs to. | |
|
400
|
+
| **query** | **String** | The optional query to search for items. | [optional] |
|
401
|
+
| **take** | **Integer** | The number of items to return. | [optional] |
|
402
|
+
| **skip** | **Integer** | The number of items to skip. | [optional] |
|
403
|
+
|
404
|
+
### Return type
|
405
|
+
|
406
|
+
[**ListResponseDtoOfUserDto**](ListResponseDtoOfUserDto.md)
|
407
|
+
|
408
|
+
### Authorization
|
409
|
+
|
410
|
+
No authorization required
|
411
|
+
|
412
|
+
### HTTP request headers
|
413
|
+
|
414
|
+
- **Content-Type**: Not defined
|
415
|
+
- **Accept**: application/json
|
416
|
+
|
417
|
+
|
418
|
+
## users_post_allowed_topic
|
419
|
+
|
420
|
+
> users_post_allowed_topic(app_id, id, add_allowed_topic_dto)
|
421
|
+
|
422
|
+
Add an allowed topic.
|
423
|
+
|
424
|
+
### Examples
|
425
|
+
|
426
|
+
```ruby
|
427
|
+
require 'time'
|
428
|
+
require 'notifo'
|
429
|
+
|
430
|
+
api_instance = Notifo::UsersApi.new
|
431
|
+
app_id = 'app_id_example' # String | The app where the users belong to.
|
432
|
+
id = 'id_example' # String | The user id.
|
433
|
+
add_allowed_topic_dto = Notifo::AddAllowedTopicDto.new({prefix: 'prefix_example'}) # AddAllowedTopicDto | The upsert request.
|
434
|
+
|
435
|
+
begin
|
436
|
+
# Add an allowed topic.
|
437
|
+
api_instance.users_post_allowed_topic(app_id, id, add_allowed_topic_dto)
|
438
|
+
rescue Notifo::ApiError => e
|
439
|
+
puts "Error when calling UsersApi->users_post_allowed_topic: #{e}"
|
440
|
+
end
|
441
|
+
```
|
442
|
+
|
443
|
+
#### Using the users_post_allowed_topic_with_http_info variant
|
444
|
+
|
445
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
446
|
+
|
447
|
+
> <Array(nil, Integer, Hash)> users_post_allowed_topic_with_http_info(app_id, id, add_allowed_topic_dto)
|
448
|
+
|
449
|
+
```ruby
|
450
|
+
begin
|
451
|
+
# Add an allowed topic.
|
452
|
+
data, status_code, headers = api_instance.users_post_allowed_topic_with_http_info(app_id, id, add_allowed_topic_dto)
|
453
|
+
p status_code # => 2xx
|
454
|
+
p headers # => { ... }
|
455
|
+
p data # => nil
|
456
|
+
rescue Notifo::ApiError => e
|
457
|
+
puts "Error when calling UsersApi->users_post_allowed_topic_with_http_info: #{e}"
|
458
|
+
end
|
459
|
+
```
|
460
|
+
|
461
|
+
### Parameters
|
462
|
+
|
463
|
+
| Name | Type | Description | Notes |
|
464
|
+
| ---- | ---- | ----------- | ----- |
|
465
|
+
| **app_id** | **String** | The app where the users belong to. | |
|
466
|
+
| **id** | **String** | The user id. | |
|
467
|
+
| **add_allowed_topic_dto** | [**AddAllowedTopicDto**](AddAllowedTopicDto.md) | The upsert request. | |
|
468
|
+
|
469
|
+
### Return type
|
470
|
+
|
471
|
+
nil (empty response body)
|
472
|
+
|
473
|
+
### Authorization
|
474
|
+
|
475
|
+
No authorization required
|
476
|
+
|
477
|
+
### HTTP request headers
|
478
|
+
|
479
|
+
- **Content-Type**: application/json
|
480
|
+
- **Accept**: application/json
|
481
|
+
|
482
|
+
|
483
|
+
## users_post_subscription
|
484
|
+
|
485
|
+
> users_post_subscription(app_id, id, subscription_dto)
|
486
|
+
|
487
|
+
Upsert a user subscriptions.
|
488
|
+
|
489
|
+
### Examples
|
490
|
+
|
491
|
+
```ruby
|
492
|
+
require 'time'
|
493
|
+
require 'notifo'
|
494
|
+
|
495
|
+
api_instance = Notifo::UsersApi.new
|
496
|
+
app_id = 'app_id_example' # String | The app where the user belongs to.
|
497
|
+
id = 'id_example' # String | The user id.
|
498
|
+
subscription_dto = Notifo::SubscriptionDto.new({topic_prefix: 'topic_prefix_example'}) # SubscriptionDto | The subscription object.
|
499
|
+
|
500
|
+
begin
|
501
|
+
# Upsert a user subscriptions.
|
502
|
+
api_instance.users_post_subscription(app_id, id, subscription_dto)
|
503
|
+
rescue Notifo::ApiError => e
|
504
|
+
puts "Error when calling UsersApi->users_post_subscription: #{e}"
|
505
|
+
end
|
506
|
+
```
|
507
|
+
|
508
|
+
#### Using the users_post_subscription_with_http_info variant
|
509
|
+
|
510
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
511
|
+
|
512
|
+
> <Array(nil, Integer, Hash)> users_post_subscription_with_http_info(app_id, id, subscription_dto)
|
513
|
+
|
514
|
+
```ruby
|
515
|
+
begin
|
516
|
+
# Upsert a user subscriptions.
|
517
|
+
data, status_code, headers = api_instance.users_post_subscription_with_http_info(app_id, id, subscription_dto)
|
518
|
+
p status_code # => 2xx
|
519
|
+
p headers # => { ... }
|
520
|
+
p data # => nil
|
521
|
+
rescue Notifo::ApiError => e
|
522
|
+
puts "Error when calling UsersApi->users_post_subscription_with_http_info: #{e}"
|
523
|
+
end
|
524
|
+
```
|
525
|
+
|
526
|
+
### Parameters
|
527
|
+
|
528
|
+
| Name | Type | Description | Notes |
|
529
|
+
| ---- | ---- | ----------- | ----- |
|
530
|
+
| **app_id** | **String** | The app where the user belongs to. | |
|
531
|
+
| **id** | **String** | The user id. | |
|
532
|
+
| **subscription_dto** | [**SubscriptionDto**](SubscriptionDto.md) | The subscription object. | |
|
533
|
+
|
534
|
+
### Return type
|
535
|
+
|
536
|
+
nil (empty response body)
|
537
|
+
|
538
|
+
### Authorization
|
539
|
+
|
540
|
+
No authorization required
|
541
|
+
|
542
|
+
### HTTP request headers
|
543
|
+
|
544
|
+
- **Content-Type**: application/json
|
545
|
+
- **Accept**: application/json
|
546
|
+
|
547
|
+
|
548
|
+
## users_post_users
|
549
|
+
|
550
|
+
> <Array<UserDto>> users_post_users(app_id, upsert_users_dto)
|
551
|
+
|
552
|
+
Upsert users.
|
553
|
+
|
554
|
+
### Examples
|
555
|
+
|
556
|
+
```ruby
|
557
|
+
require 'time'
|
558
|
+
require 'notifo'
|
559
|
+
|
560
|
+
api_instance = Notifo::UsersApi.new
|
561
|
+
app_id = 'app_id_example' # String | The app where the users belong to.
|
562
|
+
upsert_users_dto = Notifo::UpsertUsersDto.new({requests: [Notifo::UpsertUserDto.new]}) # UpsertUsersDto | The upsert request.
|
563
|
+
|
564
|
+
begin
|
565
|
+
# Upsert users.
|
566
|
+
result = api_instance.users_post_users(app_id, upsert_users_dto)
|
567
|
+
p result
|
568
|
+
rescue Notifo::ApiError => e
|
569
|
+
puts "Error when calling UsersApi->users_post_users: #{e}"
|
570
|
+
end
|
571
|
+
```
|
572
|
+
|
573
|
+
#### Using the users_post_users_with_http_info variant
|
574
|
+
|
575
|
+
This returns an Array which contains the response data, status code and headers.
|
576
|
+
|
577
|
+
> <Array(<Array<UserDto>>, Integer, Hash)> users_post_users_with_http_info(app_id, upsert_users_dto)
|
578
|
+
|
579
|
+
```ruby
|
580
|
+
begin
|
581
|
+
# Upsert users.
|
582
|
+
data, status_code, headers = api_instance.users_post_users_with_http_info(app_id, upsert_users_dto)
|
583
|
+
p status_code # => 2xx
|
584
|
+
p headers # => { ... }
|
585
|
+
p data # => <Array<UserDto>>
|
586
|
+
rescue Notifo::ApiError => e
|
587
|
+
puts "Error when calling UsersApi->users_post_users_with_http_info: #{e}"
|
588
|
+
end
|
589
|
+
```
|
590
|
+
|
591
|
+
### Parameters
|
592
|
+
|
593
|
+
| Name | Type | Description | Notes |
|
594
|
+
| ---- | ---- | ----------- | ----- |
|
595
|
+
| **app_id** | **String** | The app where the users belong to. | |
|
596
|
+
| **upsert_users_dto** | [**UpsertUsersDto**](UpsertUsersDto.md) | The upsert request. | |
|
597
|
+
|
598
|
+
### Return type
|
599
|
+
|
600
|
+
[**Array<UserDto>**](UserDto.md)
|
601
|
+
|
602
|
+
### Authorization
|
603
|
+
|
604
|
+
No authorization required
|
605
|
+
|
606
|
+
### HTTP request headers
|
607
|
+
|
608
|
+
- **Content-Type**: application/json
|
609
|
+
- **Accept**: application/json
|
610
|
+
|