notifo-io-easierlife 1.0.0 → 1.0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +599 -97
  3. data/Rakefile +0 -2
  4. data/docs/AddAllowedTopicDto.md +4 -15
  5. data/docs/AddContributorDto.md +5 -17
  6. data/docs/AppContributorDto.md +6 -19
  7. data/docs/AppDetailsDto.md +19 -45
  8. data/docs/AppDto.md +9 -25
  9. data/docs/AppsApi.md +181 -363
  10. data/docs/Body.md +7 -0
  11. data/docs/ConfigsApi.md +28 -68
  12. data/docs/ConfirmMode.md +3 -12
  13. data/docs/CreateEmailTemplateDto.md +4 -15
  14. data/docs/EmailTemplateDto.md +6 -19
  15. data/docs/EmailTemplatesDto.md +6 -0
  16. data/docs/EmailVerificationStatus.md +3 -12
  17. data/docs/ErrorDto.md +8 -23
  18. data/docs/EventDto.md +15 -37
  19. data/docs/EventProperties.md +6 -0
  20. data/docs/EventsApi.md +43 -80
  21. data/docs/IsoDayOfWeek.md +3 -12
  22. data/docs/ListResponseDtoOfEventDto.md +5 -17
  23. data/docs/ListResponseDtoOfLogEntryDto.md +5 -17
  24. data/docs/ListResponseDtoOfMediaDto.md +5 -17
  25. data/docs/ListResponseDtoOfSubscriptionDto.md +5 -17
  26. data/docs/ListResponseDtoOfTemplateDto.md +5 -17
  27. data/docs/ListResponseDtoOfTopicDto.md +5 -17
  28. data/docs/ListResponseDtoOfUserDto.md +5 -17
  29. data/docs/LocalizedText.md +6 -0
  30. data/docs/LogEntryDto.md +7 -21
  31. data/docs/LogsApi.md +25 -44
  32. data/docs/MediaApi.md +118 -212
  33. data/docs/MediaDto.md +10 -27
  34. data/docs/MediaMetadata.md +6 -0
  35. data/docs/MediaType.md +3 -12
  36. data/docs/NotificationFormattingDto.md +11 -29
  37. data/docs/NotificationSend.md +3 -12
  38. data/docs/NotificationSettingDto.md +5 -17
  39. data/docs/ProfileDto.md +11 -29
  40. data/docs/PublishDto.md +13 -33
  41. data/docs/PublishManyDto.md +4 -15
  42. data/docs/ResizeMode.md +3 -12
  43. data/docs/SchedulingDto.md +7 -21
  44. data/docs/SchedulingType.md +3 -12
  45. data/docs/SubscriptionDto.md +5 -17
  46. data/docs/TemplateDto.md +6 -19
  47. data/docs/TemplatesApi.md +61 -116
  48. data/docs/TopicDto.md +6 -19
  49. data/docs/TopicsApi.md +25 -44
  50. data/docs/UpdateProfileDto.md +9 -25
  51. data/docs/UpsertAppDto.md +13 -33
  52. data/docs/UpsertTemplateDto.md +6 -19
  53. data/docs/UpsertTemplatesDto.md +4 -15
  54. data/docs/UpsertUserDto.md +11 -29
  55. data/docs/UpsertUsersDto.md +4 -15
  56. data/docs/UserApi.md +84 -176
  57. data/docs/UserDto.md +13 -33
  58. data/docs/UsersApi.md +173 -337
  59. data/git_push.sh +7 -10
  60. data/lib/swagger_client.rb +93 -0
  61. data/lib/{notifo → swagger_client}/api/apps_api.rb +131 -203
  62. data/lib/{notifo → swagger_client}/api/configs_api.rb +15 -31
  63. data/lib/{notifo → swagger_client}/api/events_api.rb +30 -46
  64. data/lib/{notifo → swagger_client}/api/logs_api.rb +13 -22
  65. data/lib/{notifo → swagger_client}/api/media_api.rb +61 -98
  66. data/lib/{notifo → swagger_client}/api/templates_api.rb +40 -63
  67. data/lib/{notifo → swagger_client}/api/topics_api.rb +13 -22
  68. data/lib/{notifo → swagger_client}/api/user_api.rb +52 -89
  69. data/lib/{notifo → swagger_client}/api/users_api.rb +122 -187
  70. data/lib/{notifo → swagger_client}/api_client.rb +55 -57
  71. data/lib/{notifo → swagger_client}/api_error.rb +6 -6
  72. data/lib/{notifo → swagger_client}/configuration.rb +12 -84
  73. data/lib/{notifo → swagger_client}/models/add_allowed_topic_dto.rb +16 -47
  74. data/lib/swagger_client/models/add_contributor_dto.rb +227 -0
  75. data/lib/swagger_client/models/app_contributor_dto.rb +242 -0
  76. data/lib/{notifo → swagger_client}/models/app_details_dto.rb +31 -106
  77. data/lib/{notifo → swagger_client}/models/app_dto.rb +21 -90
  78. data/lib/swagger_client/models/body.rb +206 -0
  79. data/lib/swagger_client/models/confirm_mode.rb +29 -0
  80. data/lib/{notifo → swagger_client}/models/create_email_template_dto.rb +16 -47
  81. data/lib/swagger_client/models/email_template_dto.rb +237 -0
  82. data/lib/swagger_client/models/email_templates_dto.rb +201 -0
  83. data/lib/swagger_client/models/email_verification_status.rb +30 -0
  84. data/lib/{notifo → swagger_client}/models/error_dto.rb +20 -36
  85. data/lib/{notifo → swagger_client}/models/event_dto.rb +27 -117
  86. data/lib/swagger_client/models/event_properties.rb +201 -0
  87. data/lib/swagger_client/models/iso_day_of_week.rb +34 -0
  88. data/lib/{notifo/models/list_response_dto_of_subscription_dto.rb → swagger_client/models/list_response_dto_of_event_dto.rb} +18 -30
  89. data/lib/{notifo → swagger_client}/models/list_response_dto_of_log_entry_dto.rb +17 -29
  90. data/lib/{notifo → swagger_client}/models/list_response_dto_of_media_dto.rb +17 -29
  91. data/lib/{notifo/models/list_response_dto_of_event_dto.rb → swagger_client/models/list_response_dto_of_subscription_dto.rb} +18 -30
  92. data/lib/{notifo → swagger_client}/models/list_response_dto_of_template_dto.rb +17 -29
  93. data/lib/{notifo → swagger_client}/models/list_response_dto_of_topic_dto.rb +17 -29
  94. data/lib/{notifo → swagger_client}/models/list_response_dto_of_user_dto.rb +17 -29
  95. data/lib/swagger_client/models/localized_text.rb +201 -0
  96. data/lib/{notifo → swagger_client}/models/log_entry_dto.rb +19 -88
  97. data/lib/{notifo → swagger_client}/models/media_dto.rb +23 -113
  98. data/lib/swagger_client/models/media_metadata.rb +201 -0
  99. data/lib/swagger_client/models/media_type.rb +30 -0
  100. data/lib/{notifo → swagger_client}/models/notification_formatting_dto.rb +30 -56
  101. data/lib/swagger_client/models/notification_send.rb +30 -0
  102. data/lib/{notifo → swagger_client}/models/notification_setting_dto.rb +26 -39
  103. data/lib/{notifo → swagger_client}/models/profile_dto.rb +23 -76
  104. data/lib/{notifo → swagger_client}/models/publish_dto.rb +26 -63
  105. data/lib/{notifo → swagger_client}/models/publish_many_dto.rb +16 -28
  106. data/lib/swagger_client/models/resize_mode.rb +33 -0
  107. data/lib/{notifo → swagger_client}/models/scheduling_dto.rb +19 -32
  108. data/lib/swagger_client/models/scheduling_type.rb +28 -0
  109. data/lib/{notifo → swagger_client}/models/subscription_dto.rb +17 -49
  110. data/lib/{notifo → swagger_client}/models/template_dto.rb +18 -49
  111. data/lib/{notifo → swagger_client}/models/topic_dto.rb +18 -68
  112. data/lib/{notifo → swagger_client}/models/update_profile_dto.rb +21 -39
  113. data/lib/{notifo → swagger_client}/models/upsert_app_dto.rb +25 -47
  114. data/lib/{notifo → swagger_client}/models/upsert_template_dto.rb +18 -50
  115. data/lib/{notifo → swagger_client}/models/upsert_templates_dto.rb +16 -28
  116. data/lib/{notifo → swagger_client}/models/upsert_user_dto.rb +23 -43
  117. data/lib/{notifo → swagger_client}/models/upsert_users_dto.rb +16 -28
  118. data/lib/{notifo → swagger_client}/models/user_dto.rb +25 -80
  119. data/lib/swagger_client/version.rb +14 -0
  120. data/spec/api/apps_api_spec.rb +14 -15
  121. data/spec/api/configs_api_spec.rb +8 -9
  122. data/spec/api/events_api_spec.rb +9 -10
  123. data/spec/api/logs_api_spec.rb +8 -9
  124. data/spec/api/media_api_spec.rb +13 -14
  125. data/spec/api/templates_api_spec.rb +9 -10
  126. data/spec/api/topics_api_spec.rb +8 -9
  127. data/spec/api/user_api_spec.rb +10 -11
  128. data/spec/api/users_api_spec.rb +11 -12
  129. data/spec/api_client_spec.rb +34 -35
  130. data/spec/base_object_spec.rb +109 -0
  131. data/spec/configuration_spec.rb +7 -8
  132. data/spec/models/add_allowed_topic_dto_spec.rb +16 -10
  133. data/spec/models/add_contributor_dto_spec.rb +16 -10
  134. data/spec/models/app_contributor_dto_spec.rb +16 -10
  135. data/spec/models/app_details_dto_spec.rb +16 -10
  136. data/spec/models/app_dto_spec.rb +16 -10
  137. data/spec/models/body_spec.rb +40 -0
  138. data/spec/models/confirm_mode_spec.rb +16 -10
  139. data/spec/models/create_email_template_dto_spec.rb +16 -10
  140. data/spec/models/email_template_dto_spec.rb +16 -10
  141. data/spec/models/email_templates_dto_spec.rb +34 -0
  142. data/spec/models/email_verification_status_spec.rb +16 -10
  143. data/spec/models/error_dto_spec.rb +16 -10
  144. data/spec/models/event_dto_spec.rb +16 -10
  145. data/spec/models/event_properties_spec.rb +34 -0
  146. data/spec/models/iso_day_of_week_spec.rb +16 -10
  147. data/spec/models/list_response_dto_of_event_dto_spec.rb +16 -10
  148. data/spec/models/list_response_dto_of_log_entry_dto_spec.rb +16 -10
  149. data/spec/models/list_response_dto_of_media_dto_spec.rb +16 -10
  150. data/spec/models/list_response_dto_of_subscription_dto_spec.rb +16 -10
  151. data/spec/models/list_response_dto_of_template_dto_spec.rb +16 -10
  152. data/spec/models/list_response_dto_of_topic_dto_spec.rb +16 -10
  153. data/spec/models/list_response_dto_of_user_dto_spec.rb +16 -10
  154. data/spec/models/localized_text_spec.rb +34 -0
  155. data/spec/models/log_entry_dto_spec.rb +16 -10
  156. data/spec/models/media_dto_spec.rb +16 -10
  157. data/spec/models/media_metadata_spec.rb +34 -0
  158. data/spec/models/media_type_spec.rb +16 -10
  159. data/spec/models/notification_formatting_dto_spec.rb +16 -10
  160. data/spec/models/notification_send_spec.rb +16 -10
  161. data/spec/models/notification_setting_dto_spec.rb +17 -11
  162. data/spec/models/profile_dto_spec.rb +16 -10
  163. data/spec/models/publish_dto_spec.rb +16 -10
  164. data/spec/models/publish_many_dto_spec.rb +16 -10
  165. data/spec/models/resize_mode_spec.rb +16 -10
  166. data/spec/models/scheduling_dto_spec.rb +16 -10
  167. data/spec/models/scheduling_type_spec.rb +16 -10
  168. data/spec/models/subscription_dto_spec.rb +16 -10
  169. data/spec/models/template_dto_spec.rb +16 -10
  170. data/spec/models/topic_dto_spec.rb +16 -10
  171. data/spec/models/update_profile_dto_spec.rb +16 -10
  172. data/spec/models/upsert_app_dto_spec.rb +16 -10
  173. data/spec/models/upsert_template_dto_spec.rb +16 -10
  174. data/spec/models/upsert_templates_dto_spec.rb +16 -10
  175. data/spec/models/upsert_user_dto_spec.rb +16 -10
  176. data/spec/models/upsert_users_dto_spec.rb +16 -10
  177. data/spec/models/user_dto_spec.rb +16 -10
  178. data/spec/spec_helper.rb +5 -6
  179. data/{notifo.gemspec → swagger_client.gemspec} +9 -9
  180. metadata +101 -60
  181. data/lib/notifo.rb +0 -89
  182. data/lib/notifo/models/add_contributor_dto.rb +0 -277
  183. data/lib/notifo/models/app_contributor_dto.rb +0 -311
  184. data/lib/notifo/models/confirm_mode.rb +0 -38
  185. data/lib/notifo/models/email_template_dto.rb +0 -288
  186. data/lib/notifo/models/email_verification_status.rb +0 -39
  187. data/lib/notifo/models/iso_day_of_week.rb +0 -43
  188. data/lib/notifo/models/media_type.rb +0 -39
  189. data/lib/notifo/models/notification_send.rb +0 -39
  190. data/lib/notifo/models/resize_mode.rb +0 -42
  191. data/lib/notifo/models/scheduling_type.rb +0 -37
  192. data/lib/notifo/version.rb +0 -15
  193. data/notifo-io-1.0.0.gem +0 -0
