notifo-io 1.0.0.pre

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +163 -0
  4. data/Rakefile +10 -0
  5. data/docs/AddAllowedTopicRequest.md +18 -0
  6. data/docs/AddContributorDto.md +20 -0
  7. data/docs/AppContributorDto.md +22 -0
  8. data/docs/AppDetailsDto.md +48 -0
  9. data/docs/AppDto.md +28 -0
  10. data/docs/AppsApi.md +646 -0
  11. data/docs/ConfigsApi.md +127 -0
  12. data/docs/ConfirmMode.md +15 -0
  13. data/docs/CreateEmailTemplateDto.md +18 -0
  14. data/docs/EmailTemplateDto.md +22 -0
  15. data/docs/EmailVerificationStatus.md +15 -0
  16. data/docs/ErrorDto.md +26 -0
  17. data/docs/EventDto.md +40 -0
  18. data/docs/EventsApi.md +142 -0
  19. data/docs/InlineObject.md +18 -0
  20. data/docs/IsoDayOfWeek.md +15 -0
  21. data/docs/ListResponseDtoOfEventDto.md +20 -0
  22. data/docs/ListResponseDtoOfLogEntryDto.md +20 -0
  23. data/docs/ListResponseDtoOfMediaDto.md +20 -0
  24. data/docs/ListResponseDtoOfSubscriptionDto.md +20 -0
  25. data/docs/ListResponseDtoOfTemplateDto.md +20 -0
  26. data/docs/ListResponseDtoOfTopicDto.md +20 -0
  27. data/docs/ListResponseDtoOfUserDto.md +20 -0
  28. data/docs/LogEntryDto.md +24 -0
  29. data/docs/LogsApi.md +78 -0
  30. data/docs/MediaApi.md +295 -0
  31. data/docs/MediaDto.md +28 -0
  32. data/docs/MediaType.md +15 -0
  33. data/docs/NotificationFormattingDto.md +32 -0
  34. data/docs/NotificationSettingDto.md +20 -0
  35. data/docs/PublishManyRequestDto.md +18 -0
  36. data/docs/PublishRequestDto.md +36 -0
  37. data/docs/ResizeMode.md +15 -0
  38. data/docs/SchedulingDto.md +24 -0
  39. data/docs/SchedulingType.md +15 -0
  40. data/docs/SubscribeDto.md +20 -0
  41. data/docs/SubscriptionDto.md +20 -0
  42. data/docs/TemplateDto.md +22 -0
  43. data/docs/TemplatesApi.md +208 -0
  44. data/docs/TopicDto.md +22 -0
  45. data/docs/TopicsApi.md +270 -0
  46. data/docs/UpsertAppDto.md +36 -0
  47. data/docs/UpsertTemplateDto.md +22 -0
  48. data/docs/UpsertTemplatesDto.md +18 -0
  49. data/docs/UpsertUserDto.md +32 -0
  50. data/docs/UpsertUsersDto.md +18 -0
  51. data/docs/UserDto.md +36 -0
  52. data/docs/UsersApi.md +610 -0
  53. data/git_push.sh +58 -0
  54. data/lib/notifo.rb +87 -0
  55. data/lib/notifo/api/apps_api.rb +678 -0
  56. data/lib/notifo/api/configs_api.rb +132 -0
  57. data/lib/notifo/api/events_api.rb +161 -0
  58. data/lib/notifo/api/logs_api.rb +92 -0
  59. data/lib/notifo/api/media_api.rb +322 -0
  60. data/lib/notifo/api/templates_api.rb +228 -0
  61. data/lib/notifo/api/topics_api.rb +281 -0
  62. data/lib/notifo/api/users_api.rb +667 -0
  63. data/lib/notifo/api_client.rb +389 -0
  64. data/lib/notifo/api_error.rb +57 -0
  65. data/lib/notifo/configuration.rb +268 -0
  66. data/lib/notifo/models/add_allowed_topic_request.rb +219 -0
  67. data/lib/notifo/models/add_contributor_dto.rb +229 -0
  68. data/lib/notifo/models/app_contributor_dto.rb +239 -0
  69. data/lib/notifo/models/app_details_dto.rb +381 -0
  70. data/lib/notifo/models/app_dto.rb +273 -0
  71. data/lib/notifo/models/confirm_mode.rb +38 -0
  72. data/lib/notifo/models/create_email_template_dto.rb +219 -0
  73. data/lib/notifo/models/email_template_dto.rb +240 -0
  74. data/lib/notifo/models/email_verification_status.rb +39 -0
  75. data/lib/notifo/models/error_dto.rb +265 -0
  76. data/lib/notifo/models/event_dto.rb +333 -0
  77. data/lib/notifo/models/inline_object.rb +219 -0
  78. data/lib/notifo/models/iso_day_of_week.rb +43 -0
  79. data/lib/notifo/models/list_response_dto_of_event_dto.rb +231 -0
  80. data/lib/notifo/models/list_response_dto_of_log_entry_dto.rb +231 -0
  81. data/lib/notifo/models/list_response_dto_of_media_dto.rb +231 -0
  82. data/lib/notifo/models/list_response_dto_of_subscription_dto.rb +231 -0
  83. data/lib/notifo/models/list_response_dto_of_template_dto.rb +231 -0
  84. data/lib/notifo/models/list_response_dto_of_topic_dto.rb +231 -0
  85. data/lib/notifo/models/list_response_dto_of_user_dto.rb +231 -0
  86. data/lib/notifo/models/log_entry_dto.rb +249 -0
  87. data/lib/notifo/models/media_dto.rb +269 -0
  88. data/lib/notifo/models/media_type.rb +39 -0
  89. data/lib/notifo/models/notification_formatting_dto.rb +295 -0
  90. data/lib/notifo/models/notification_setting_dto.rb +231 -0
  91. data/lib/notifo/models/publish_many_request_dto.rb +221 -0
  92. data/lib/notifo/models/publish_request_dto.rb +315 -0
  93. data/lib/notifo/models/resize_mode.rb +42 -0
  94. data/lib/notifo/models/scheduling_dto.rb +251 -0
  95. data/lib/notifo/models/scheduling_type.rb +37 -0
  96. data/lib/notifo/models/subscribe_dto.rb +229 -0
  97. data/lib/notifo/models/subscription_dto.rb +229 -0
  98. data/lib/notifo/models/template_dto.rb +239 -0
  99. data/lib/notifo/models/topic_dto.rb +239 -0
  100. data/lib/notifo/models/upsert_app_dto.rb +321 -0
  101. data/lib/notifo/models/upsert_template_dto.rb +240 -0
  102. data/lib/notifo/models/upsert_templates_dto.rb +221 -0
  103. data/lib/notifo/models/upsert_user_dto.rb +297 -0
  104. data/lib/notifo/models/upsert_users_dto.rb +221 -0
  105. data/lib/notifo/models/user_dto.rb +309 -0
  106. data/lib/notifo/version.rb +15 -0
  107. data/notifo-io-1.0.0.gem +0 -0
  108. data/notifo-io-1.0.0.pre.beta.gem +0 -0
  109. data/notifo.gemspec +38 -0
  110. data/spec/api/apps_api_spec.rb +151 -0
  111. data/spec/api/configs_api_spec.rb +55 -0
  112. data/spec/api/events_api_spec.rb +61 -0
  113. data/spec/api/logs_api_spec.rb +49 -0
  114. data/spec/api/media_api_spec.rb +95 -0
  115. data/spec/api/templates_api_spec.rb +73 -0
  116. data/spec/api/topics_api_spec.rb +85 -0
  117. data/spec/api/users_api_spec.rb +152 -0
  118. data/spec/api_client_spec.rb +226 -0
  119. data/spec/configuration_spec.rb +42 -0
  120. data/spec/models/add_allowed_topic_request_spec.rb +34 -0
  121. data/spec/models/add_contributor_dto_spec.rb +40 -0
  122. data/spec/models/app_contributor_dto_spec.rb +46 -0
  123. data/spec/models/app_details_dto_spec.rb +124 -0
  124. data/spec/models/app_dto_spec.rb +64 -0
  125. data/spec/models/confirm_mode_spec.rb +28 -0
  126. data/spec/models/create_email_template_dto_spec.rb +34 -0
  127. data/spec/models/email_template_dto_spec.rb +46 -0
  128. data/spec/models/email_verification_status_spec.rb +28 -0
  129. data/spec/models/error_dto_spec.rb +58 -0
  130. data/spec/models/event_dto_spec.rb +100 -0
  131. data/spec/models/inline_object_spec.rb +34 -0
  132. data/spec/models/iso_day_of_week_spec.rb +28 -0
  133. data/spec/models/list_response_dto_of_event_dto_spec.rb +40 -0
  134. data/spec/models/list_response_dto_of_log_entry_dto_spec.rb +40 -0
  135. data/spec/models/list_response_dto_of_media_dto_spec.rb +40 -0
  136. data/spec/models/list_response_dto_of_subscription_dto_spec.rb +40 -0
  137. data/spec/models/list_response_dto_of_template_dto_spec.rb +40 -0
  138. data/spec/models/list_response_dto_of_topic_dto_spec.rb +40 -0
  139. data/spec/models/list_response_dto_of_user_dto_spec.rb +40 -0
  140. data/spec/models/log_entry_dto_spec.rb +52 -0
  141. data/spec/models/media_dto_spec.rb +64 -0
  142. data/spec/models/media_type_spec.rb +28 -0
  143. data/spec/models/notification_formatting_dto_spec.rb +76 -0
  144. data/spec/models/notification_setting_dto_spec.rb +40 -0
  145. data/spec/models/publish_many_request_dto_spec.rb +34 -0
  146. data/spec/models/publish_request_dto_spec.rb +88 -0
  147. data/spec/models/resize_mode_spec.rb +28 -0
  148. data/spec/models/scheduling_dto_spec.rb +52 -0
  149. data/spec/models/scheduling_type_spec.rb +28 -0
  150. data/spec/models/subscribe_dto_spec.rb +40 -0
  151. data/spec/models/subscription_dto_spec.rb +40 -0
  152. data/spec/models/template_dto_spec.rb +46 -0
  153. data/spec/models/topic_dto_spec.rb +46 -0
  154. data/spec/models/upsert_app_dto_spec.rb +88 -0
  155. data/spec/models/upsert_template_dto_spec.rb +46 -0
  156. data/spec/models/upsert_templates_dto_spec.rb +34 -0
  157. data/spec/models/upsert_user_dto_spec.rb +76 -0
  158. data/spec/models/upsert_users_dto_spec.rb +34 -0
  159. data/spec/models/user_dto_spec.rb +88 -0
  160. data/spec/spec_helper.rb +111 -0
  161. metadata +294 -0
