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/git_push.sh
CHANGED
@@ -1,17 +1,14 @@
|
|
1
1
|
#!/bin/sh
|
2
|
+
#
|
3
|
+
# Generated by: https://github.com/swagger-api/swagger-codegen.git
|
4
|
+
#
|
2
5
|
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
|
3
6
|
#
|
4
|
-
# Usage example: /bin/sh ./git_push.sh wing328
|
7
|
+
# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
|
5
8
|
|
6
9
|
git_user_id=$1
|
7
10
|
git_repo_id=$2
|
8
11
|
release_note=$3
|
9
|
-
git_host=$4
|
10
|
-
|
11
|
-
if [ "$git_host" = "" ]; then
|
12
|
-
git_host="github.com"
|
13
|
-
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
14
|
-
fi
|
15
12
|
|
16
13
|
if [ "$git_user_id" = "" ]; then
|
17
14
|
git_user_id="GIT_USER_ID"
|
@@ -43,9 +40,9 @@ if [ "$git_remote" = "" ]; then # git remote not defined
|
|
43
40
|
|
44
41
|
if [ "$GIT_TOKEN" = "" ]; then
|
45
42
|
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
46
|
-
git remote add origin https
|
43
|
+
git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
|
47
44
|
else
|
48
|
-
git remote add origin https://${git_user_id}:${GIT_TOKEN}
|
45
|
+
git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
|
49
46
|
fi
|
50
47
|
|
51
48
|
fi
|
@@ -53,6 +50,6 @@ fi
|
|
53
50
|
git pull origin master
|
54
51
|
|
55
52
|
# Pushes (Forces) the changes in the local repository up to the remote repository
|
56
|
-
echo "Git pushing to https
|
53
|
+
echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
|
57
54
|
git push origin master 2>&1 | grep -v 'To https'
|
58
55
|
|
@@ -0,0 +1,93 @@
|
|
1
|
+
=begin
|
2
|
+
#Notifo API
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 3.0.24
|
10
|
+
=end
|
11
|
+
|
12
|
+
# Common files
|
13
|
+
require 'swagger_client/api_client'
|
14
|
+
require 'swagger_client/api_error'
|
15
|
+
require 'swagger_client/version'
|
16
|
+
require 'swagger_client/configuration'
|
17
|
+
|
18
|
+
# Models
|
19
|
+
require 'swagger_client/models/add_allowed_topic_dto'
|
20
|
+
require 'swagger_client/models/add_contributor_dto'
|
21
|
+
require 'swagger_client/models/app_contributor_dto'
|
22
|
+
require 'swagger_client/models/app_details_dto'
|
23
|
+
require 'swagger_client/models/app_dto'
|
24
|
+
require 'swagger_client/models/body'
|
25
|
+
require 'swagger_client/models/confirm_mode'
|
26
|
+
require 'swagger_client/models/create_email_template_dto'
|
27
|
+
require 'swagger_client/models/email_template_dto'
|
28
|
+
require 'swagger_client/models/email_templates_dto'
|
29
|
+
require 'swagger_client/models/email_verification_status'
|
30
|
+
require 'swagger_client/models/error_dto'
|
31
|
+
require 'swagger_client/models/event_dto'
|
32
|
+
require 'swagger_client/models/event_properties'
|
33
|
+
require 'swagger_client/models/iso_day_of_week'
|
34
|
+
require 'swagger_client/models/list_response_dto_of_event_dto'
|
35
|
+
require 'swagger_client/models/list_response_dto_of_log_entry_dto'
|
36
|
+
require 'swagger_client/models/list_response_dto_of_media_dto'
|
37
|
+
require 'swagger_client/models/list_response_dto_of_subscription_dto'
|
38
|
+
require 'swagger_client/models/list_response_dto_of_template_dto'
|
39
|
+
require 'swagger_client/models/list_response_dto_of_topic_dto'
|
40
|
+
require 'swagger_client/models/list_response_dto_of_user_dto'
|
41
|
+
require 'swagger_client/models/localized_text'
|
42
|
+
require 'swagger_client/models/log_entry_dto'
|
43
|
+
require 'swagger_client/models/media_dto'
|
44
|
+
require 'swagger_client/models/media_metadata'
|
45
|
+
require 'swagger_client/models/media_type'
|
46
|
+
require 'swagger_client/models/notification_formatting_dto'
|
47
|
+
require 'swagger_client/models/notification_send'
|
48
|
+
require 'swagger_client/models/notification_setting_dto'
|
49
|
+
require 'swagger_client/models/profile_dto'
|
50
|
+
require 'swagger_client/models/publish_dto'
|
51
|
+
require 'swagger_client/models/publish_many_dto'
|
52
|
+
require 'swagger_client/models/resize_mode'
|
53
|
+
require 'swagger_client/models/scheduling_dto'
|
54
|
+
require 'swagger_client/models/scheduling_type'
|
55
|
+
require 'swagger_client/models/subscription_dto'
|
56
|
+
require 'swagger_client/models/template_dto'
|
57
|
+
require 'swagger_client/models/topic_dto'
|
58
|
+
require 'swagger_client/models/update_profile_dto'
|
59
|
+
require 'swagger_client/models/upsert_app_dto'
|
60
|
+
require 'swagger_client/models/upsert_template_dto'
|
61
|
+
require 'swagger_client/models/upsert_templates_dto'
|
62
|
+
require 'swagger_client/models/upsert_user_dto'
|
63
|
+
require 'swagger_client/models/upsert_users_dto'
|
64
|
+
require 'swagger_client/models/user_dto'
|
65
|
+
|
66
|
+
# APIs
|
67
|
+
require 'swagger_client/api/apps_api'
|
68
|
+
require 'swagger_client/api/configs_api'
|
69
|
+
require 'swagger_client/api/events_api'
|
70
|
+
require 'swagger_client/api/logs_api'
|
71
|
+
require 'swagger_client/api/media_api'
|
72
|
+
require 'swagger_client/api/templates_api'
|
73
|
+
require 'swagger_client/api/topics_api'
|
74
|
+
require 'swagger_client/api/user_api'
|
75
|
+
require 'swagger_client/api/users_api'
|
76
|
+
|
77
|
+
module SwaggerClient
|
78
|
+
class << self
|
79
|
+
# Customize default settings for the SDK using block.
|
80
|
+
# SwaggerClient.configure do |config|
|
81
|
+
# config.username = "xxx"
|
82
|
+
# config.password = "xxx"
|
83
|
+
# end
|
84
|
+
# If no block given, return the default Configuration object.
|
85
|
+
def configure
|
86
|
+
if block_given?
|
87
|
+
yield(Configuration.default)
|
88
|
+
else
|
89
|
+
Configuration.default
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
@@ -1,18 +1,15 @@
|
|
1
1
|
=begin
|
2
2
|
#Notifo API
|
3
3
|
|
4
|
-
#No description provided (generated by
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.1.0-SNAPSHOT
|
6
|
+
OpenAPI spec version: 1.0.0
|
10
7
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 3.0.24
|
11
10
|
=end
|
12
11
|
|
13
|
-
|
14
|
-
|
15
|
-
module Notifo
|
12
|
+
module SwaggerClient
|
16
13
|
class AppsApi
|
17
14
|
attr_accessor :api_client
|
18
15
|
|
@@ -20,8 +17,8 @@ module Notifo
|
|
20
17
|
@api_client = api_client
|
21
18
|
end
|
22
19
|
# Delete an app contributor.
|
23
|
-
# @param app_id
|
24
|
-
# @param contributor_id
|
20
|
+
# @param app_id The id of the app.
|
21
|
+
# @param contributor_id The contributor to remove.
|
25
22
|
# @param [Hash] opts the optional parameters
|
26
23
|
# @return [AppDetailsDto]
|
27
24
|
def apps_delete_contributor(app_id, contributor_id, opts = {})
|
@@ -30,8 +27,8 @@ module Notifo
|
|
30
27
|
end
|
31
28
|
|
32
29
|
# Delete an app contributor.
|
33
|
-
# @param app_id
|
34
|
-
# @param contributor_id
|
30
|
+
# @param app_id The id of the app.
|
31
|
+
# @param contributor_id The contributor to remove.
|
35
32
|
# @param [Hash] opts the optional parameters
|
36
33
|
# @return [Array<(AppDetailsDto, Integer, Hash)>] AppDetailsDto data, response status code and response headers
|
37
34
|
def apps_delete_contributor_with_http_info(app_id, contributor_id, opts = {})
|
@@ -47,7 +44,7 @@ module Notifo
|
|
47
44
|
fail ArgumentError, "Missing the required parameter 'contributor_id' when calling AppsApi.apps_delete_contributor"
|
48
45
|
end
|
49
46
|
# resource path
|
50
|
-
local_var_path = '/api/apps/{appId}/contributors/{contributorId}'.sub('{' + 'appId' + '}',
|
47
|
+
local_var_path = '/api/apps/{appId}/contributors/{contributorId}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'contributorId' + '}', contributor_id.to_s)
|
51
48
|
|
52
49
|
# query parameters
|
53
50
|
query_params = opts[:query_params] || {}
|
@@ -61,34 +58,27 @@ module Notifo
|
|
61
58
|
form_params = opts[:form_params] || {}
|
62
59
|
|
63
60
|
# http body (model)
|
64
|
-
post_body = opts[:
|
61
|
+
post_body = opts[:body]
|
65
62
|
|
66
|
-
|
67
|
-
return_type = opts[:debug_return_type] || 'AppDetailsDto'
|
63
|
+
return_type = opts[:return_type] || 'AppDetailsDto'
|
68
64
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
new_options = opts.merge(
|
73
|
-
:operation => :"AppsApi.apps_delete_contributor",
|
65
|
+
auth_names = opts[:auth_names] || []
|
66
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
74
67
|
:header_params => header_params,
|
75
68
|
:query_params => query_params,
|
76
69
|
:form_params => form_params,
|
77
70
|
:body => post_body,
|
78
71
|
:auth_names => auth_names,
|
79
|
-
:return_type => return_type
|
80
|
-
)
|
72
|
+
:return_type => return_type)
|
81
73
|
|
82
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
83
74
|
if @api_client.config.debugging
|
84
75
|
@api_client.config.logger.debug "API called: AppsApi#apps_delete_contributor\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
85
76
|
end
|
86
77
|
return data, status_code, headers
|
87
78
|
end
|
88
|
-
|
89
79
|
# Delete an app email template.
|
90
|
-
# @param app_id
|
91
|
-
# @param language
|
80
|
+
# @param app_id The id of the app where the email templates belong to.
|
81
|
+
# @param language The language.
|
92
82
|
# @param [Hash] opts the optional parameters
|
93
83
|
# @return [nil]
|
94
84
|
def apps_delete_email_template(app_id, language, opts = {})
|
@@ -97,8 +87,8 @@ module Notifo
|
|
97
87
|
end
|
98
88
|
|
99
89
|
# Delete an app email template.
|
100
|
-
# @param app_id
|
101
|
-
# @param language
|
90
|
+
# @param app_id The id of the app where the email templates belong to.
|
91
|
+
# @param language The language.
|
102
92
|
# @param [Hash] opts the optional parameters
|
103
93
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
104
94
|
def apps_delete_email_template_with_http_info(app_id, language, opts = {})
|
@@ -114,7 +104,7 @@ module Notifo
|
|
114
104
|
fail ArgumentError, "Missing the required parameter 'language' when calling AppsApi.apps_delete_email_template"
|
115
105
|
end
|
116
106
|
# resource path
|
117
|
-
local_var_path = '/api/apps/{appId}/email-templates/{language}'.sub('{' + 'appId' + '}',
|
107
|
+
local_var_path = '/api/apps/{appId}/email-templates/{language}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'language' + '}', language.to_s)
|
118
108
|
|
119
109
|
# query parameters
|
120
110
|
query_params = opts[:query_params] || {}
|
@@ -128,33 +118,26 @@ module Notifo
|
|
128
118
|
form_params = opts[:form_params] || {}
|
129
119
|
|
130
120
|
# http body (model)
|
131
|
-
post_body = opts[:
|
121
|
+
post_body = opts[:body]
|
132
122
|
|
133
|
-
|
134
|
-
return_type = opts[:debug_return_type]
|
123
|
+
return_type = opts[:return_type]
|
135
124
|
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
new_options = opts.merge(
|
140
|
-
:operation => :"AppsApi.apps_delete_email_template",
|
125
|
+
auth_names = opts[:auth_names] || []
|
126
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
141
127
|
:header_params => header_params,
|
142
128
|
:query_params => query_params,
|
143
129
|
:form_params => form_params,
|
144
130
|
:body => post_body,
|
145
131
|
:auth_names => auth_names,
|
146
|
-
:return_type => return_type
|
147
|
-
)
|
132
|
+
:return_type => return_type)
|
148
133
|
|
149
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
150
134
|
if @api_client.config.debugging
|
151
135
|
@api_client.config.logger.debug "API called: AppsApi#apps_delete_email_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
152
136
|
end
|
153
137
|
return data, status_code, headers
|
154
138
|
end
|
155
|
-
|
156
139
|
# Get app by id.
|
157
|
-
# @param app_id
|
140
|
+
# @param app_id The id of the app.
|
158
141
|
# @param [Hash] opts the optional parameters
|
159
142
|
# @return [AppDetailsDto]
|
160
143
|
def apps_get_app(app_id, opts = {})
|
@@ -163,7 +146,7 @@ module Notifo
|
|
163
146
|
end
|
164
147
|
|
165
148
|
# Get app by id.
|
166
|
-
# @param app_id
|
149
|
+
# @param app_id The id of the app.
|
167
150
|
# @param [Hash] opts the optional parameters
|
168
151
|
# @return [Array<(AppDetailsDto, Integer, Hash)>] AppDetailsDto data, response status code and response headers
|
169
152
|
def apps_get_app_with_http_info(app_id, opts = {})
|
@@ -175,7 +158,7 @@ module Notifo
|
|
175
158
|
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_get_app"
|
176
159
|
end
|
177
160
|
# resource path
|
178
|
-
local_var_path = '/api/apps/{appId}'.sub('{' + 'appId' + '}',
|
161
|
+
local_var_path = '/api/apps/{appId}'.sub('{' + 'appId' + '}', app_id.to_s)
|
179
162
|
|
180
163
|
# query parameters
|
181
164
|
query_params = opts[:query_params] || {}
|
@@ -189,31 +172,24 @@ module Notifo
|
|
189
172
|
form_params = opts[:form_params] || {}
|
190
173
|
|
191
174
|
# http body (model)
|
192
|
-
post_body = opts[:
|
175
|
+
post_body = opts[:body]
|
193
176
|
|
194
|
-
|
195
|
-
return_type = opts[:debug_return_type] || 'AppDetailsDto'
|
177
|
+
return_type = opts[:return_type] || 'AppDetailsDto'
|
196
178
|
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
new_options = opts.merge(
|
201
|
-
:operation => :"AppsApi.apps_get_app",
|
179
|
+
auth_names = opts[:auth_names] || []
|
180
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
202
181
|
:header_params => header_params,
|
203
182
|
:query_params => query_params,
|
204
183
|
:form_params => form_params,
|
205
184
|
:body => post_body,
|
206
185
|
:auth_names => auth_names,
|
207
|
-
:return_type => return_type
|
208
|
-
)
|
186
|
+
:return_type => return_type)
|
209
187
|
|
210
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
211
188
|
if @api_client.config.debugging
|
212
189
|
@api_client.config.logger.debug "API called: AppsApi#apps_get_app\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
213
190
|
end
|
214
191
|
return data, status_code, headers
|
215
192
|
end
|
216
|
-
|
217
193
|
# Get the user apps.
|
218
194
|
# @param [Hash] opts the optional parameters
|
219
195
|
# @return [Array<AppDto>]
|
@@ -244,44 +220,37 @@ module Notifo
|
|
244
220
|
form_params = opts[:form_params] || {}
|
245
221
|
|
246
222
|
# http body (model)
|
247
|
-
post_body = opts[:
|
223
|
+
post_body = opts[:body]
|
248
224
|
|
249
|
-
|
250
|
-
return_type = opts[:debug_return_type] || 'Array<AppDto>'
|
225
|
+
return_type = opts[:return_type] || 'Array<AppDto>'
|
251
226
|
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
new_options = opts.merge(
|
256
|
-
:operation => :"AppsApi.apps_get_apps",
|
227
|
+
auth_names = opts[:auth_names] || []
|
228
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
257
229
|
:header_params => header_params,
|
258
230
|
:query_params => query_params,
|
259
231
|
:form_params => form_params,
|
260
232
|
:body => post_body,
|
261
233
|
:auth_names => auth_names,
|
262
|
-
:return_type => return_type
|
263
|
-
)
|
234
|
+
:return_type => return_type)
|
264
235
|
|
265
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
266
236
|
if @api_client.config.debugging
|
267
237
|
@api_client.config.logger.debug "API called: AppsApi#apps_get_apps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
268
238
|
end
|
269
239
|
return data, status_code, headers
|
270
240
|
end
|
271
|
-
|
272
241
|
# Get the app email templates.
|
273
|
-
# @param app_id
|
242
|
+
# @param app_id The id of the app where the email templates belong to.
|
274
243
|
# @param [Hash] opts the optional parameters
|
275
|
-
# @return [
|
244
|
+
# @return [EmailTemplatesDto]
|
276
245
|
def apps_get_email_templates(app_id, opts = {})
|
277
246
|
data, _status_code, _headers = apps_get_email_templates_with_http_info(app_id, opts)
|
278
247
|
data
|
279
248
|
end
|
280
249
|
|
281
250
|
# Get the app email templates.
|
282
|
-
# @param app_id
|
251
|
+
# @param app_id The id of the app where the email templates belong to.
|
283
252
|
# @param [Hash] opts the optional parameters
|
284
|
-
# @return [Array<(
|
253
|
+
# @return [Array<(EmailTemplatesDto, Integer, Hash)>] EmailTemplatesDto data, response status code and response headers
|
285
254
|
def apps_get_email_templates_with_http_info(app_id, opts = {})
|
286
255
|
if @api_client.config.debugging
|
287
256
|
@api_client.config.logger.debug 'Calling API: AppsApi.apps_get_email_templates ...'
|
@@ -291,7 +260,7 @@ module Notifo
|
|
291
260
|
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_get_email_templates"
|
292
261
|
end
|
293
262
|
# resource path
|
294
|
-
local_var_path = '/api/apps/{appId}/email-templates'.sub('{' + 'appId' + '}',
|
263
|
+
local_var_path = '/api/apps/{appId}/email-templates'.sub('{' + 'appId' + '}', app_id.to_s)
|
295
264
|
|
296
265
|
# query parameters
|
297
266
|
query_params = opts[:query_params] || {}
|
@@ -305,51 +274,44 @@ module Notifo
|
|
305
274
|
form_params = opts[:form_params] || {}
|
306
275
|
|
307
276
|
# http body (model)
|
308
|
-
post_body = opts[:
|
277
|
+
post_body = opts[:body]
|
309
278
|
|
310
|
-
|
311
|
-
return_type = opts[:debug_return_type] || 'Hash<String, EmailTemplateDto>'
|
279
|
+
return_type = opts[:return_type] || 'EmailTemplatesDto'
|
312
280
|
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
new_options = opts.merge(
|
317
|
-
:operation => :"AppsApi.apps_get_email_templates",
|
281
|
+
auth_names = opts[:auth_names] || []
|
282
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
318
283
|
:header_params => header_params,
|
319
284
|
:query_params => query_params,
|
320
285
|
:form_params => form_params,
|
321
286
|
:body => post_body,
|
322
287
|
:auth_names => auth_names,
|
323
|
-
:return_type => return_type
|
324
|
-
)
|
288
|
+
:return_type => return_type)
|
325
289
|
|
326
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
327
290
|
if @api_client.config.debugging
|
328
291
|
@api_client.config.logger.debug "API called: AppsApi#apps_get_email_templates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
329
292
|
end
|
330
293
|
return data, status_code, headers
|
331
294
|
end
|
332
|
-
|
333
295
|
# Create an app.
|
334
|
-
# @param
|
296
|
+
# @param body The request object.
|
335
297
|
# @param [Hash] opts the optional parameters
|
336
298
|
# @return [AppDto]
|
337
|
-
def apps_post_app(
|
338
|
-
data, _status_code, _headers = apps_post_app_with_http_info(
|
299
|
+
def apps_post_app(body, opts = {})
|
300
|
+
data, _status_code, _headers = apps_post_app_with_http_info(body, opts)
|
339
301
|
data
|
340
302
|
end
|
341
303
|
|
342
304
|
# Create an app.
|
343
|
-
# @param
|
305
|
+
# @param body The request object.
|
344
306
|
# @param [Hash] opts the optional parameters
|
345
307
|
# @return [Array<(AppDto, Integer, Hash)>] AppDto data, response status code and response headers
|
346
|
-
def apps_post_app_with_http_info(
|
308
|
+
def apps_post_app_with_http_info(body, opts = {})
|
347
309
|
if @api_client.config.debugging
|
348
310
|
@api_client.config.logger.debug 'Calling API: AppsApi.apps_post_app ...'
|
349
311
|
end
|
350
|
-
# verify the required parameter '
|
351
|
-
if @api_client.config.client_side_validation &&
|
352
|
-
fail ArgumentError, "Missing the required parameter '
|
312
|
+
# verify the required parameter 'body' is set
|
313
|
+
if @api_client.config.client_side_validation && body.nil?
|
314
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.apps_post_app"
|
353
315
|
end
|
354
316
|
# resource path
|
355
317
|
local_var_path = '/api/apps'
|
@@ -368,60 +330,53 @@ module Notifo
|
|
368
330
|
form_params = opts[:form_params] || {}
|
369
331
|
|
370
332
|
# http body (model)
|
371
|
-
post_body = opts[:
|
333
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
372
334
|
|
373
|
-
|
374
|
-
return_type = opts[:debug_return_type] || 'AppDto'
|
335
|
+
return_type = opts[:return_type] || 'AppDto'
|
375
336
|
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
new_options = opts.merge(
|
380
|
-
:operation => :"AppsApi.apps_post_app",
|
337
|
+
auth_names = opts[:auth_names] || []
|
338
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
381
339
|
:header_params => header_params,
|
382
340
|
:query_params => query_params,
|
383
341
|
:form_params => form_params,
|
384
342
|
:body => post_body,
|
385
343
|
:auth_names => auth_names,
|
386
|
-
:return_type => return_type
|
387
|
-
)
|
344
|
+
:return_type => return_type)
|
388
345
|
|
389
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
390
346
|
if @api_client.config.debugging
|
391
347
|
@api_client.config.logger.debug "API called: AppsApi#apps_post_app\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
392
348
|
end
|
393
349
|
return data, status_code, headers
|
394
350
|
end
|
395
|
-
|
396
351
|
# Add an app contributor.
|
397
|
-
# @param
|
398
|
-
# @param
|
352
|
+
# @param body The request object.
|
353
|
+
# @param app_id The id of the app.
|
399
354
|
# @param [Hash] opts the optional parameters
|
400
355
|
# @return [AppDetailsDto]
|
401
|
-
def apps_post_contributor(
|
402
|
-
data, _status_code, _headers = apps_post_contributor_with_http_info(
|
356
|
+
def apps_post_contributor(body, app_id, opts = {})
|
357
|
+
data, _status_code, _headers = apps_post_contributor_with_http_info(body, app_id, opts)
|
403
358
|
data
|
404
359
|
end
|
405
360
|
|
406
361
|
# Add an app contributor.
|
407
|
-
# @param
|
408
|
-
# @param
|
362
|
+
# @param body The request object.
|
363
|
+
# @param app_id The id of the app.
|
409
364
|
# @param [Hash] opts the optional parameters
|
410
365
|
# @return [Array<(AppDetailsDto, Integer, Hash)>] AppDetailsDto data, response status code and response headers
|
411
|
-
def apps_post_contributor_with_http_info(
|
366
|
+
def apps_post_contributor_with_http_info(body, app_id, opts = {})
|
412
367
|
if @api_client.config.debugging
|
413
368
|
@api_client.config.logger.debug 'Calling API: AppsApi.apps_post_contributor ...'
|
414
369
|
end
|
370
|
+
# verify the required parameter 'body' is set
|
371
|
+
if @api_client.config.client_side_validation && body.nil?
|
372
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.apps_post_contributor"
|
373
|
+
end
|
415
374
|
# verify the required parameter 'app_id' is set
|
416
375
|
if @api_client.config.client_side_validation && app_id.nil?
|
417
376
|
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_post_contributor"
|
418
377
|
end
|
419
|
-
# verify the required parameter 'add_contributor_dto' is set
|
420
|
-
if @api_client.config.client_side_validation && add_contributor_dto.nil?
|
421
|
-
fail ArgumentError, "Missing the required parameter 'add_contributor_dto' when calling AppsApi.apps_post_contributor"
|
422
|
-
end
|
423
378
|
# resource path
|
424
|
-
local_var_path = '/api/apps/{appId}/contributors'.sub('{' + 'appId' + '}',
|
379
|
+
local_var_path = '/api/apps/{appId}/contributors'.sub('{' + 'appId' + '}', app_id.to_s)
|
425
380
|
|
426
381
|
# query parameters
|
427
382
|
query_params = opts[:query_params] || {}
|
@@ -437,60 +392,53 @@ module Notifo
|
|
437
392
|
form_params = opts[:form_params] || {}
|
438
393
|
|
439
394
|
# http body (model)
|
440
|
-
post_body = opts[:
|
441
|
-
|
442
|
-
# return_type
|
443
|
-
return_type = opts[:debug_return_type] || 'AppDetailsDto'
|
395
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
444
396
|
|
445
|
-
|
446
|
-
auth_names = opts[:debug_auth_names] || []
|
397
|
+
return_type = opts[:return_type] || 'AppDetailsDto'
|
447
398
|
|
448
|
-
|
449
|
-
|
399
|
+
auth_names = opts[:auth_names] || []
|
400
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
450
401
|
:header_params => header_params,
|
451
402
|
:query_params => query_params,
|
452
403
|
:form_params => form_params,
|
453
404
|
:body => post_body,
|
454
405
|
:auth_names => auth_names,
|
455
|
-
:return_type => return_type
|
456
|
-
)
|
406
|
+
:return_type => return_type)
|
457
407
|
|
458
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
459
408
|
if @api_client.config.debugging
|
460
409
|
@api_client.config.logger.debug "API called: AppsApi#apps_post_contributor\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
461
410
|
end
|
462
411
|
return data, status_code, headers
|
463
412
|
end
|
464
|
-
|
465
413
|
# Create an app email template.
|
466
|
-
# @param
|
467
|
-
# @param
|
414
|
+
# @param body The request object.
|
415
|
+
# @param app_id The id of the app where the email templates belong to.
|
468
416
|
# @param [Hash] opts the optional parameters
|
469
417
|
# @return [EmailTemplateDto]
|
470
|
-
def apps_post_email_template(
|
471
|
-
data, _status_code, _headers = apps_post_email_template_with_http_info(
|
418
|
+
def apps_post_email_template(body, app_id, opts = {})
|
419
|
+
data, _status_code, _headers = apps_post_email_template_with_http_info(body, app_id, opts)
|
472
420
|
data
|
473
421
|
end
|
474
422
|
|
475
423
|
# Create an app email template.
|
476
|
-
# @param
|
477
|
-
# @param
|
424
|
+
# @param body The request object.
|
425
|
+
# @param app_id The id of the app where the email templates belong to.
|
478
426
|
# @param [Hash] opts the optional parameters
|
479
427
|
# @return [Array<(EmailTemplateDto, Integer, Hash)>] EmailTemplateDto data, response status code and response headers
|
480
|
-
def apps_post_email_template_with_http_info(
|
428
|
+
def apps_post_email_template_with_http_info(body, app_id, opts = {})
|
481
429
|
if @api_client.config.debugging
|
482
430
|
@api_client.config.logger.debug 'Calling API: AppsApi.apps_post_email_template ...'
|
483
431
|
end
|
432
|
+
# verify the required parameter 'body' is set
|
433
|
+
if @api_client.config.client_side_validation && body.nil?
|
434
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.apps_post_email_template"
|
435
|
+
end
|
484
436
|
# verify the required parameter 'app_id' is set
|
485
437
|
if @api_client.config.client_side_validation && app_id.nil?
|
486
438
|
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_post_email_template"
|
487
439
|
end
|
488
|
-
# verify the required parameter 'create_email_template_dto' is set
|
489
|
-
if @api_client.config.client_side_validation && create_email_template_dto.nil?
|
490
|
-
fail ArgumentError, "Missing the required parameter 'create_email_template_dto' when calling AppsApi.apps_post_email_template"
|
491
|
-
end
|
492
440
|
# resource path
|
493
|
-
local_var_path = '/api/apps/{appId}/email-templates'.sub('{' + 'appId' + '}',
|
441
|
+
local_var_path = '/api/apps/{appId}/email-templates'.sub('{' + 'appId' + '}', app_id.to_s)
|
494
442
|
|
495
443
|
# query parameters
|
496
444
|
query_params = opts[:query_params] || {}
|
@@ -506,60 +454,53 @@ module Notifo
|
|
506
454
|
form_params = opts[:form_params] || {}
|
507
455
|
|
508
456
|
# http body (model)
|
509
|
-
post_body = opts[:
|
510
|
-
|
511
|
-
# return_type
|
512
|
-
return_type = opts[:debug_return_type] || 'EmailTemplateDto'
|
457
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
513
458
|
|
514
|
-
|
515
|
-
auth_names = opts[:debug_auth_names] || []
|
459
|
+
return_type = opts[:return_type] || 'EmailTemplateDto'
|
516
460
|
|
517
|
-
|
518
|
-
|
461
|
+
auth_names = opts[:auth_names] || []
|
462
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
519
463
|
:header_params => header_params,
|
520
464
|
:query_params => query_params,
|
521
465
|
:form_params => form_params,
|
522
466
|
:body => post_body,
|
523
467
|
:auth_names => auth_names,
|
524
|
-
:return_type => return_type
|
525
|
-
)
|
468
|
+
:return_type => return_type)
|
526
469
|
|
527
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
528
470
|
if @api_client.config.debugging
|
529
471
|
@api_client.config.logger.debug "API called: AppsApi#apps_post_email_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
530
472
|
end
|
531
473
|
return data, status_code, headers
|
532
474
|
end
|
533
|
-
|
534
475
|
# Update an app.
|
535
|
-
# @param
|
536
|
-
# @param
|
476
|
+
# @param body The request object.
|
477
|
+
# @param app_id The app id to update.
|
537
478
|
# @param [Hash] opts the optional parameters
|
538
479
|
# @return [AppDetailsDto]
|
539
|
-
def apps_put_app(
|
540
|
-
data, _status_code, _headers = apps_put_app_with_http_info(
|
480
|
+
def apps_put_app(body, app_id, opts = {})
|
481
|
+
data, _status_code, _headers = apps_put_app_with_http_info(body, app_id, opts)
|
541
482
|
data
|
542
483
|
end
|
543
484
|
|
544
485
|
# Update an app.
|
545
|
-
# @param
|
546
|
-
# @param
|
486
|
+
# @param body The request object.
|
487
|
+
# @param app_id The app id to update.
|
547
488
|
# @param [Hash] opts the optional parameters
|
548
489
|
# @return [Array<(AppDetailsDto, Integer, Hash)>] AppDetailsDto data, response status code and response headers
|
549
|
-
def apps_put_app_with_http_info(
|
490
|
+
def apps_put_app_with_http_info(body, app_id, opts = {})
|
550
491
|
if @api_client.config.debugging
|
551
492
|
@api_client.config.logger.debug 'Calling API: AppsApi.apps_put_app ...'
|
552
493
|
end
|
494
|
+
# verify the required parameter 'body' is set
|
495
|
+
if @api_client.config.client_side_validation && body.nil?
|
496
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.apps_put_app"
|
497
|
+
end
|
553
498
|
# verify the required parameter 'app_id' is set
|
554
499
|
if @api_client.config.client_side_validation && app_id.nil?
|
555
500
|
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_put_app"
|
556
501
|
end
|
557
|
-
# verify the required parameter 'upsert_app_dto' is set
|
558
|
-
if @api_client.config.client_side_validation && upsert_app_dto.nil?
|
559
|
-
fail ArgumentError, "Missing the required parameter 'upsert_app_dto' when calling AppsApi.apps_put_app"
|
560
|
-
end
|
561
502
|
# resource path
|
562
|
-
local_var_path = '/api/apps/{appId}'.sub('{' + 'appId' + '}',
|
503
|
+
local_var_path = '/api/apps/{appId}'.sub('{' + 'appId' + '}', app_id.to_s)
|
563
504
|
|
564
505
|
# query parameters
|
565
506
|
query_params = opts[:query_params] || {}
|
@@ -575,52 +516,49 @@ module Notifo
|
|
575
516
|
form_params = opts[:form_params] || {}
|
576
517
|
|
577
518
|
# http body (model)
|
578
|
-
post_body = opts[:
|
519
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
579
520
|
|
580
|
-
|
581
|
-
return_type = opts[:debug_return_type] || 'AppDetailsDto'
|
521
|
+
return_type = opts[:return_type] || 'AppDetailsDto'
|
582
522
|
|
583
|
-
|
584
|
-
|
585
|
-
|
586
|
-
new_options = opts.merge(
|
587
|
-
:operation => :"AppsApi.apps_put_app",
|
523
|
+
auth_names = opts[:auth_names] || []
|
524
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
588
525
|
:header_params => header_params,
|
589
526
|
:query_params => query_params,
|
590
527
|
:form_params => form_params,
|
591
528
|
:body => post_body,
|
592
529
|
:auth_names => auth_names,
|
593
|
-
:return_type => return_type
|
594
|
-
)
|
530
|
+
:return_type => return_type)
|
595
531
|
|
596
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
597
532
|
if @api_client.config.debugging
|
598
533
|
@api_client.config.logger.debug "API called: AppsApi#apps_put_app\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
599
534
|
end
|
600
535
|
return data, status_code, headers
|
601
536
|
end
|
602
|
-
|
603
537
|
# Update an app email template.
|
604
|
-
# @param
|
605
|
-
# @param
|
606
|
-
# @param
|
538
|
+
# @param body The request object.
|
539
|
+
# @param app_id The id of the app where the email templates belong to.
|
540
|
+
# @param language The language.
|
607
541
|
# @param [Hash] opts the optional parameters
|
608
542
|
# @return [nil]
|
609
|
-
def apps_put_email_template(app_id, language,
|
610
|
-
apps_put_email_template_with_http_info(app_id, language,
|
543
|
+
def apps_put_email_template(body, app_id, language, opts = {})
|
544
|
+
apps_put_email_template_with_http_info(body, app_id, language, opts)
|
611
545
|
nil
|
612
546
|
end
|
613
547
|
|
614
548
|
# Update an app email template.
|
615
|
-
# @param
|
616
|
-
# @param
|
617
|
-
# @param
|
549
|
+
# @param body The request object.
|
550
|
+
# @param app_id The id of the app where the email templates belong to.
|
551
|
+
# @param language The language.
|
618
552
|
# @param [Hash] opts the optional parameters
|
619
553
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
620
|
-
def apps_put_email_template_with_http_info(app_id, language,
|
554
|
+
def apps_put_email_template_with_http_info(body, app_id, language, opts = {})
|
621
555
|
if @api_client.config.debugging
|
622
556
|
@api_client.config.logger.debug 'Calling API: AppsApi.apps_put_email_template ...'
|
623
557
|
end
|
558
|
+
# verify the required parameter 'body' is set
|
559
|
+
if @api_client.config.client_side_validation && body.nil?
|
560
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.apps_put_email_template"
|
561
|
+
end
|
624
562
|
# verify the required parameter 'app_id' is set
|
625
563
|
if @api_client.config.client_side_validation && app_id.nil?
|
626
564
|
fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_put_email_template"
|
@@ -629,12 +567,8 @@ module Notifo
|
|
629
567
|
if @api_client.config.client_side_validation && language.nil?
|
630
568
|
fail ArgumentError, "Missing the required parameter 'language' when calling AppsApi.apps_put_email_template"
|
631
569
|
end
|
632
|
-
# verify the required parameter 'email_template_dto' is set
|
633
|
-
if @api_client.config.client_side_validation && email_template_dto.nil?
|
634
|
-
fail ArgumentError, "Missing the required parameter 'email_template_dto' when calling AppsApi.apps_put_email_template"
|
635
|
-
end
|
636
570
|
# resource path
|
637
|
-
local_var_path = '/api/apps/{appId}/email-templates/{language}'.sub('{' + 'appId' + '}',
|
571
|
+
local_var_path = '/api/apps/{appId}/email-templates/{language}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'language' + '}', language.to_s)
|
638
572
|
|
639
573
|
# query parameters
|
640
574
|
query_params = opts[:query_params] || {}
|
@@ -650,25 +584,19 @@ module Notifo
|
|
650
584
|
form_params = opts[:form_params] || {}
|
651
585
|
|
652
586
|
# http body (model)
|
653
|
-
post_body = opts[:
|
654
|
-
|
655
|
-
# return_type
|
656
|
-
return_type = opts[:debug_return_type]
|
587
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
657
588
|
|
658
|
-
|
659
|
-
auth_names = opts[:debug_auth_names] || []
|
589
|
+
return_type = opts[:return_type]
|
660
590
|
|
661
|
-
|
662
|
-
|
591
|
+
auth_names = opts[:auth_names] || []
|
592
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
663
593
|
:header_params => header_params,
|
664
594
|
:query_params => query_params,
|
665
595
|
:form_params => form_params,
|
666
596
|
:body => post_body,
|
667
597
|
:auth_names => auth_names,
|
668
|
-
:return_type => return_type
|
669
|
-
)
|
598
|
+
:return_type => return_type)
|
670
599
|
|
671
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
672
600
|
if @api_client.config.debugging
|
673
601
|
@api_client.config.logger.debug "API called: AppsApi#apps_put_email_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
674
602
|
end
|