data/Rakefile CHANGED
@@ -1,5 +1,3 @@
1
- require "bundler/gem_tasks"
2
-
3
1
  begin
4
2
  require 'rspec/core/rake_task'
5
3
 
@@ -1,18 +1,7 @@
1
- # Notifo::AddAllowedTopicDto
1
+ # SwaggerClient::AddAllowedTopicDto
2
2
 
3
3
  ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **prefix** | **String** | The topic to add. | |
8
-
9
- ## Example
10
-
11
- ```ruby
12
- require 'notifo'
13
-
14
- instance = Notifo::AddAllowedTopicDto.new(
15
- prefix: null
16
- )
17
- ```
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **prefix** | **String** | The topic to add. |
18
7
 
@@ -1,20 +1,8 @@
1
- # Notifo::AddContributorDto
1
+ # SwaggerClient::AddContributorDto
2
2
 
3
3
  ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **email** | **String** | The email of the new contributor. | |
8
- | **role** | **String** | The role. | |
9
-
10
- ## Example
11
-
12
- ```ruby
13
- require 'notifo'
14
-
15
- instance = Notifo::AddContributorDto.new(
16
- email: null,
17
- role: null
18
- )
19
- ```
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **email** | **String** | The email of the new contributor. |
7
+ **role** | **String** | The role. |
20
8
 
