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.
- checksums.yaml +4 -4
- data/README.md +599 -97
- data/Rakefile +0 -2
- data/docs/AddAllowedTopicDto.md +4 -15
- data/docs/AddContributorDto.md +5 -17
- data/docs/AppContributorDto.md +6 -19
- data/docs/AppDetailsDto.md +19 -45
- data/docs/AppDto.md +9 -25
- data/docs/AppsApi.md +181 -363
- data/docs/Body.md +7 -0
- data/docs/ConfigsApi.md +28 -68
- data/docs/ConfirmMode.md +3 -12
- data/docs/CreateEmailTemplateDto.md +4 -15
- data/docs/EmailTemplateDto.md +6 -19
- data/docs/EmailTemplatesDto.md +6 -0
- data/docs/EmailVerificationStatus.md +3 -12
- data/docs/ErrorDto.md +8 -23
- data/docs/EventDto.md +15 -37
- data/docs/EventProperties.md +6 -0
- data/docs/EventsApi.md +43 -80
- data/docs/IsoDayOfWeek.md +3 -12
- data/docs/ListResponseDtoOfEventDto.md +5 -17
- data/docs/ListResponseDtoOfLogEntryDto.md +5 -17
- data/docs/ListResponseDtoOfMediaDto.md +5 -17
- data/docs/ListResponseDtoOfSubscriptionDto.md +5 -17
- data/docs/ListResponseDtoOfTemplateDto.md +5 -17
- data/docs/ListResponseDtoOfTopicDto.md +5 -17
- data/docs/ListResponseDtoOfUserDto.md +5 -17
- data/docs/LocalizedText.md +6 -0
- data/docs/LogEntryDto.md +7 -21
- data/docs/LogsApi.md +25 -44
- data/docs/MediaApi.md +118 -212
- data/docs/MediaDto.md +10 -27
- data/docs/MediaMetadata.md +6 -0
- data/docs/MediaType.md +3 -12
- data/docs/NotificationFormattingDto.md +11 -29
- data/docs/NotificationSend.md +3 -12
- data/docs/NotificationSettingDto.md +5 -17
- data/docs/ProfileDto.md +11 -29
- data/docs/PublishDto.md +13 -33
- data/docs/PublishManyDto.md +4 -15
- data/docs/ResizeMode.md +3 -12
- data/docs/SchedulingDto.md +7 -21
- data/docs/SchedulingType.md +3 -12
- data/docs/SubscriptionDto.md +5 -17
- data/docs/TemplateDto.md +6 -19
- data/docs/TemplatesApi.md +61 -116
- data/docs/TopicDto.md +6 -19
- data/docs/TopicsApi.md +25 -44
- data/docs/UpdateProfileDto.md +9 -25
- data/docs/UpsertAppDto.md +13 -33
- data/docs/UpsertTemplateDto.md +6 -19
- data/docs/UpsertTemplatesDto.md +4 -15
- data/docs/UpsertUserDto.md +11 -29
- data/docs/UpsertUsersDto.md +4 -15
- data/docs/UserApi.md +84 -176
- data/docs/UserDto.md +13 -33
- data/docs/UsersApi.md +173 -337
- data/git_push.sh +7 -10
- data/lib/swagger_client.rb +93 -0
- data/lib/{notifo → swagger_client}/api/apps_api.rb +131 -203
- data/lib/{notifo → swagger_client}/api/configs_api.rb +15 -31
- data/lib/{notifo → swagger_client}/api/events_api.rb +30 -46
- data/lib/{notifo → swagger_client}/api/logs_api.rb +13 -22
- data/lib/{notifo → swagger_client}/api/media_api.rb +61 -98
- data/lib/{notifo → swagger_client}/api/templates_api.rb +40 -63
- data/lib/{notifo → swagger_client}/api/topics_api.rb +13 -22
- data/lib/{notifo → swagger_client}/api/user_api.rb +52 -89
- data/lib/{notifo → swagger_client}/api/users_api.rb +122 -187
- data/lib/{notifo → swagger_client}/api_client.rb +55 -57
- data/lib/{notifo → swagger_client}/api_error.rb +6 -6
- data/lib/{notifo → swagger_client}/configuration.rb +12 -84
- data/lib/{notifo → swagger_client}/models/add_allowed_topic_dto.rb +16 -47
- data/lib/swagger_client/models/add_contributor_dto.rb +227 -0
- data/lib/swagger_client/models/app_contributor_dto.rb +242 -0
- data/lib/{notifo → swagger_client}/models/app_details_dto.rb +31 -106
- data/lib/{notifo → swagger_client}/models/app_dto.rb +21 -90
- data/lib/swagger_client/models/body.rb +206 -0
- data/lib/swagger_client/models/confirm_mode.rb +29 -0
- data/lib/{notifo → swagger_client}/models/create_email_template_dto.rb +16 -47
- data/lib/swagger_client/models/email_template_dto.rb +237 -0
- data/lib/swagger_client/models/email_templates_dto.rb +201 -0
- data/lib/swagger_client/models/email_verification_status.rb +30 -0
- data/lib/{notifo → swagger_client}/models/error_dto.rb +20 -36
- data/lib/{notifo → swagger_client}/models/event_dto.rb +27 -117
- data/lib/swagger_client/models/event_properties.rb +201 -0
- data/lib/swagger_client/models/iso_day_of_week.rb +34 -0
- data/lib/{notifo/models/list_response_dto_of_subscription_dto.rb → swagger_client/models/list_response_dto_of_event_dto.rb} +18 -30
- data/lib/{notifo → swagger_client}/models/list_response_dto_of_log_entry_dto.rb +17 -29
- data/lib/{notifo → swagger_client}/models/list_response_dto_of_media_dto.rb +17 -29
- data/lib/{notifo/models/list_response_dto_of_event_dto.rb → swagger_client/models/list_response_dto_of_subscription_dto.rb} +18 -30
- data/lib/{notifo → swagger_client}/models/list_response_dto_of_template_dto.rb +17 -29
- data/lib/{notifo → swagger_client}/models/list_response_dto_of_topic_dto.rb +17 -29
- data/lib/{notifo → swagger_client}/models/list_response_dto_of_user_dto.rb +17 -29
- data/lib/swagger_client/models/localized_text.rb +201 -0
- data/lib/{notifo → swagger_client}/models/log_entry_dto.rb +19 -88
- data/lib/{notifo → swagger_client}/models/media_dto.rb +23 -113
- data/lib/swagger_client/models/media_metadata.rb +201 -0
- data/lib/swagger_client/models/media_type.rb +30 -0
- data/lib/{notifo → swagger_client}/models/notification_formatting_dto.rb +30 -56
- data/lib/swagger_client/models/notification_send.rb +30 -0
- data/lib/{notifo → swagger_client}/models/notification_setting_dto.rb +26 -39
- data/lib/{notifo → swagger_client}/models/profile_dto.rb +23 -76
- data/lib/{notifo → swagger_client}/models/publish_dto.rb +26 -63
- data/lib/{notifo → swagger_client}/models/publish_many_dto.rb +16 -28
- data/lib/swagger_client/models/resize_mode.rb +33 -0
- data/lib/{notifo → swagger_client}/models/scheduling_dto.rb +19 -32
- data/lib/swagger_client/models/scheduling_type.rb +28 -0
- data/lib/{notifo → swagger_client}/models/subscription_dto.rb +17 -49
- data/lib/{notifo → swagger_client}/models/template_dto.rb +18 -49
- data/lib/{notifo → swagger_client}/models/topic_dto.rb +18 -68
- data/lib/{notifo → swagger_client}/models/update_profile_dto.rb +21 -39
- data/lib/{notifo → swagger_client}/models/upsert_app_dto.rb +25 -47
- data/lib/{notifo → swagger_client}/models/upsert_template_dto.rb +18 -50
- data/lib/{notifo → swagger_client}/models/upsert_templates_dto.rb +16 -28
- data/lib/{notifo → swagger_client}/models/upsert_user_dto.rb +23 -43
- data/lib/{notifo → swagger_client}/models/upsert_users_dto.rb +16 -28
- data/lib/{notifo → swagger_client}/models/user_dto.rb +25 -80
- data/lib/swagger_client/version.rb +14 -0
- data/spec/api/apps_api_spec.rb +14 -15
- data/spec/api/configs_api_spec.rb +8 -9
- data/spec/api/events_api_spec.rb +9 -10
- data/spec/api/logs_api_spec.rb +8 -9
- data/spec/api/media_api_spec.rb +13 -14
- data/spec/api/templates_api_spec.rb +9 -10
- data/spec/api/topics_api_spec.rb +8 -9
- data/spec/api/user_api_spec.rb +10 -11
- data/spec/api/users_api_spec.rb +11 -12
- data/spec/api_client_spec.rb +34 -35
- data/spec/base_object_spec.rb +109 -0
- data/spec/configuration_spec.rb +7 -8
- data/spec/models/add_allowed_topic_dto_spec.rb +16 -10
- data/spec/models/add_contributor_dto_spec.rb +16 -10
- data/spec/models/app_contributor_dto_spec.rb +16 -10
- data/spec/models/app_details_dto_spec.rb +16 -10
- data/spec/models/app_dto_spec.rb +16 -10
- data/spec/models/body_spec.rb +40 -0
- data/spec/models/confirm_mode_spec.rb +16 -10
- data/spec/models/create_email_template_dto_spec.rb +16 -10
- data/spec/models/email_template_dto_spec.rb +16 -10
- data/spec/models/email_templates_dto_spec.rb +34 -0
- data/spec/models/email_verification_status_spec.rb +16 -10
- data/spec/models/error_dto_spec.rb +16 -10
- data/spec/models/event_dto_spec.rb +16 -10
- data/spec/models/event_properties_spec.rb +34 -0
- data/spec/models/iso_day_of_week_spec.rb +16 -10
- data/spec/models/list_response_dto_of_event_dto_spec.rb +16 -10
- data/spec/models/list_response_dto_of_log_entry_dto_spec.rb +16 -10
- data/spec/models/list_response_dto_of_media_dto_spec.rb +16 -10
- data/spec/models/list_response_dto_of_subscription_dto_spec.rb +16 -10
- data/spec/models/list_response_dto_of_template_dto_spec.rb +16 -10
- data/spec/models/list_response_dto_of_topic_dto_spec.rb +16 -10
- data/spec/models/list_response_dto_of_user_dto_spec.rb +16 -10
- data/spec/models/localized_text_spec.rb +34 -0
- data/spec/models/log_entry_dto_spec.rb +16 -10
- data/spec/models/media_dto_spec.rb +16 -10
- data/spec/models/media_metadata_spec.rb +34 -0
- data/spec/models/media_type_spec.rb +16 -10
- data/spec/models/notification_formatting_dto_spec.rb +16 -10
- data/spec/models/notification_send_spec.rb +16 -10
- data/spec/models/notification_setting_dto_spec.rb +17 -11
- data/spec/models/profile_dto_spec.rb +16 -10
- data/spec/models/publish_dto_spec.rb +16 -10
- data/spec/models/publish_many_dto_spec.rb +16 -10
- data/spec/models/resize_mode_spec.rb +16 -10
- data/spec/models/scheduling_dto_spec.rb +16 -10
- data/spec/models/scheduling_type_spec.rb +16 -10
- data/spec/models/subscription_dto_spec.rb +16 -10
- data/spec/models/template_dto_spec.rb +16 -10
- data/spec/models/topic_dto_spec.rb +16 -10
- data/spec/models/update_profile_dto_spec.rb +16 -10
- data/spec/models/upsert_app_dto_spec.rb +16 -10
- data/spec/models/upsert_template_dto_spec.rb +16 -10
- data/spec/models/upsert_templates_dto_spec.rb +16 -10
- data/spec/models/upsert_user_dto_spec.rb +16 -10
- data/spec/models/upsert_users_dto_spec.rb +16 -10
- data/spec/models/user_dto_spec.rb +16 -10
- data/spec/spec_helper.rb +5 -6
- data/{notifo.gemspec → swagger_client.gemspec} +9 -9
- metadata +101 -60
- data/lib/notifo.rb +0 -89
- data/lib/notifo/models/add_contributor_dto.rb +0 -277
- data/lib/notifo/models/app_contributor_dto.rb +0 -311
- data/lib/notifo/models/confirm_mode.rb +0 -38
- data/lib/notifo/models/email_template_dto.rb +0 -288
- data/lib/notifo/models/email_verification_status.rb +0 -39
- data/lib/notifo/models/iso_day_of_week.rb +0 -43
- data/lib/notifo/models/media_type.rb +0 -39
- data/lib/notifo/models/notification_send.rb +0 -39
- data/lib/notifo/models/resize_mode.rb +0 -42
- data/lib/notifo/models/scheduling_type.rb +0 -37
- data/lib/notifo/version.rb +0 -15
- data/notifo-io-1.0.0.gem +0 -0
data/Rakefile
CHANGED
data/docs/AddAllowedTopicDto.md
CHANGED
@@ -1,18 +1,7 @@
|
|
1
|
-
#
|
1
|
+
# SwaggerClient::AddAllowedTopicDto
|
2
2
|
|
3
3
|
## Properties
|
4
|
-
|
5
|
-
|
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
|
|
data/docs/AddContributorDto.md
CHANGED
@@ -1,20 +1,8 @@
|
|
1
|
-
#
|
1
|
+
# SwaggerClient::AddContributorDto
|
2
2
|
|
3
3
|
## Properties
|
4
|
-
|
5
|
-
|
6
|
-
|
|
7
|
-
|
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
|
|
data/docs/AppContributorDto.md
CHANGED
@@ -1,22 +1,9 @@
|
|
1
|
-
#
|
1
|
+
# SwaggerClient::AppContributorDto
|
2
2
|
|
3
3
|
## Properties
|
4
|
-
|
5
|
-
|
6
|
-
|
|
7
|
-
|
8
|
-
|
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
|
|
data/docs/AppDetailsDto.md
CHANGED
@@ -1,48 +1,22 @@
|
|
1
|
-
#
|
1
|
+
# SwaggerClient::AppDetailsDto
|
2
2
|
|
3
3
|
## Properties
|
4
|
-
|
5
|
-
|
6
|
-
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
| **
|
20
|
-
|
21
|
-
|
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
|
-
#
|
1
|
+
# SwaggerClient::AppDto
|
2
2
|
|
3
3
|
## Properties
|
4
|
-
|
5
|
-
|
6
|
-
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
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
|
-
#
|
2
|
-
|
3
|
-
All URIs are relative to *https://notifo.
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
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
|
-
###
|
26
|
-
|
23
|
+
### Example
|
27
24
|
```ruby
|
28
|
-
|
29
|
-
require '
|
25
|
+
# load the gem
|
26
|
+
require 'swagger_client'
|
30
27
|
|
31
|
-
api_instance =
|
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
|
-
#
|
34
|
+
#Delete an app contributor.
|
37
35
|
result = api_instance.apps_delete_contributor(app_id, contributor_id)
|
38
36
|
p result
|
39
|
-
rescue
|
40
|
-
puts "
|
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
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
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
|
-
###
|
90
|
-
|
69
|
+
### Example
|
91
70
|
```ruby
|
92
|
-
|
93
|
-
require '
|
71
|
+
# load the gem
|
72
|
+
require 'swagger_client'
|
94
73
|
|
95
|
-
api_instance =
|
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
|
-
#
|
116
|
-
|
117
|
-
|
118
|
-
|
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
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
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
|
-
|
109
|
+
# **apps_get_app**
|
110
|
+
> AppDetailsDto apps_get_app(app_id)
|
149
111
|
|
150
112
|
Get app by id.
|
151
113
|
|
152
|
-
###
|
153
|
-
|
114
|
+
### Example
|
154
115
|
```ruby
|
155
|
-
|
156
|
-
require '
|
116
|
+
# load the gem
|
117
|
+
require 'swagger_client'
|
157
118
|
|
158
|
-
api_instance =
|
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
|
-
#
|
124
|
+
#Get app by id.
|
163
125
|
result = api_instance.apps_get_app(app_id)
|
164
126
|
p result
|
165
|
-
rescue
|
166
|
-
puts "
|
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
|
-
|
191
|
-
|
192
|
-
|
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
|
-
|
153
|
+
# **apps_get_apps**
|
154
|
+
> Array<AppDto> apps_get_apps
|
211
155
|
|
212
156
|
Get the user apps.
|
213
157
|
|
214
|
-
###
|
215
|
-
|
158
|
+
### Example
|
216
159
|
```ruby
|
217
|
-
|
218
|
-
require '
|
160
|
+
# load the gem
|
161
|
+
require 'swagger_client'
|
219
162
|
|
220
|
-
api_instance =
|
163
|
+
api_instance = SwaggerClient::AppsApi.new
|
221
164
|
|
222
165
|
begin
|
223
|
-
#
|
166
|
+
#Get the user apps.
|
224
167
|
result = api_instance.apps_get_apps
|
225
168
|
p result
|
226
|
-
rescue
|
227
|
-
puts "
|
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
|
-
|
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
|
-
###
|
274
|
-
|
197
|
+
### Example
|
275
198
|
```ruby
|
276
|
-
|
277
|
-
require '
|
199
|
+
# load the gem
|
200
|
+
require 'swagger_client'
|
278
201
|
|
279
|
-
api_instance =
|
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
|
-
#
|
207
|
+
#Get the app email templates.
|
284
208
|
result = api_instance.apps_get_email_templates(app_id)
|
285
209
|
p result
|
286
|
-
rescue
|
287
|
-
puts "
|
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
|
-
|
312
|
-
|
313
|
-
|
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
|
-
[**
|
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
|
-
|
236
|
+
# **apps_post_app**
|
237
|
+
> AppDto apps_post_app(body)
|
332
238
|
|
333
239
|
Create an app.
|
334
240
|
|
335
|
-
###
|
336
|
-
|
241
|
+
### Example
|
337
242
|
```ruby
|
338
|
-
|
339
|
-
require '
|
243
|
+
# load the gem
|
244
|
+
require 'swagger_client'
|
340
245
|
|
341
|
-
api_instance =
|
342
|
-
|
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
|
-
#
|
362
|
-
|
363
|
-
p
|
364
|
-
|
365
|
-
|
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
|
-
|
374
|
-
|
375
|
-
|
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
|
-
|
280
|
+
# **apps_post_contributor**
|
281
|
+
> AppDetailsDto apps_post_contributor(bodyapp_id)
|
394
282
|
|
395
283
|
Add an app contributor.
|
396
284
|
|
397
|
-
###
|
398
|
-
|
285
|
+
### Example
|
399
286
|
```ruby
|
400
|
-
|
401
|
-
require '
|
287
|
+
# load the gem
|
288
|
+
require 'swagger_client'
|
402
289
|
|
403
|
-
api_instance =
|
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
|
-
#
|
425
|
-
|
426
|
-
p
|
427
|
-
|
428
|
-
|
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
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
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
|
-
|
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
|
-
###
|
462
|
-
|
331
|
+
### Example
|
463
332
|
```ruby
|
464
|
-
|
465
|
-
require '
|
333
|
+
# load the gem
|
334
|
+
require 'swagger_client'
|
466
335
|
|
467
|
-
api_instance =
|
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
|
-
#
|
489
|
-
|
490
|
-
p
|
491
|
-
|
492
|
-
|
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
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
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
|
-
|
372
|
+
# **apps_put_app**
|
373
|
+
> AppDetailsDto apps_put_app(bodyapp_id)
|
522
374
|
|
523
375
|
Update an app.
|
524
376
|
|
525
|
-
###
|
526
|
-
|
377
|
+
### Example
|
527
378
|
```ruby
|
528
|
-
|
529
|
-
require '
|
379
|
+
# load the gem
|
380
|
+
require 'swagger_client'
|
530
381
|
|
531
|
-
api_instance =
|
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
|
-
#
|
553
|
-
|
554
|
-
p
|
555
|
-
|
556
|
-
|
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
|
-
|
565
|
-
|
566
|
-
|
567
|
-
|
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
|
-
|
418
|
+
# **apps_put_email_template**
|
419
|
+
> apps_put_email_template(bodyapp_idlanguage)
|
586
420
|
|
587
421
|
Update an app email template.
|
588
422
|
|
589
|
-
###
|
590
|
-
|
423
|
+
### Example
|
591
424
|
```ruby
|
592
|
-
|
593
|
-
require '
|
425
|
+
# load the gem
|
426
|
+
require 'swagger_client'
|
594
427
|
|
595
|
-
api_instance =
|
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
|
-
#
|
617
|
-
|
618
|
-
|
619
|
-
|
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
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
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
|
|