@@ -0,0 +1,20 @@
1
+ # Notifo::ListResponseDtoOfEventDto
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **items** | [**Array<EventDto>**](EventDto.md) | The items. | [optional] |
8
+ | **total** | **Integer** | The total number of items. | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'notifo'
14
+
15
+ instance = Notifo::ListResponseDtoOfEventDto.new(
16
+ items: null,
17
+ total: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # Notifo::ListResponseDtoOfLogEntryDto
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **items** | [**Array<LogEntryDto>**](LogEntryDto.md) | The items. | [optional] |
8
+ | **total** | **Integer** | The total number of items. | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'notifo'
14
+
15
+ instance = Notifo::ListResponseDtoOfLogEntryDto.new(
16
+ items: null,
17
+ total: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # Notifo::ListResponseDtoOfMediaDto
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **items** | [**Array<MediaDto>**](MediaDto.md) | The items. | [optional] |
8
+ | **total** | **Integer** | The total number of items. | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'notifo'
14
+
15
+ instance = Notifo::ListResponseDtoOfMediaDto.new(
16
+ items: null,
17
+ total: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # Notifo::ListResponseDtoOfSubscriptionDto
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **items** | [**Array<SubscriptionDto>**](SubscriptionDto.md) | The items. | [optional] |
8
+ | **total** | **Integer** | The total number of items. | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'notifo'
14
+
15
+ instance = Notifo::ListResponseDtoOfSubscriptionDto.new(
16
+ items: null,
17
+ total: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # Notifo::ListResponseDtoOfTemplateDto
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **items** | [**Array<TemplateDto>**](TemplateDto.md) | The items. | [optional] |
8
+ | **total** | **Integer** | The total number of items. | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'notifo'
14
+
15
+ instance = Notifo::ListResponseDtoOfTemplateDto.new(
16
+ items: null,
17
+ total: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # Notifo::ListResponseDtoOfTopicDto
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **items** | [**Array<TopicDto>**](TopicDto.md) | The items. | [optional] |
8
+ | **total** | **Integer** | The total number of items. | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'notifo'
14
+
15
+ instance = Notifo::ListResponseDtoOfTopicDto.new(
16
+ items: null,
17
+ total: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,20 @@
1
+ # Notifo::ListResponseDtoOfUserDto
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **items** | [**Array<UserDto>**](UserDto.md) | The items. | [optional] |
8
+ | **total** | **Integer** | The total number of items. | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'notifo'
14
+
15
+ instance = Notifo::ListResponseDtoOfUserDto.new(
16
+ items: null,
17
+ total: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,24 @@
1
+ # Notifo::LogEntryDto
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **message** | **String** | The log message. | [optional] |
8
+ | **first_seen** | **Time** | The first time this message has been seen. | [optional] |
9
+ | **last_seen** | **Time** | The last time this message has been seen. | [optional] |
10
+ | **count** | **Integer** | The number of items the message has been seen. | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'notifo'
16
+
17
+ instance = Notifo::LogEntryDto.new(
18
+ message: null,
19
+ first_seen: null,
20
+ last_seen: null,
21
+ count: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,78 @@
1
+ # Notifo::LogsApi
2
+
3
+ All URIs are relative to *https://app.notifo.io*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**logs_get_logs**](LogsApi.md#logs_get_logs) | **GET** /api/apps/{appId}/logs | Query log entries. |
8
+
9
+
10
+ ## logs_get_logs
11
+
12
+ > <ListResponseDtoOfLogEntryDto> logs_get_logs(app_id, opts)
13
+
14
+ Query log entries.
15
+
16
+ ### Examples
17
+
18
+ ```ruby
19
+ require 'time'
20
+ require 'notifo'
21
+
22
+ api_instance = Notifo::LogsApi.new
23
+ app_id = 'app_id_example' # String | The app where the log entries belongs to.
24
+ opts = {
25
+ query: 'query_example', # String | The optional query to search for items.
26
+ take: 56, # Integer | The number of items to return.
27
+ skip: 56 # Integer | The number of items to skip.
28
+ }
29
+
30
+ begin
31
+ # Query log entries.
32
+ result = api_instance.logs_get_logs(app_id, opts)
33
+ p result
34
+ rescue Notifo::ApiError => e
35
+ puts "Error when calling LogsApi->logs_get_logs: #{e}"
36
+ end
37
+ ```
38
+
39
+ #### Using the logs_get_logs_with_http_info variant
40
+
41
+ This returns an Array which contains the response data, status code and headers.
42
+
43
+ > <Array(<ListResponseDtoOfLogEntryDto>, Integer, Hash)> logs_get_logs_with_http_info(app_id, opts)
44
+
45
+ ```ruby
46
+ begin
47
+ # Query log entries.
48
+ data, status_code, headers = api_instance.logs_get_logs_with_http_info(app_id, opts)
49
+ p status_code # => 2xx
50
+ p headers # => { ... }
51
+ p data # => <ListResponseDtoOfLogEntryDto>
52
+ rescue Notifo::ApiError => e
53
+ puts "Error when calling LogsApi->logs_get_logs_with_http_info: #{e}"
54
+ end
55
+ ```
56
+
57
+ ### Parameters
58
+
59
+ | Name | Type | Description | Notes |
60
+ | ---- | ---- | ----------- | ----- |
61
+ | **app_id** | **String** | The app where the log entries belongs to. | |
62
+ | **query** | **String** | The optional query to search for items. | [optional] |
63
+ | **take** | **Integer** | The number of items to return. | [optional] |
64
+ | **skip** | **Integer** | The number of items to skip. | [optional] |
65
+
66
+ ### Return type
67
+
68
+ [**ListResponseDtoOfLogEntryDto**](ListResponseDtoOfLogEntryDto.md)
69
+
70
+ ### Authorization
71
+
72
+ No authorization required
73
+
74
+ ### HTTP request headers
75
+
76
+ - **Content-Type**: Not defined
77
+ - **Accept**: application/json
78
+
@@ -0,0 +1,295 @@
1
+ # Notifo::MediaApi
2
+
3
+ All URIs are relative to *https://app.notifo.io*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**media_delete**](MediaApi.md#media_delete) | **DELETE** /api/apps/{appId}/media/{fileName} | Delete a media. |
8
+ | [**media_download**](MediaApi.md#media_download) | **GET** /api/assets/{appId}/{fileName} | Download a media object. |
9
+ | [**media_get_medias**](MediaApi.md#media_get_medias) | **GET** /api/apps/{appId}/media | Query media items. |
10
+ | [**media_upload**](MediaApi.md#media_upload) | **POST** /api/apps/{appId}/media | Upload a media object. |
11
+
12
+
13
+ ## media_delete
14
+
15
+ > media_delete(app_id, file_name)
16
+
17
+ Delete a media.
18
+
19
+ ### Examples
20
+
21
+ ```ruby
22
+ require 'time'
23
+ require 'notifo'
24
+
25
+ api_instance = Notifo::MediaApi.new
26
+ app_id = 'app_id_example' # String | The app id where the media belongs to.
27
+ file_name = 'file_name_example' # String | The file name of the media.
28
+
29
+ begin
30
+ # Delete a media.
31
+ api_instance.media_delete(app_id, file_name)
32
+ rescue Notifo::ApiError => e
33
+ puts "Error when calling MediaApi->media_delete: #{e}"
34
+ end
35
+ ```
36
+
37
+ #### Using the media_delete_with_http_info variant
38
+
39
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
40
+
41
+ > <Array(nil, Integer, Hash)> media_delete_with_http_info(app_id, file_name)
42
+
43
+ ```ruby
44
+ begin
45
+ # Delete a media.
46
+ data, status_code, headers = api_instance.media_delete_with_http_info(app_id, file_name)
47
+ p status_code # => 2xx
48
+ p headers # => { ... }
49
+ p data # => nil
50
+ rescue Notifo::ApiError => e
51
+ puts "Error when calling MediaApi->media_delete_with_http_info: #{e}"
52
+ end
53
+ ```
54
+
55
+ ### Parameters
56
+
57
+ | Name | Type | Description | Notes |
58
+ | ---- | ---- | ----------- | ----- |
59
+ | **app_id** | **String** | The app id where the media belongs to. | |
60
+ | **file_name** | **String** | The file name of the media. | |
61
+
62
+ ### Return type
63
+
64
+ nil (empty response body)
65
+
66
+ ### Authorization
67
+
68
+ No authorization required
69
+
70
+ ### HTTP request headers
71
+
72
+ - **Content-Type**: Not defined
73
+ - **Accept**: application/json
74
+
75
+
76
+ ## media_download
77
+
78
+ > File media_download(app_id, file_name, opts)
79
+
80
+ Download a media object.
81
+
82
+ ### Examples
83
+
84
+ ```ruby
85
+ require 'time'
86
+ require 'notifo'
87
+
88
+ api_instance = Notifo::MediaApi.new
89
+ app_id = 'app_id_example' # String | The app id where the media belongs to.
90
+ file_name = 'file_name_example' # String | The name of the media to download.
91
+ opts = {
92
+ cache: 789, # Integer | The cache duration.
93
+ download: 56, # Integer | Set it to 1 to create a download response.
94
+ width: 56, # Integer | The target width when an image.
95
+ height: 56, # Integer | The target height when an image.
96
+ quality: 56, # Integer | The target quality when an image.
97
+ preset: 'preset_example', # String | A preset dimension.
98
+ mode: TODO, # OneOfResizeMode | The resize mode.
99
+ focus_x: 3.4, # Float | The x position of the focues point.
100
+ focus_y: 3.4, # Float | The y position of the focues point.
101
+ force: true # Boolean | True to resize it and clear the cache.
102
+ }
103
+
104
+ begin
105
+ # Download a media object.
106
+ result = api_instance.media_download(app_id, file_name, opts)
107
+ p result
108
+ rescue Notifo::ApiError => e
109
+ puts "Error when calling MediaApi->media_download: #{e}"
110
+ end
111
+ ```
112
+
113
+ #### Using the media_download_with_http_info variant
114
+
115
+ This returns an Array which contains the response data, status code and headers.
116
+
117
+ > <Array(File, Integer, Hash)> media_download_with_http_info(app_id, file_name, opts)
118
+
119
+ ```ruby
120
+ begin
121
+ # Download a media object.
122
+ data, status_code, headers = api_instance.media_download_with_http_info(app_id, file_name, opts)
123
+ p status_code # => 2xx
124
+ p headers # => { ... }
125
+ p data # => File
126
+ rescue Notifo::ApiError => e
127
+ puts "Error when calling MediaApi->media_download_with_http_info: #{e}"
128
+ end
129
+ ```
130
+
131
+ ### Parameters
132
+
133
+ | Name | Type | Description | Notes |
134
+ | ---- | ---- | ----------- | ----- |
135
+ | **app_id** | **String** | The app id where the media belongs to. | |
136
+ | **file_name** | **String** | The name of the media to download. | |
137
+ | **cache** | **Integer** | The cache duration. | [optional] |
138
+ | **download** | **Integer** | Set it to 1 to create a download response. | [optional] |
139
+ | **width** | **Integer** | The target width when an image. | [optional] |
140
+ | **height** | **Integer** | The target height when an image. | [optional] |
141
+ | **quality** | **Integer** | The target quality when an image. | [optional] |
142
+ | **preset** | **String** | A preset dimension. | [optional] |
143
+ | **mode** | [**OneOfResizeMode**](.md) | The resize mode. | [optional] |
144
+ | **focus_x** | **Float** | The x position of the focues point. | [optional] |
145
+ | **focus_y** | **Float** | The y position of the focues point. | [optional] |
146
+ | **force** | **Boolean** | True to resize it and clear the cache. | [optional] |
147
+
148
+ ### Return type
149
+
150
+ **File**
151
+
152
+ ### Authorization
153
+
154
+ No authorization required
155
+
156
+ ### HTTP request headers
157
+
158
+ - **Content-Type**: Not defined
159
+ - **Accept**: application/octet-stream, application/json
160
+
161
+
162
+ ## media_get_medias
163
+
164
+ > <ListResponseDtoOfMediaDto> media_get_medias(app_id, opts)
165
+
166
+ Query media items.
167
+
168
+ ### Examples
169
+
170
+ ```ruby
171
+ require 'time'
172
+ require 'notifo'
173
+
174
+ api_instance = Notifo::MediaApi.new
175
+ app_id = 'app_id_example' # String | The app where the media belongs to.
176
+ opts = {
177
+ query: 'query_example', # String | The optional query to search for items.
178
+ take: 56, # Integer | The number of items to return.
179
+ skip: 56 # Integer | The number of items to skip.
180
+ }
181
+
182
+ begin
183
+ # Query media items.
184
+ result = api_instance.media_get_medias(app_id, opts)
185
+ p result
186
+ rescue Notifo::ApiError => e
187
+ puts "Error when calling MediaApi->media_get_medias: #{e}"
188
+ end
189
+ ```
190
+
191
+ #### Using the media_get_medias_with_http_info variant
192
+
193
+ This returns an Array which contains the response data, status code and headers.
194
+
195
+ > <Array(<ListResponseDtoOfMediaDto>, Integer, Hash)> media_get_medias_with_http_info(app_id, opts)
196
+
197
+ ```ruby
198
+ begin
199
+ # Query media items.
200
+ data, status_code, headers = api_instance.media_get_medias_with_http_info(app_id, opts)
201
+ p status_code # => 2xx
202
+ p headers # => { ... }
203
+ p data # => <ListResponseDtoOfMediaDto>
204
+ rescue Notifo::ApiError => e
205
+ puts "Error when calling MediaApi->media_get_medias_with_http_info: #{e}"
206
+ end
207
+ ```
208
+
209
+ ### Parameters
210
+
211
+ | Name | Type | Description | Notes |
212
+ | ---- | ---- | ----------- | ----- |
213
+ | **app_id** | **String** | The app where the media belongs to. | |
214
+ | **query** | **String** | The optional query to search for items. | [optional] |
215
+ | **take** | **Integer** | The number of items to return. | [optional] |
216
+ | **skip** | **Integer** | The number of items to skip. | [optional] |
217
+
218
+ ### Return type
219
+
220
+ [**ListResponseDtoOfMediaDto**](ListResponseDtoOfMediaDto.md)
221
+
222
+ ### Authorization
223
+
224
+ No authorization required
225
+
226
+ ### HTTP request headers
227
+
228
+ - **Content-Type**: Not defined
229
+ - **Accept**: application/json
230
+
231
+
232
+ ## media_upload
233
+
234
+ > media_upload(app_id, opts)
235
+
236
+ Upload a media object.
237
+
238
+ ### Examples
239
+
240
+ ```ruby
241
+ require 'time'
242
+ require 'notifo'
243
+
244
+ api_instance = Notifo::MediaApi.new
245
+ app_id = 'app_id_example' # String | The app id where the media belongs to.
246
+ opts = {
247
+ file: File.new('/path/to/some/file') # File |
248
+ }
249
+
250
+ begin
251
+ # Upload a media object.
252
+ api_instance.media_upload(app_id, opts)
253
+ rescue Notifo::ApiError => e
254
+ puts "Error when calling MediaApi->media_upload: #{e}"
255
+ end
256
+ ```
257
+
258
+ #### Using the media_upload_with_http_info variant
259
+
260
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
261
+
262
+ > <Array(nil, Integer, Hash)> media_upload_with_http_info(app_id, opts)
263
+
264
+ ```ruby
265
+ begin
266
+ # Upload a media object.
267
+ data, status_code, headers = api_instance.media_upload_with_http_info(app_id, opts)
268
+ p status_code # => 2xx
269
+ p headers # => { ... }
270
+ p data # => nil
271
+ rescue Notifo::ApiError => e
272
+ puts "Error when calling MediaApi->media_upload_with_http_info: #{e}"
273
+ end
274
+ ```
275
+
276
+ ### Parameters
277
+
278
+ | Name | Type | Description | Notes |
279
+ | ---- | ---- | ----------- | ----- |
280
+ | **app_id** | **String** | The app id where the media belongs to. | |
281
+ | **file** | **File** | | [optional] |
282
+
283
+ ### Return type
284
+
285
+ nil (empty response body)
286
+
287
+ ### Authorization
288
+
289
+ No authorization required
290
+
291
+ ### HTTP request headers
292
+
293
+ - **Content-Type**: multipart/form-data
294
+ - **Accept**: application/json
295
+