@@ -1,22 +1,9 @@
1
- # Notifo::AppContributorDto
1
+ # SwaggerClient::AppContributorDto
2
2
 
3
3
  ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **user_id** | **String** | The id of the user. | |
8
- | **user_name** | **String** | The name of the user. | |
9
- | **role** | **String** | The role. | |
10
-
11
- ## Example
12
-
13
- ```ruby
14
- require 'notifo'
15
-
16
- instance = Notifo::AppContributorDto.new(
17
- user_id: null,
18
- user_name: null,
19
- role: null
20
- )
21
- ```
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **user_id** | **String** | The id of the user. |
7
+ **user_name** | **String** | The name of the user. |
8
+ **role** | **String** | The role. |
22
9
 
@@ -1,48 +1,22 @@
1
- # Notifo::AppDetailsDto
1
+ # SwaggerClient::AppDetailsDto
2
2
 
3
3
  ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | The id of the app. | |
8
- | **name** | **String** | The app name. | |
9
- | **role** | **String** | The current role. | |
10
- | **languages** | **Array<String>** | The supported languages. | |
11
- | **email_address** | **String** | The sender email address. | [optional] |
12
- | **email_name** | **String** | The sender email name. | [optional] |
13
- | **firebase_project** | **String** | The firebase project ID. | [optional] |
14
- | **firebase_credential** | **String** | The firebase credentials. | [optional] |
15
- | **webhook_url** | **String** | The webhook URL. | [optional] |
16
- | **confirm_url** | **String** | The confirm URL. | [optional] |
17
- | **allow_email** | **Boolean** | True, when emails are allowed. | |
18
- | **allow_sms** | **Boolean** | True, when SMS are allowed. | |
19
- | **email_verification_status** | [**EmailVerificationStatus**](EmailVerificationStatus.md) | | |
20
- | **api_keys** | **Hash<String, String>** | The api keys. | |
21
- | **contributors** | [**Array<AppContributorDto>**](AppContributorDto.md) | The contributors. | |
22
- | **counters** | **Hash<String, Integer>** | The statistics counters. | |
23
-
24
- ## Example
25
-
26
- ```ruby
27
- require 'notifo'
28
-
29
- instance = Notifo::AppDetailsDto.new(
30
- id: null,
31
- name: null,
32
- role: null,
33
- languages: null,
34
- email_address: null,
35
- email_name: null,
36
- firebase_project: null,
37
- firebase_credential: null,
38
- webhook_url: null,
39
- confirm_url: null,
40
- allow_email: null,
41
- allow_sms: null,
42
- email_verification_status: null,
43
- api_keys: null,
44
- contributors: null,
45
- counters: null
46
- )
47
- ```
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | The id of the app. |
7
+ **name** | **String** | The app name. |
8
+ **role** | **String** | The current role. |
9
+ **languages** | **Array<String>** | The supported languages. |
10
+ **email_address** | **String** | The sender email address. | [optional]
11
+ **email_name** | **String** | The sender email name. | [optional]
12
+ **firebase_project** | **String** | The firebase project ID. | [optional]
13
+ **firebase_credential** | **String** | The firebase credentials. | [optional]
14
+ **webhook_url** | **String** | The webhook URL. | [optional]
15
+ **confirm_url** | **String** | The confirm URL. | [optional]
16
+ **allow_email** | **BOOLEAN** | True, when emails are allowed. |
17
+ **allow_sms** | **BOOLEAN** | True, when SMS are allowed. |
18
+ **email_verification_status** | [**EmailVerificationStatus**](EmailVerificationStatus.md) | |
19
+ **api_keys** | **Hash<String, String>** | The api keys. |
20
+ **contributors** | [**Array<AppContributorDto>**](AppContributorDto.md) | The contributors. |
21
+ **counters** | **Hash<String, Integer>** | The statistics counters. |
48
22
 
data/docs/AppDto.md CHANGED
@@ -1,28 +1,12 @@
1
- # Notifo::AppDto
1
+ # SwaggerClient::AppDto
2
2
 
3
3
  ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **id** | **String** | The id of the app. | |
8
- | **name** | **String** | The app name. | |
9
- | **role** | **String** | The current role. | |
10
- | **languages** | **Array<String>** | The supported languages. | |
11
- | **api_keys** | **Hash<String, String>** | The api keys. | |
12
- | **counters** | **Hash<String, Integer>** | The statistics counters. | |
13
-
14
- ## Example
15
-
16
- ```ruby
17
- require 'notifo'
18
-
19
- instance = Notifo::AppDto.new(
20
- id: null,
21
- name: null,
22
- role: null,
23
- languages: null,
24
- api_keys: null,
25
- counters: null
26
- )
27
- ```
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | The id of the app. |
7
+ **name** | **String** | The app name. |
8
+ **role** | **String** | The current role. |
9
+ **languages** | **Array<String>** | The supported languages. |
10
+ **api_keys** | **Hash<String, String>** | The api keys. |
11
+ **counters** | **Hash<String, Integer>** | The statistics counters. |
28
12
 
data/docs/AppsApi.md CHANGED
@@ -1,70 +1,50 @@
1
- # Notifo::AppsApi
2
-
3
- All URIs are relative to *https://notifo.easierlife.com*
4
-
5
- | Method | HTTP request | Description |
6
- | ------ | ------------ | ----------- |
7
- | [**apps_delete_contributor**](AppsApi.md#apps_delete_contributor) | **POST** /api/apps/{appId}/contributors/{contributorId} | Delete an app contributor. |
8
- | [**apps_delete_email_template**](AppsApi.md#apps_delete_email_template) | **POST** /api/apps/{appId}/email-templates/{language} | Delete an app email template. |
9
- | [**apps_get_app**](AppsApi.md#apps_get_app) | **GET** /api/apps/{appId} | Get app by id. |
10
- | [**apps_get_apps**](AppsApi.md#apps_get_apps) | **GET** /api/apps | Get the user apps. |
11
- | [**apps_get_email_templates**](AppsApi.md#apps_get_email_templates) | **GET** /api/apps/{appId}/email-templates | Get the app email templates. |
12
- | [**apps_post_app**](AppsApi.md#apps_post_app) | **POST** /api/apps | Create an app. |
13
- | [**apps_post_contributor**](AppsApi.md#apps_post_contributor) | **POST** /api/apps/{appId}/contributors | Add an app contributor. |
14
- | [**apps_post_email_template**](AppsApi.md#apps_post_email_template) | **POST** /api/apps/{appId}/email-templates | Create an app email template. |
15
- | [**apps_put_app**](AppsApi.md#apps_put_app) | **POST** /api/apps/{appId} | Update an app. |
16
- | [**apps_put_email_template**](AppsApi.md#apps_put_email_template) | **PUT** /api/apps/{appId}/email-templates/{language} | Update an app email template. |
17
-
18
-
19
- ## apps_delete_contributor
20
-
21
- > <AppDetailsDto> apps_delete_contributor(app_id, contributor_id)
1
+ # SwaggerClient::AppsApi
2
+
3
+ All URIs are relative to *https://app.notifo.io*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**apps_delete_contributor**](AppsApi.md#apps_delete_contributor) | **POST** /api/apps/{appId}/contributors/{contributorId} | Delete an app contributor.
8
+ [**apps_delete_email_template**](AppsApi.md#apps_delete_email_template) | **POST** /api/apps/{appId}/email-templates/{language} | Delete an app email template.
9
+ [**apps_get_app**](AppsApi.md#apps_get_app) | **GET** /api/apps/{appId} | Get app by id.
10
+ [**apps_get_apps**](AppsApi.md#apps_get_apps) | **GET** /api/apps | Get the user apps.
11
+ [**apps_get_email_templates**](AppsApi.md#apps_get_email_templates) | **GET** /api/apps/{appId}/email-templates | Get the app email templates.
12
+ [**apps_post_app**](AppsApi.md#apps_post_app) | **POST** /api/apps | Create an app.
13
+ [**apps_post_contributor**](AppsApi.md#apps_post_contributor) | **POST** /api/apps/{appId}/contributors | Add an app contributor.
14
+ [**apps_post_email_template**](AppsApi.md#apps_post_email_template) | **POST** /api/apps/{appId}/email-templates | Create an app email template.
15
+ [**apps_put_app**](AppsApi.md#apps_put_app) | **POST** /api/apps/{appId} | Update an app.
16
+ [**apps_put_email_template**](AppsApi.md#apps_put_email_template) | **PUT** /api/apps/{appId}/email-templates/{language} | Update an app email template.
17
+
18
+ # **apps_delete_contributor**
19
+ > AppDetailsDto apps_delete_contributor(app_id, contributor_id)
22
20
 
23
21
  Delete an app contributor.
24
22
 
25
- ### Examples
26
-
23
+ ### Example
27
24
  ```ruby
28
- require 'time'
29
- require 'notifo'
25
+ # load the gem
26
+ require 'swagger_client'
30
27
 
31
- api_instance = Notifo::AppsApi.new
28
+ api_instance = SwaggerClient::AppsApi.new
32
29
  app_id = 'app_id_example' # String | The id of the app.
33
30
  contributor_id = 'contributor_id_example' # String | The contributor to remove.
34
31
 
32
+
35
33
  begin
36
- # Delete an app contributor.
34
+ #Delete an app contributor.
37
35
  result = api_instance.apps_delete_contributor(app_id, contributor_id)
38
36
  p result
39
- rescue Notifo::ApiError => e
40
- puts "Error when calling AppsApi->apps_delete_contributor: #{e}"
41
- end
42
- ```
43
-
44
- #### Using the apps_delete_contributor_with_http_info variant
45
-
46
- This returns an Array which contains the response data, status code and headers.
47
-
48
- > <Array(<AppDetailsDto>, Integer, Hash)> apps_delete_contributor_with_http_info(app_id, contributor_id)
49
-
50
- ```ruby
51
- begin
52
- # Delete an app contributor.
53
- data, status_code, headers = api_instance.apps_delete_contributor_with_http_info(app_id, contributor_id)
54
- p status_code # => 2xx
55
- p headers # => { ... }
56
- p data # => <AppDetailsDto>
57
- rescue Notifo::ApiError => e
58
- puts "Error when calling AppsApi->apps_delete_contributor_with_http_info: #{e}"
37
+ rescue SwaggerClient::ApiError => e
38
+ puts "Exception when calling AppsApi->apps_delete_contributor: #{e}"
59
39
  end
60
40
  ```
61
41
 
62
42
  ### Parameters
63
43
 
64
- | Name | Type | Description | Notes |
65
- | ---- | ---- | ----------- | ----- |
66
- | **app_id** | **String** | The id of the app. | |
67
- | **contributor_id** | **String** | The contributor to remove. | |
44
+ Name | Type | Description | Notes
45
+ ------------- | ------------- | ------------- | -------------
46
+ **app_id** | **String**| The id of the app. |
47
+ **contributor_id** | **String**| The contributor to remove. |
68
48
 
69
49
  ### Return type
70
50
 
@@ -76,58 +56,40 @@ No authorization required
76
56
 
77
57
  ### HTTP request headers
78
58
 
79
- - **Content-Type**: Not defined
80
- - **Accept**: application/json
59
+ - **Content-Type**: Not defined
60
+ - **Accept**: application/json
81
61
 
82
62
 
83
- ## apps_delete_email_template
84
63
 
64
+ # **apps_delete_email_template**
85
65
  > apps_delete_email_template(app_id, language)
86
66
 
87
67
  Delete an app email template.
88
68
 
89
- ### Examples
90
-
69
+ ### Example
91
70
  ```ruby
92
- require 'time'
93
- require 'notifo'
71
+ # load the gem
72
+ require 'swagger_client'
94
73
 
95
- api_instance = Notifo::AppsApi.new
74
+ api_instance = SwaggerClient::AppsApi.new
96
75
  app_id = 'app_id_example' # String | The id of the app where the email templates belong to.
97
76
  language = 'language_example' # String | The language.
98
77
 
99
- begin
100
- # Delete an app email template.
101
- api_instance.apps_delete_email_template(app_id, language)
102
- rescue Notifo::ApiError => e
103
- puts "Error when calling AppsApi->apps_delete_email_template: #{e}"
104
- end
105
- ```
106
-
107
- #### Using the apps_delete_email_template_with_http_info variant
108
78
 
109
- This returns an Array which contains the response data (`nil` in this case), status code and headers.
110
-
111
- > <Array(nil, Integer, Hash)> apps_delete_email_template_with_http_info(app_id, language)
112
-
113
- ```ruby
114
79
  begin
115
- # Delete an app email template.
116
- data, status_code, headers = api_instance.apps_delete_email_template_with_http_info(app_id, language)
117
- p status_code # => 2xx
118
- p headers # => { ... }
119
- p data # => nil
120
- rescue Notifo::ApiError => e
121
- puts "Error when calling AppsApi->apps_delete_email_template_with_http_info: #{e}"
80
+ #Delete an app email template.
81
+ api_instance.apps_delete_email_template(app_id, language)
82
+ rescue SwaggerClient::ApiError => e
83
+ puts "Exception when calling AppsApi->apps_delete_email_template: #{e}"
122
84
  end
123
85
  ```
124
86
 
125
87
  ### Parameters
126
88
 
127
- | Name | Type | Description | Notes |
128
- | ---- | ---- | ----------- | ----- |
129
- | **app_id** | **String** | The id of the app where the email templates belong to. | |
130
- | **language** | **String** | The language. | |
89
+ Name | Type | Description | Notes
90
+ ------------- | ------------- | ------------- | -------------
91
+ **app_id** | **String**| The id of the app where the email templates belong to. |
92
+ **language** | **String**| The language. |
131
93
 
132
94
  ### Return type
133
95
 
@@ -139,57 +101,39 @@ No authorization required
139
101
 
140
102
  ### HTTP request headers
141
103
 
142
- - **Content-Type**: Not defined
143
- - **Accept**: application/json
104
+ - **Content-Type**: Not defined
105
+ - **Accept**: application/json
144
106
 
145
107
 
146
- ## apps_get_app
147
108
 
148
- > <AppDetailsDto> apps_get_app(app_id)
109
+ # **apps_get_app**
110
+ > AppDetailsDto apps_get_app(app_id)
149
111
 
150
112
  Get app by id.
151
113
 
152
- ### Examples
153
-
114
+ ### Example
154
115
  ```ruby
155
- require 'time'
156
- require 'notifo'
116
+ # load the gem
117
+ require 'swagger_client'
157
118
 
158
- api_instance = Notifo::AppsApi.new
119
+ api_instance = SwaggerClient::AppsApi.new
159
120
  app_id = 'app_id_example' # String | The id of the app.
160
121
 
122
+
161
123
  begin
162
- # Get app by id.
124
+ #Get app by id.
163
125
  result = api_instance.apps_get_app(app_id)
164
126
  p result
165
- rescue Notifo::ApiError => e
166
- puts "Error when calling AppsApi->apps_get_app: #{e}"
167
- end
168
- ```
169
-
170
- #### Using the apps_get_app_with_http_info variant
171
-
172
- This returns an Array which contains the response data, status code and headers.
173
-
174
- > <Array(<AppDetailsDto>, Integer, Hash)> apps_get_app_with_http_info(app_id)
175
-
176
- ```ruby
177
- begin
178
- # Get app by id.
179
- data, status_code, headers = api_instance.apps_get_app_with_http_info(app_id)
180
- p status_code # => 2xx
181
- p headers # => { ... }
182
- p data # => <AppDetailsDto>
183
- rescue Notifo::ApiError => e
184
- puts "Error when calling AppsApi->apps_get_app_with_http_info: #{e}"
127
+ rescue SwaggerClient::ApiError => e
128
+ puts "Exception when calling AppsApi->apps_get_app: #{e}"
185
129
  end
186
130
  ```
187
131
 
188
132
  ### Parameters
189
133
 
190
- | Name | Type | Description | Notes |
191
- | ---- | ---- | ----------- | ----- |
192
- | **app_id** | **String** | The id of the app. | |
134
+ Name | Type | Description | Notes
135
+ ------------- | ------------- | ------------- | -------------
136
+ **app_id** | **String**| The id of the app. |
193
137
 
194
138
  ### Return type
195
139
 
@@ -201,53 +145,33 @@ No authorization required
201
145
 
202
146
  ### HTTP request headers
203
147
 
204
- - **Content-Type**: Not defined
205
- - **Accept**: application/json
148
+ - **Content-Type**: Not defined
149
+ - **Accept**: application/json
206
150
 
207
151
 
208
- ## apps_get_apps
209
152
 
210
- > <Array<AppDto>> apps_get_apps
153
+ # **apps_get_apps**
154
+ > Array&lt;AppDto&gt; apps_get_apps
211
155
 
212
156
  Get the user apps.
213
157
 
214
- ### Examples
215
-
158
+ ### Example
216
159
  ```ruby
217
- require 'time'
218
- require 'notifo'
160
+ # load the gem
161
+ require 'swagger_client'
219
162
 
220
- api_instance = Notifo::AppsApi.new
163
+ api_instance = SwaggerClient::AppsApi.new
221
164
 
222
165
  begin
223
- # Get the user apps.
166
+ #Get the user apps.
224
167
  result = api_instance.apps_get_apps
225
168
  p result
226
- rescue Notifo::ApiError => e
227
- puts "Error when calling AppsApi->apps_get_apps: #{e}"
228
- end
229
- ```
230
-
231
- #### Using the apps_get_apps_with_http_info variant
232
-
233
- This returns an Array which contains the response data, status code and headers.
234
-
235
- > <Array(<Array<AppDto>>, Integer, Hash)> apps_get_apps_with_http_info
236
-
237
- ```ruby
238
- begin
239
- # Get the user apps.
240
- data, status_code, headers = api_instance.apps_get_apps_with_http_info
241
- p status_code # => 2xx
242
- p headers # => { ... }
243
- p data # => <Array<AppDto>>
244
- rescue Notifo::ApiError => e
245
- puts "Error when calling AppsApi->apps_get_apps_with_http_info: #{e}"
169
+ rescue SwaggerClient::ApiError => e
170
+ puts "Exception when calling AppsApi->apps_get_apps: #{e}"
246
171
  end
247
172
  ```
248
173
 
249
174
  ### Parameters
250
-
251
175
  This endpoint does not need any parameter.
252
176
 
253
177
  ### Return type
@@ -260,61 +184,43 @@ No authorization required
260
184
 
261
185
  ### HTTP request headers
262
186
 
263
- - **Content-Type**: Not defined
264
- - **Accept**: application/json
187
+ - **Content-Type**: Not defined
188
+ - **Accept**: application/json
265
189
 
266
190
 
267
- ## apps_get_email_templates
268
191
 
269
- > <Hash<String, EmailTemplateDto>> apps_get_email_templates(app_id)
192
+ # **apps_get_email_templates**
193
+ > EmailTemplatesDto apps_get_email_templates(app_id)
270
194
 
271
195
  Get the app email templates.
272
196
 
273
- ### Examples
274
-
197
+ ### Example
275
198
  ```ruby
276
- require 'time'
277
- require 'notifo'
199
+ # load the gem
200
+ require 'swagger_client'
278
201
 
279
- api_instance = Notifo::AppsApi.new
202
+ api_instance = SwaggerClient::AppsApi.new
280
203
  app_id = 'app_id_example' # String | The id of the app where the email templates belong to.
281
204
 
205
+
282
206
  begin
283
- # Get the app email templates.
207
+ #Get the app email templates.
284
208
  result = api_instance.apps_get_email_templates(app_id)
285
209
  p result
286
- rescue Notifo::ApiError => e
287
- puts "Error when calling AppsApi->apps_get_email_templates: #{e}"
288
- end
289
- ```
290
-
291
- #### Using the apps_get_email_templates_with_http_info variant
292
-
293
- This returns an Array which contains the response data, status code and headers.
294
-
295
- > <Array(<Hash<String, EmailTemplateDto>>, Integer, Hash)> apps_get_email_templates_with_http_info(app_id)
296
-
297
- ```ruby
298
- begin
299
- # Get the app email templates.
300
- data, status_code, headers = api_instance.apps_get_email_templates_with_http_info(app_id)
301
- p status_code # => 2xx
302
- p headers # => { ... }
303
- p data # => <Hash<String, EmailTemplateDto>>
304
- rescue Notifo::ApiError => e
305
- puts "Error when calling AppsApi->apps_get_email_templates_with_http_info: #{e}"
210
+ rescue SwaggerClient::ApiError => e
211
+ puts "Exception when calling AppsApi->apps_get_email_templates: #{e}"
306
212
  end
307
213
  ```
308
214
 
309
215
  ### Parameters
310
216
 
311
- | Name | Type | Description | Notes |
312
- | ---- | ---- | ----------- | ----- |
313
- | **app_id** | **String** | The id of the app where the email templates belong to. | |
217
+ Name | Type | Description | Notes
218
+ ------------- | ------------- | ------------- | -------------
219
+ **app_id** | **String**| The id of the app where the email templates belong to. |
314
220
 
315
221
  ### Return type
316
222
 
317
- [**Hash&lt;String, EmailTemplateDto&gt;**](EmailTemplateDto.md)
223
+ [**EmailTemplatesDto**](EmailTemplatesDto.md)
318
224
 
319
225
  ### Authorization
320
226
 
@@ -322,57 +228,39 @@ No authorization required
322
228
 
323
229
  ### HTTP request headers
324
230
 
325
- - **Content-Type**: Not defined
326
- - **Accept**: application/json
231
+ - **Content-Type**: Not defined
232
+ - **Accept**: application/json
327
233
 
328
234
 
329
- ## apps_post_app
330
235
 
331
- > <AppDto> apps_post_app(upsert_app_dto)
236
+ # **apps_post_app**
237
+ > AppDto apps_post_app(body)
332
238
 
333
239
  Create an app.
334
240
 
335
- ### Examples
336
-
241
+ ### Example
337
242
  ```ruby
338
- require 'time'
339
- require 'notifo'
243
+ # load the gem
244
+ require 'swagger_client'
340
245
 
341
- api_instance = Notifo::AppsApi.new
342
- upsert_app_dto = Notifo::UpsertAppDto.new # UpsertAppDto | The request object.
246
+ api_instance = SwaggerClient::AppsApi.new
247
+ body = SwaggerClient::UpsertAppDto.new # UpsertAppDto | The request object.
343
248
 
344
- begin
345
- # Create an app.
346
- result = api_instance.apps_post_app(upsert_app_dto)
347
- p result
348
- rescue Notifo::ApiError => e
349
- puts "Error when calling AppsApi->apps_post_app: #{e}"
350
- end
351
- ```
352
249
 
353
- #### Using the apps_post_app_with_http_info variant
354
-
355
- This returns an Array which contains the response data, status code and headers.
356
-
357
- > <Array(<AppDto>, Integer, Hash)> apps_post_app_with_http_info(upsert_app_dto)
358
-
359
- ```ruby
360
250
  begin
361
- # Create an app.
362
- data, status_code, headers = api_instance.apps_post_app_with_http_info(upsert_app_dto)
363
- p status_code # => 2xx
364
- p headers # => { ... }
365
- p data # => <AppDto>
366
- rescue Notifo::ApiError => e
367
- puts "Error when calling AppsApi->apps_post_app_with_http_info: #{e}"
251
+ #Create an app.
252
+ result = api_instance.apps_post_app(body)
253
+ p result
254
+ rescue SwaggerClient::ApiError => e
255
+ puts "Exception when calling AppsApi->apps_post_app: #{e}"
368
256
  end
369
257
  ```
370
258
 
371
259
  ### Parameters
372
260
 
373
- | Name | Type | Description | Notes |
374
- | ---- | ---- | ----------- | ----- |
375
- | **upsert_app_dto** | [**UpsertAppDto**](UpsertAppDto.md) | The request object. | |
261
+ Name | Type | Description | Notes
262
+ ------------- | ------------- | ------------- | -------------
263
+ **body** | [**UpsertAppDto**](UpsertAppDto.md)| The request object. |
376
264
 
377
265
  ### Return type
378
266
 
@@ -384,59 +272,41 @@ No authorization required
384
272
 
385
273
  ### HTTP request headers
386
274
 
387
- - **Content-Type**: application/json
388
- - **Accept**: application/json
275
+ - **Content-Type**: application/json
276
+ - **Accept**: application/json
389
277
 
390
278
 
391
- ## apps_post_contributor
392
279
 
393
- > <AppDetailsDto> apps_post_contributor(app_id, add_contributor_dto)
280
+ # **apps_post_contributor**
281
+ > AppDetailsDto apps_post_contributor(bodyapp_id)
394
282
 
395
283
  Add an app contributor.
396
284
 
397
- ### Examples
398
-
285
+ ### Example
399
286
  ```ruby
400
- require 'time'
401
- require 'notifo'
287
+ # load the gem
288
+ require 'swagger_client'
402
289
 
403
- api_instance = Notifo::AppsApi.new
290
+ api_instance = SwaggerClient::AppsApi.new
291
+ body = SwaggerClient::AddContributorDto.new # AddContributorDto | The request object.
404
292
  app_id = 'app_id_example' # String | The id of the app.
405
- add_contributor_dto = Notifo::AddContributorDto.new({email: 'email_example', role: 'role_example'}) # AddContributorDto | The request object.
406
293
 
407
- begin
408
- # Add an app contributor.
409
- result = api_instance.apps_post_contributor(app_id, add_contributor_dto)
410
- p result
411
- rescue Notifo::ApiError => e
412
- puts "Error when calling AppsApi->apps_post_contributor: #{e}"
413
- end
414
- ```
415
-
416
- #### Using the apps_post_contributor_with_http_info variant
417
-
418
- This returns an Array which contains the response data, status code and headers.
419
-
420
- > <Array(<AppDetailsDto>, Integer, Hash)> apps_post_contributor_with_http_info(app_id, add_contributor_dto)
421
294
 
422
- ```ruby
423
295
  begin
424
- # Add an app contributor.
425
- data, status_code, headers = api_instance.apps_post_contributor_with_http_info(app_id, add_contributor_dto)
426
- p status_code # => 2xx
427
- p headers # => { ... }
428
- p data # => <AppDetailsDto>
429
- rescue Notifo::ApiError => e
430
- puts "Error when calling AppsApi->apps_post_contributor_with_http_info: #{e}"
296
+ #Add an app contributor.
297
+ result = api_instance.apps_post_contributor(bodyapp_id)
298
+ p result
299
+ rescue SwaggerClient::ApiError => e
300
+ puts "Exception when calling AppsApi->apps_post_contributor: #{e}"
431
301
  end
432
302
  ```
433
303
 
434
304
  ### Parameters
435
305
 
436
- | Name | Type | Description | Notes |
437
- | ---- | ---- | ----------- | ----- |
438
- | **app_id** | **String** | The id of the app. | |
439
- | **add_contributor_dto** | [**AddContributorDto**](AddContributorDto.md) | The request object. | |
306
+ Name | Type | Description | Notes
307
+ ------------- | ------------- | ------------- | -------------
308
+ **body** | [**AddContributorDto**](AddContributorDto.md)| The request object. |
309
+ **app_id** | **String**| The id of the app. |
440
310
 
441
311
  ### Return type
442
312
 
@@ -448,59 +318,41 @@ No authorization required
448
318
 
449
319
  ### HTTP request headers
450
320
 
451
- - **Content-Type**: application/json
452
- - **Accept**: application/json
321
+ - **Content-Type**: application/json
322
+ - **Accept**: application/json
453
323
 
454
324
 
455
- ## apps_post_email_template
456
325
 
457
- > <EmailTemplateDto> apps_post_email_template(app_id, create_email_template_dto)
326
+ # **apps_post_email_template**
327
+ > EmailTemplateDto apps_post_email_template(bodyapp_id)
458
328
 
459
329
  Create an app email template.
460
330
 
461
- ### Examples
462
-
331
+ ### Example
463
332
  ```ruby
464
- require 'time'
465
- require 'notifo'
333
+ # load the gem
334
+ require 'swagger_client'
466
335
 
467
- api_instance = Notifo::AppsApi.new
336
+ api_instance = SwaggerClient::AppsApi.new
337
+ body = SwaggerClient::CreateEmailTemplateDto.new # CreateEmailTemplateDto | The request object.
468
338
  app_id = 'app_id_example' # String | The id of the app where the email templates belong to.
469
- create_email_template_dto = Notifo::CreateEmailTemplateDto.new({language: 'language_example'}) # CreateEmailTemplateDto | The request object.
470
-
471
- begin
472
- # Create an app email template.
473
- result = api_instance.apps_post_email_template(app_id, create_email_template_dto)
474
- p result
475
- rescue Notifo::ApiError => e
476
- puts "Error when calling AppsApi->apps_post_email_template: #{e}"
477
- end
478
- ```
479
-
480
- #### Using the apps_post_email_template_with_http_info variant
481
-
482
- This returns an Array which contains the response data, status code and headers.
483
339
 
484
- > <Array(<EmailTemplateDto>, Integer, Hash)> apps_post_email_template_with_http_info(app_id, create_email_template_dto)
485
340
 
486
- ```ruby
487
341
  begin
488
- # Create an app email template.
489
- data, status_code, headers = api_instance.apps_post_email_template_with_http_info(app_id, create_email_template_dto)
490
- p status_code # => 2xx
491
- p headers # => { ... }
492
- p data # => <EmailTemplateDto>
493
- rescue Notifo::ApiError => e
494
- puts "Error when calling AppsApi->apps_post_email_template_with_http_info: #{e}"
342
+ #Create an app email template.
343
+ result = api_instance.apps_post_email_template(bodyapp_id)
344
+ p result
345
+ rescue SwaggerClient::ApiError => e
346
+ puts "Exception when calling AppsApi->apps_post_email_template: #{e}"
495
347
  end
496
348
  ```
497
349
 
498
350
  ### Parameters
499
351
 
500
- | Name | Type | Description | Notes |
501
- | ---- | ---- | ----------- | ----- |
502
- | **app_id** | **String** | The id of the app where the email templates belong to. | |
503
- | **create_email_template_dto** | [**CreateEmailTemplateDto**](CreateEmailTemplateDto.md) | The request object. | |
352
+ Name | Type | Description | Notes
353
+ ------------- | ------------- | ------------- | -------------
354
+ **body** | [**CreateEmailTemplateDto**](CreateEmailTemplateDto.md)| The request object. |
355
+ **app_id** | **String**| The id of the app where the email templates belong to. |
504
356
 
505
357
  ### Return type
506
358
 
@@ -512,59 +364,41 @@ No authorization required
512
364
 
513
365
  ### HTTP request headers
514
366
 
515
- - **Content-Type**: application/json
516
- - **Accept**: application/json
367
+ - **Content-Type**: application/json
368
+ - **Accept**: application/json
517
369
 
518
370
 
519
- ## apps_put_app
520
371
 
521
- > <AppDetailsDto> apps_put_app(app_id, upsert_app_dto)
372
+ # **apps_put_app**
373
+ > AppDetailsDto apps_put_app(bodyapp_id)
522
374
 
523
375
  Update an app.
524
376
 
525
- ### Examples
526
-
377
+ ### Example
527
378
  ```ruby
528
- require 'time'
529
- require 'notifo'
379
+ # load the gem
380
+ require 'swagger_client'
530
381
 
531
- api_instance = Notifo::AppsApi.new
382
+ api_instance = SwaggerClient::AppsApi.new
383
+ body = SwaggerClient::UpsertAppDto.new # UpsertAppDto | The request object.
532
384
  app_id = 'app_id_example' # String | The app id to update.
533
- upsert_app_dto = Notifo::UpsertAppDto.new # UpsertAppDto | The request object.
534
-
535
- begin
536
- # Update an app.
537
- result = api_instance.apps_put_app(app_id, upsert_app_dto)
538
- p result
539
- rescue Notifo::ApiError => e
540
- puts "Error when calling AppsApi->apps_put_app: #{e}"
541
- end
542
- ```
543
-
544
- #### Using the apps_put_app_with_http_info variant
545
385
 
546
- This returns an Array which contains the response data, status code and headers.
547
386
 
548
- > <Array(<AppDetailsDto>, Integer, Hash)> apps_put_app_with_http_info(app_id, upsert_app_dto)
549
-
550
- ```ruby
551
387
  begin
552
- # Update an app.
553
- data, status_code, headers = api_instance.apps_put_app_with_http_info(app_id, upsert_app_dto)
554
- p status_code # => 2xx
555
- p headers # => { ... }
556
- p data # => <AppDetailsDto>
557
- rescue Notifo::ApiError => e
558
- puts "Error when calling AppsApi->apps_put_app_with_http_info: #{e}"
388
+ #Update an app.
389
+ result = api_instance.apps_put_app(bodyapp_id)
390
+ p result
391
+ rescue SwaggerClient::ApiError => e
392
+ puts "Exception when calling AppsApi->apps_put_app: #{e}"
559
393
  end
560
394
  ```
561
395
 
562
396
  ### Parameters
563
397
 
564
- | Name | Type | Description | Notes |
565
- | ---- | ---- | ----------- | ----- |
566
- | **app_id** | **String** | The app id to update. | |
567
- | **upsert_app_dto** | [**UpsertAppDto**](UpsertAppDto.md) | The request object. | |
398
+ Name | Type | Description | Notes
399
+ ------------- | ------------- | ------------- | -------------
400
+ **body** | [**UpsertAppDto**](UpsertAppDto.md)| The request object. |
401
+ **app_id** | **String**| The app id to update. |
568
402
 
569
403
  ### Return type
570
404
 
@@ -576,60 +410,42 @@ No authorization required
576
410
 
577
411
  ### HTTP request headers
578
412
 
579
- - **Content-Type**: application/json
580
- - **Accept**: application/json
413
+ - **Content-Type**: application/json
414
+ - **Accept**: application/json
581
415
 
582
416
 
583
- ## apps_put_email_template
584
417
 
585
- > apps_put_email_template(app_id, language, email_template_dto)
418
+ # **apps_put_email_template**
419
+ > apps_put_email_template(bodyapp_idlanguage)
586
420
 
587
421
  Update an app email template.
588
422
 
589
- ### Examples
590
-
423
+ ### Example
591
424
  ```ruby
592
- require 'time'
593
- require 'notifo'
425
+ # load the gem
426
+ require 'swagger_client'
594
427
 
595
- api_instance = Notifo::AppsApi.new
428
+ api_instance = SwaggerClient::AppsApi.new
429
+ body = SwaggerClient::EmailTemplateDto.new # EmailTemplateDto | The request object.
596
430
  app_id = 'app_id_example' # String | The id of the app where the email templates belong to.
597
431
  language = 'language_example' # String | The language.
598
- email_template_dto = Notifo::EmailTemplateDto.new({subject: 'subject_example', body_html: 'body_html_example'}) # EmailTemplateDto | The request object.
599
432
 
600
- begin
601
- # Update an app email template.
602
- api_instance.apps_put_email_template(app_id, language, email_template_dto)
603
- rescue Notifo::ApiError => e
604
- puts "Error when calling AppsApi->apps_put_email_template: #{e}"
605
- end
606
- ```
607
433
 
608
- #### Using the apps_put_email_template_with_http_info variant
609
-
610
- This returns an Array which contains the response data (`nil` in this case), status code and headers.
611
-
612
- > <Array(nil, Integer, Hash)> apps_put_email_template_with_http_info(app_id, language, email_template_dto)
613
-
614
- ```ruby
615
434
  begin
616
- # Update an app email template.
617
- data, status_code, headers = api_instance.apps_put_email_template_with_http_info(app_id, language, email_template_dto)
618
- p status_code # => 2xx
619
- p headers # => { ... }
620
- p data # => nil
621
- rescue Notifo::ApiError => e
622
- puts "Error when calling AppsApi->apps_put_email_template_with_http_info: #{e}"
435
+ #Update an app email template.
436
+ api_instance.apps_put_email_template(bodyapp_idlanguage)
437
+ rescue SwaggerClient::ApiError => e
438
+ puts "Exception when calling AppsApi->apps_put_email_template: #{e}"
623
439
  end
624
440
  ```
625
441
 
626
442
  ### Parameters
627
443
 
628
- | Name | Type | Description | Notes |
629
- | ---- | ---- | ----------- | ----- |
630
- | **app_id** | **String** | The id of the app where the email templates belong to. | |
631
- | **language** | **String** | The language. | |
632
- | **email_template_dto** | [**EmailTemplateDto**](EmailTemplateDto.md) | The request object. | |
444
+ Name | Type | Description | Notes
445
+ ------------- | ------------- | ------------- | -------------
446
+ **body** | [**EmailTemplateDto**](EmailTemplateDto.md)| The request object. |
447
+ **app_id** | **String**| The id of the app where the email templates belong to. |
448
+ **language** | **String**| The language. |
633
449
 
634
450
  ### Return type
635
451
 
@@ -641,6 +457,8 @@ No authorization required
641
457
 
642
458
  ### HTTP request headers
643
459
 
644
- - **Content-Type**: application/json
645
- - **Accept**: application/json
460
+ - **Content-Type**: application/json
461
+ - **Accept**: application/json
462
+
463
+
646
464