notifo-io 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +245 -60
- data/docs/AddContributorDto.md +1 -1
- data/docs/AdminProfileDto.md +7 -0
- data/docs/AppsApi.md +1 -1
- data/docs/ChannelSendInfoDto.md +4 -0
- data/docs/ConfigsApi.md +1 -1
- data/docs/DiagnosticsApi.md +85 -0
- data/docs/EmailTemplatesApi.md +26 -26
- data/docs/EventDto.md +0 -2
- data/docs/EventsApi.md +1 -1
- data/docs/InfoDto.md +7 -0
- data/docs/IntegrationPropertyDto.md +1 -1
- data/docs/LogsApi.md +1 -1
- data/docs/MediaApi.md +154 -4
- data/docs/MessagingTemplatesApi.md +26 -26
- data/docs/MobilePushApi.md +1 -1
- data/docs/MobilePushTokenDto.md +1 -0
- data/docs/MobilePushTokenDto2.md +1 -0
- data/docs/NotificationsApi.md +131 -7
- data/docs/PingApi.md +85 -2
- data/docs/{IntegrationPropertyType.md → PropertyType.md} +1 -1
- data/docs/PublishDto.md +2 -0
- data/docs/RegisterMobileTokenDto.md +1 -0
- data/docs/SendConfiguration.md +6 -0
- data/docs/SmsTemplatesApi.md +26 -26
- data/docs/SystemUsersApi.md +5 -4
- data/docs/TemplatesApi.md +1 -1
- data/docs/TopicsApi.md +6 -6
- data/docs/TrackNotificationDto.md +1 -0
- data/docs/UserApi.md +41 -1
- data/docs/UserDto.md +1 -2
- data/docs/UserNotificationBaseDto.md +1 -0
- data/docs/UserNotificationDetailsDto.md +1 -0
- data/docs/UserNotificationDto.md +1 -0
- data/docs/UsersApi.md +101 -6
- data/docs/WebPushSubscriptionDto.md +7 -0
- data/lib/notifo/api/apps_api.rb +1 -1
- data/lib/notifo/api/configs_api.rb +1 -1
- data/lib/notifo/api/diagnostics_api.rb +116 -0
- data/lib/notifo/api/email_templates_api.rb +46 -46
- data/lib/notifo/api/events_api.rb +1 -1
- data/lib/notifo/api/logs_api.rb +1 -1
- data/lib/notifo/api/media_api.rb +197 -2
- data/lib/notifo/api/messaging_templates_api.rb +46 -46
- data/lib/notifo/api/mobile_push_api.rb +1 -1
- data/lib/notifo/api/notifications_api.rb +150 -3
- data/lib/notifo/api/ping_api.rb +102 -2
- data/lib/notifo/api/sms_templates_api.rb +46 -46
- data/lib/notifo/api/system_users_api.rb +6 -6
- data/lib/notifo/api/templates_api.rb +1 -1
- data/lib/notifo/api/topics_api.rb +10 -10
- data/lib/notifo/api/user_api.rb +49 -1
- data/lib/notifo/api/users_api.rb +139 -7
- data/lib/notifo/api_client.rb +1 -1
- data/lib/notifo/api_error.rb +1 -1
- data/lib/notifo/configuration.rb +3 -3
- data/lib/notifo/models/add_allowed_topic_dto.rb +1 -1
- data/lib/notifo/models/add_contributor_dto.rb +2 -6
- data/lib/notifo/models/admin_profile_dto.rb +208 -0
- data/lib/notifo/models/app_contributor_dto.rb +1 -1
- data/lib/notifo/models/app_details_dto.rb +1 -1
- data/lib/notifo/models/app_dto.rb +1 -1
- data/lib/notifo/models/app_id_media_body.rb +1 -1
- data/lib/notifo/models/channel_condition.rb +1 -1
- data/lib/notifo/models/channel_send.rb +1 -1
- data/lib/notifo/models/channel_send_info_dto.rb +48 -6
- data/lib/notifo/models/channel_setting_dto.rb +1 -1
- data/lib/notifo/models/channel_template_details_dto_of_email_template_dto.rb +1 -1
- data/lib/notifo/models/channel_template_details_dto_of_messaging_template_dto.rb +1 -1
- data/lib/notifo/models/channel_template_details_dto_of_sms_template_dto.rb +1 -1
- data/lib/notifo/models/channel_template_dto.rb +1 -1
- data/lib/notifo/models/configured_integration_dto.rb +1 -1
- data/lib/notifo/models/configured_integrations_dto.rb +1 -1
- data/lib/notifo/models/confirm_mode.rb +1 -1
- data/lib/notifo/models/create_channel_template_dto.rb +1 -1
- data/lib/notifo/models/create_channel_template_language_dto.rb +1 -1
- data/lib/notifo/models/create_integration_dto.rb +1 -1
- data/lib/notifo/models/create_system_user_dto.rb +1 -1
- data/lib/notifo/models/email_formatting_error.rb +1 -1
- data/lib/notifo/models/email_preview_dto.rb +1 -1
- data/lib/notifo/models/email_preview_request_dto.rb +1 -1
- data/lib/notifo/models/email_preview_type.rb +1 -1
- data/lib/notifo/models/email_template_dto.rb +1 -1
- data/lib/notifo/models/email_template_type.rb +1 -1
- data/lib/notifo/models/error_dto.rb +1 -1
- data/lib/notifo/models/event_dto.rb +2 -24
- data/lib/notifo/models/handled_info_dto.rb +1 -1
- data/lib/notifo/models/info_dto.rb +212 -0
- data/lib/notifo/models/integration_created_dto.rb +1 -1
- data/lib/notifo/models/integration_definition_dto.rb +1 -1
- data/lib/notifo/models/integration_property_dto.rb +1 -1
- data/lib/notifo/models/integration_status.rb +1 -1
- data/lib/notifo/models/iso_day_of_week.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_channel_template_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_event_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_log_entry_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_media_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_mobile_push_token_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_subscription_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_system_user_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_template_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_topic_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_user_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_user_notification_details_dto.rb +1 -1
- data/lib/notifo/models/list_response_dto_of_user_notification_dto.rb +1 -1
- data/lib/notifo/models/localized_text.rb +1 -1
- data/lib/notifo/models/log_entry_dto.rb +1 -1
- data/lib/notifo/models/media_dto.rb +1 -1
- data/lib/notifo/models/media_metadata.rb +1 -1
- data/lib/notifo/models/media_type.rb +1 -1
- data/lib/notifo/models/messaging_template_dto.rb +1 -1
- data/lib/notifo/models/mobile_device_type.rb +1 -1
- data/lib/notifo/models/mobile_push_token_dto.rb +13 -2
- data/lib/notifo/models/mobile_push_token_dto2.rb +16 -5
- data/lib/notifo/models/notification_formatting_dto.rb +1 -1
- data/lib/notifo/models/notification_properties.rb +1 -1
- data/lib/notifo/models/process_status.rb +1 -1
- data/lib/notifo/models/profile_dto.rb +1 -1
- data/lib/notifo/models/{integration_property_type.rb → property_type.rb} +4 -4
- data/lib/notifo/models/publish_dto.rb +26 -2
- data/lib/notifo/models/publish_many_dto.rb +1 -1
- data/lib/notifo/models/register_mobile_token_dto.rb +16 -5
- data/lib/notifo/models/resize_mode.rb +1 -1
- data/lib/notifo/models/scheduling_dto.rb +1 -1
- data/lib/notifo/models/scheduling_type.rb +1 -1
- data/lib/notifo/models/send_configuration.rb +201 -0
- data/lib/notifo/models/sms_template_dto.rb +1 -1
- data/lib/notifo/models/subscribe_dto.rb +1 -1
- data/lib/notifo/models/subscribe_many_dto.rb +1 -1
- data/lib/notifo/models/subscription_dto.rb +1 -1
- data/lib/notifo/models/system_user_dto.rb +1 -1
- data/lib/notifo/models/template_dto.rb +1 -1
- data/lib/notifo/models/topic_channel.rb +2 -2
- data/lib/notifo/models/topic_dto.rb +1 -1
- data/lib/notifo/models/topic_query_scope.rb +1 -1
- data/lib/notifo/models/track_notification_dto.rb +12 -2
- data/lib/notifo/models/update_channel_template_dto_of_email_template_dto.rb +1 -1
- data/lib/notifo/models/update_channel_template_dto_of_messaging_template_dto.rb +1 -1
- data/lib/notifo/models/update_channel_template_dto_of_sms_template_dto.rb +1 -1
- data/lib/notifo/models/update_integration_dto.rb +1 -1
- data/lib/notifo/models/update_profile_dto.rb +1 -1
- data/lib/notifo/models/update_system_user_dto.rb +1 -1
- data/lib/notifo/models/upsert_app_dto.rb +1 -1
- data/lib/notifo/models/upsert_template_dto.rb +1 -1
- data/lib/notifo/models/upsert_templates_dto.rb +1 -1
- data/lib/notifo/models/upsert_topic_dto.rb +1 -1
- data/lib/notifo/models/upsert_topics_dto.rb +1 -1
- data/lib/notifo/models/upsert_user_dto.rb +1 -1
- data/lib/notifo/models/upsert_users_dto.rb +1 -1
- data/lib/notifo/models/user_dto.rb +19 -32
- data/lib/notifo/models/user_notification_base_dto.rb +13 -2
- data/lib/notifo/models/user_notification_channel_dto.rb +1 -1
- data/lib/notifo/models/user_notification_details_dto.rb +13 -2
- data/lib/notifo/models/user_notification_dto.rb +13 -2
- data/lib/notifo/models/user_property_dto.rb +1 -1
- data/lib/notifo/models/user_topic_dto.rb +1 -1
- data/lib/notifo/models/web_push_subscription_dto.rb +212 -0
- data/lib/notifo/version.rb +1 -1
- data/lib/notifo.rb +7 -2
- data/notifo.gemspec +2 -3
- data/spec/api/apps_api_spec.rb +1 -1
- data/spec/api/configs_api_spec.rb +1 -1
- data/spec/api/diagnostics_api_spec.rb +54 -0
- data/spec/api/email_templates_api_spec.rb +6 -6
- data/spec/api/events_api_spec.rb +1 -1
- data/spec/api/logs_api_spec.rb +1 -1
- data/spec/api/media_api_spec.rb +52 -1
- data/spec/api/messaging_templates_api_spec.rb +6 -6
- data/spec/api/mobile_push_api_spec.rb +1 -1
- data/spec/api/notifications_api_spec.rb +38 -2
- data/spec/api/ping_api_spec.rb +23 -1
- data/spec/api/sms_templates_api_spec.rb +6 -6
- data/spec/api/system_users_api_spec.rb +2 -2
- data/spec/api/templates_api_spec.rb +1 -1
- data/spec/api/topics_api_spec.rb +2 -2
- data/spec/api/user_api_spec.rb +11 -1
- data/spec/api/users_api_spec.rb +28 -2
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +4 -4
- data/spec/models/add_allowed_topic_dto_spec.rb +1 -1
- data/spec/models/add_contributor_dto_spec.rb +1 -1
- data/spec/models/admin_profile_dto_spec.rb +40 -0
- data/spec/models/app_contributor_dto_spec.rb +1 -1
- data/spec/models/app_details_dto_spec.rb +1 -1
- data/spec/models/app_dto_spec.rb +1 -1
- data/spec/models/app_id_media_body_spec.rb +1 -1
- data/spec/models/channel_condition_spec.rb +1 -1
- data/spec/models/channel_send_info_dto_spec.rb +25 -1
- data/spec/models/channel_send_spec.rb +1 -1
- data/spec/models/channel_setting_dto_spec.rb +1 -1
- data/spec/models/channel_template_details_dto_of_email_template_dto_spec.rb +1 -1
- data/spec/models/channel_template_details_dto_of_messaging_template_dto_spec.rb +1 -1
- data/spec/models/channel_template_details_dto_of_sms_template_dto_spec.rb +1 -1
- data/spec/models/channel_template_dto_spec.rb +1 -1
- data/spec/models/configured_integration_dto_spec.rb +1 -1
- data/spec/models/configured_integrations_dto_spec.rb +1 -1
- data/spec/models/confirm_mode_spec.rb +1 -1
- data/spec/models/create_channel_template_dto_spec.rb +1 -1
- data/spec/models/create_channel_template_language_dto_spec.rb +1 -1
- data/spec/models/create_integration_dto_spec.rb +1 -1
- data/spec/models/create_system_user_dto_spec.rb +1 -1
- data/spec/models/email_formatting_error_spec.rb +1 -1
- data/spec/models/email_preview_dto_spec.rb +1 -1
- data/spec/models/email_preview_request_dto_spec.rb +1 -1
- data/spec/models/email_preview_type_spec.rb +1 -1
- data/spec/models/email_template_dto_spec.rb +1 -1
- data/spec/models/email_template_type_spec.rb +1 -1
- data/spec/models/error_dto_spec.rb +1 -1
- data/spec/models/event_dto_spec.rb +1 -13
- data/spec/models/handled_info_dto_spec.rb +1 -1
- data/spec/models/info_dto_spec.rb +40 -0
- data/spec/models/integration_created_dto_spec.rb +1 -1
- data/spec/models/integration_definition_dto_spec.rb +1 -1
- data/spec/models/integration_property_dto_spec.rb +1 -1
- data/spec/models/integration_status_spec.rb +1 -1
- data/spec/models/iso_day_of_week_spec.rb +1 -1
- data/spec/models/list_response_dto_of_channel_template_dto_spec.rb +1 -1
- data/spec/models/list_response_dto_of_event_dto_spec.rb +1 -1
- data/spec/models/list_response_dto_of_log_entry_dto_spec.rb +1 -1
- data/spec/models/list_response_dto_of_media_dto_spec.rb +1 -1
- data/spec/models/list_response_dto_of_mobile_push_token_dto_spec.rb +1 -1
- data/spec/models/list_response_dto_of_subscription_dto_spec.rb +1 -1
- data/spec/models/list_response_dto_of_system_user_dto_spec.rb +1 -1
- data/spec/models/list_response_dto_of_template_dto_spec.rb +1 -1
- data/spec/models/list_response_dto_of_topic_dto_spec.rb +1 -1
- data/spec/models/list_response_dto_of_user_dto_spec.rb +1 -1
- data/spec/models/list_response_dto_of_user_notification_details_dto_spec.rb +1 -1
- data/spec/models/list_response_dto_of_user_notification_dto_spec.rb +1 -1
- data/spec/models/localized_text_spec.rb +1 -1
- data/spec/models/log_entry_dto_spec.rb +1 -1
- data/spec/models/media_dto_spec.rb +1 -1
- data/spec/models/media_metadata_spec.rb +1 -1
- data/spec/models/media_type_spec.rb +1 -1
- data/spec/models/messaging_template_dto_spec.rb +1 -1
- data/spec/models/mobile_device_type_spec.rb +1 -1
- data/spec/models/mobile_push_token_dto2_spec.rb +7 -1
- data/spec/models/mobile_push_token_dto_spec.rb +7 -1
- data/spec/models/notification_formatting_dto_spec.rb +1 -1
- data/spec/models/notification_properties_spec.rb +1 -1
- data/spec/models/process_status_spec.rb +1 -1
- data/spec/models/profile_dto_spec.rb +1 -1
- data/spec/models/{integration_property_type_spec.rb → property_type_spec.rb} +7 -7
- data/spec/models/publish_dto_spec.rb +13 -1
- data/spec/models/publish_many_dto_spec.rb +1 -1
- data/spec/models/register_mobile_token_dto_spec.rb +7 -1
- data/spec/models/resize_mode_spec.rb +1 -1
- data/spec/models/scheduling_dto_spec.rb +1 -1
- data/spec/models/scheduling_type_spec.rb +1 -1
- data/spec/models/send_configuration_spec.rb +34 -0
- data/spec/models/sms_template_dto_spec.rb +1 -1
- data/spec/models/subscribe_dto_spec.rb +1 -1
- data/spec/models/subscribe_many_dto_spec.rb +1 -1
- data/spec/models/subscription_dto_spec.rb +1 -1
- data/spec/models/system_user_dto_spec.rb +1 -1
- data/spec/models/template_dto_spec.rb +1 -1
- data/spec/models/topic_channel_spec.rb +1 -1
- data/spec/models/topic_dto_spec.rb +1 -1
- data/spec/models/topic_query_scope_spec.rb +1 -1
- data/spec/models/track_notification_dto_spec.rb +7 -1
- data/spec/models/update_channel_template_dto_of_email_template_dto_spec.rb +1 -1
- data/spec/models/update_channel_template_dto_of_messaging_template_dto_spec.rb +1 -1
- data/spec/models/update_channel_template_dto_of_sms_template_dto_spec.rb +1 -1
- data/spec/models/update_integration_dto_spec.rb +1 -1
- data/spec/models/update_profile_dto_spec.rb +1 -1
- data/spec/models/update_system_user_dto_spec.rb +1 -1
- data/spec/models/upsert_app_dto_spec.rb +1 -1
- data/spec/models/upsert_template_dto_spec.rb +1 -1
- data/spec/models/upsert_templates_dto_spec.rb +1 -1
- data/spec/models/upsert_topic_dto_spec.rb +1 -1
- data/spec/models/upsert_topics_dto_spec.rb +1 -1
- data/spec/models/upsert_user_dto_spec.rb +1 -1
- data/spec/models/upsert_users_dto_spec.rb +1 -1
- data/spec/models/user_dto_spec.rb +7 -13
- data/spec/models/user_notification_base_dto_spec.rb +7 -1
- data/spec/models/user_notification_channel_dto_spec.rb +1 -1
- data/spec/models/user_notification_details_dto_spec.rb +7 -1
- data/spec/models/user_notification_dto_spec.rb +7 -1
- data/spec/models/user_property_dto_spec.rb +1 -1
- data/spec/models/user_topic_dto_spec.rb +1 -1
- data/spec/models/web_push_subscription_dto_spec.rb +40 -0
- data/spec/spec_helper.rb +1 -1
- metadata +27 -7
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 3.0.
|
9
|
+
Swagger Codegen version: 3.0.36
|
10
10
|
=end
|
11
11
|
|
12
12
|
module Notifo
|
@@ -18,20 +18,20 @@ module Notifo
|
|
18
18
|
end
|
19
19
|
# Delete a channel template.
|
20
20
|
# @param app_id The id of the app where the templates belong to.
|
21
|
-
# @param
|
21
|
+
# @param code The template ID.
|
22
22
|
# @param [Hash] opts the optional parameters
|
23
23
|
# @return [nil]
|
24
|
-
def messaging_templates_delete_template(app_id,
|
25
|
-
messaging_templates_delete_template_with_http_info(app_id,
|
24
|
+
def messaging_templates_delete_template(app_id, code, opts = {})
|
25
|
+
messaging_templates_delete_template_with_http_info(app_id, code, opts)
|
26
26
|
nil
|
27
27
|
end
|
28
28
|
|
29
29
|
# Delete a channel template.
|
30
30
|
# @param app_id The id of the app where the templates belong to.
|
31
|
-
# @param
|
31
|
+
# @param code The template ID.
|
32
32
|
# @param [Hash] opts the optional parameters
|
33
33
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
34
|
-
def messaging_templates_delete_template_with_http_info(app_id,
|
34
|
+
def messaging_templates_delete_template_with_http_info(app_id, code, opts = {})
|
35
35
|
if @api_client.config.debugging
|
36
36
|
@api_client.config.logger.debug 'Calling API: MessagingTemplatesApi.messaging_templates_delete_template ...'
|
37
37
|
end
|
@@ -39,12 +39,12 @@ module Notifo
|
|
39
39
|
if @api_client.config.client_side_validation && app_id.nil?
|
40
40
|
fail ArgumentError, "Missing the required parameter 'app_id' when calling MessagingTemplatesApi.messaging_templates_delete_template"
|
41
41
|
end
|
42
|
-
# verify the required parameter '
|
43
|
-
if @api_client.config.client_side_validation &&
|
44
|
-
fail ArgumentError, "Missing the required parameter '
|
42
|
+
# verify the required parameter 'code' is set
|
43
|
+
if @api_client.config.client_side_validation && code.nil?
|
44
|
+
fail ArgumentError, "Missing the required parameter 'code' when calling MessagingTemplatesApi.messaging_templates_delete_template"
|
45
45
|
end
|
46
46
|
# resource path
|
47
|
-
local_var_path = '/api/apps/{appId}/messaging-templates/{
|
47
|
+
local_var_path = '/api/apps/{appId}/messaging-templates/{code}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'code' + '}', code.to_s)
|
48
48
|
|
49
49
|
# query parameters
|
50
50
|
query_params = opts[:query_params] || {}
|
@@ -78,22 +78,22 @@ module Notifo
|
|
78
78
|
end
|
79
79
|
# Delete a language channel template.
|
80
80
|
# @param app_id The id of the app where the templates belong to.
|
81
|
-
# @param
|
81
|
+
# @param code The template ID.
|
82
82
|
# @param language The language.
|
83
83
|
# @param [Hash] opts the optional parameters
|
84
84
|
# @return [nil]
|
85
|
-
def messaging_templates_delete_template_language(app_id,
|
86
|
-
messaging_templates_delete_template_language_with_http_info(app_id,
|
85
|
+
def messaging_templates_delete_template_language(app_id, code, language, opts = {})
|
86
|
+
messaging_templates_delete_template_language_with_http_info(app_id, code, language, opts)
|
87
87
|
nil
|
88
88
|
end
|
89
89
|
|
90
90
|
# Delete a language channel template.
|
91
91
|
# @param app_id The id of the app where the templates belong to.
|
92
|
-
# @param
|
92
|
+
# @param code The template ID.
|
93
93
|
# @param language The language.
|
94
94
|
# @param [Hash] opts the optional parameters
|
95
95
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
96
|
-
def messaging_templates_delete_template_language_with_http_info(app_id,
|
96
|
+
def messaging_templates_delete_template_language_with_http_info(app_id, code, language, opts = {})
|
97
97
|
if @api_client.config.debugging
|
98
98
|
@api_client.config.logger.debug 'Calling API: MessagingTemplatesApi.messaging_templates_delete_template_language ...'
|
99
99
|
end
|
@@ -101,16 +101,16 @@ module Notifo
|
|
101
101
|
if @api_client.config.client_side_validation && app_id.nil?
|
102
102
|
fail ArgumentError, "Missing the required parameter 'app_id' when calling MessagingTemplatesApi.messaging_templates_delete_template_language"
|
103
103
|
end
|
104
|
-
# verify the required parameter '
|
105
|
-
if @api_client.config.client_side_validation &&
|
106
|
-
fail ArgumentError, "Missing the required parameter '
|
104
|
+
# verify the required parameter 'code' is set
|
105
|
+
if @api_client.config.client_side_validation && code.nil?
|
106
|
+
fail ArgumentError, "Missing the required parameter 'code' when calling MessagingTemplatesApi.messaging_templates_delete_template_language"
|
107
107
|
end
|
108
108
|
# verify the required parameter 'language' is set
|
109
109
|
if @api_client.config.client_side_validation && language.nil?
|
110
110
|
fail ArgumentError, "Missing the required parameter 'language' when calling MessagingTemplatesApi.messaging_templates_delete_template_language"
|
111
111
|
end
|
112
112
|
# resource path
|
113
|
-
local_var_path = '/api/apps/{appId}/messaging-templates/{
|
113
|
+
local_var_path = '/api/apps/{appId}/messaging-templates/{code}/{language}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'code' + '}', code.to_s).sub('{' + 'language' + '}', language.to_s)
|
114
114
|
|
115
115
|
# query parameters
|
116
116
|
query_params = opts[:query_params] || {}
|
@@ -330,21 +330,21 @@ module Notifo
|
|
330
330
|
# Create an app template language.
|
331
331
|
# @param body The request object.
|
332
332
|
# @param app_id The id of the app where the templates belong to.
|
333
|
-
# @param
|
333
|
+
# @param code The template code.
|
334
334
|
# @param [Hash] opts the optional parameters
|
335
335
|
# @return [MessagingTemplateDto]
|
336
|
-
def messaging_templates_post_template_language(body, app_id,
|
337
|
-
data, _status_code, _headers = messaging_templates_post_template_language_with_http_info(body, app_id,
|
336
|
+
def messaging_templates_post_template_language(body, app_id, code, opts = {})
|
337
|
+
data, _status_code, _headers = messaging_templates_post_template_language_with_http_info(body, app_id, code, opts)
|
338
338
|
data
|
339
339
|
end
|
340
340
|
|
341
341
|
# Create an app template language.
|
342
342
|
# @param body The request object.
|
343
343
|
# @param app_id The id of the app where the templates belong to.
|
344
|
-
# @param
|
344
|
+
# @param code The template code.
|
345
345
|
# @param [Hash] opts the optional parameters
|
346
346
|
# @return [Array<(MessagingTemplateDto, Integer, Hash)>] MessagingTemplateDto data, response status code and response headers
|
347
|
-
def messaging_templates_post_template_language_with_http_info(body, app_id,
|
347
|
+
def messaging_templates_post_template_language_with_http_info(body, app_id, code, opts = {})
|
348
348
|
if @api_client.config.debugging
|
349
349
|
@api_client.config.logger.debug 'Calling API: MessagingTemplatesApi.messaging_templates_post_template_language ...'
|
350
350
|
end
|
@@ -356,12 +356,12 @@ module Notifo
|
|
356
356
|
if @api_client.config.client_side_validation && app_id.nil?
|
357
357
|
fail ArgumentError, "Missing the required parameter 'app_id' when calling MessagingTemplatesApi.messaging_templates_post_template_language"
|
358
358
|
end
|
359
|
-
# verify the required parameter '
|
360
|
-
if @api_client.config.client_side_validation &&
|
361
|
-
fail ArgumentError, "Missing the required parameter '
|
359
|
+
# verify the required parameter 'code' is set
|
360
|
+
if @api_client.config.client_side_validation && code.nil?
|
361
|
+
fail ArgumentError, "Missing the required parameter 'code' when calling MessagingTemplatesApi.messaging_templates_post_template_language"
|
362
362
|
end
|
363
363
|
# resource path
|
364
|
-
local_var_path = '/api/apps/{appId}/messaging-templates/{
|
364
|
+
local_var_path = '/api/apps/{appId}/messaging-templates/{code}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'code' + '}', code.to_s)
|
365
365
|
|
366
366
|
# query parameters
|
367
367
|
query_params = opts[:query_params] || {}
|
@@ -398,21 +398,21 @@ module Notifo
|
|
398
398
|
# Update an app template.
|
399
399
|
# @param body The request object.
|
400
400
|
# @param app_id The id of the app where the templates belong to.
|
401
|
-
# @param
|
401
|
+
# @param code The template code.
|
402
402
|
# @param [Hash] opts the optional parameters
|
403
403
|
# @return [nil]
|
404
|
-
def messaging_templates_put_template(body, app_id,
|
405
|
-
messaging_templates_put_template_with_http_info(body, app_id,
|
404
|
+
def messaging_templates_put_template(body, app_id, code, opts = {})
|
405
|
+
messaging_templates_put_template_with_http_info(body, app_id, code, opts)
|
406
406
|
nil
|
407
407
|
end
|
408
408
|
|
409
409
|
# Update an app template.
|
410
410
|
# @param body The request object.
|
411
411
|
# @param app_id The id of the app where the templates belong to.
|
412
|
-
# @param
|
412
|
+
# @param code The template code.
|
413
413
|
# @param [Hash] opts the optional parameters
|
414
414
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
415
|
-
def messaging_templates_put_template_with_http_info(body, app_id,
|
415
|
+
def messaging_templates_put_template_with_http_info(body, app_id, code, opts = {})
|
416
416
|
if @api_client.config.debugging
|
417
417
|
@api_client.config.logger.debug 'Calling API: MessagingTemplatesApi.messaging_templates_put_template ...'
|
418
418
|
end
|
@@ -424,12 +424,12 @@ module Notifo
|
|
424
424
|
if @api_client.config.client_side_validation && app_id.nil?
|
425
425
|
fail ArgumentError, "Missing the required parameter 'app_id' when calling MessagingTemplatesApi.messaging_templates_put_template"
|
426
426
|
end
|
427
|
-
# verify the required parameter '
|
428
|
-
if @api_client.config.client_side_validation &&
|
429
|
-
fail ArgumentError, "Missing the required parameter '
|
427
|
+
# verify the required parameter 'code' is set
|
428
|
+
if @api_client.config.client_side_validation && code.nil?
|
429
|
+
fail ArgumentError, "Missing the required parameter 'code' when calling MessagingTemplatesApi.messaging_templates_put_template"
|
430
430
|
end
|
431
431
|
# resource path
|
432
|
-
local_var_path = '/api/apps/{appId}/messaging-templates/{
|
432
|
+
local_var_path = '/api/apps/{appId}/messaging-templates/{code}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'code' + '}', code.to_s)
|
433
433
|
|
434
434
|
# query parameters
|
435
435
|
query_params = opts[:query_params] || {}
|
@@ -466,23 +466,23 @@ module Notifo
|
|
466
466
|
# Update a channel template language.
|
467
467
|
# @param body The request object.
|
468
468
|
# @param app_id The id of the app where the templates belong to.
|
469
|
-
# @param
|
469
|
+
# @param code The template code.
|
470
470
|
# @param language The language.
|
471
471
|
# @param [Hash] opts the optional parameters
|
472
472
|
# @return [nil]
|
473
|
-
def messaging_templates_put_template_language(body, app_id,
|
474
|
-
messaging_templates_put_template_language_with_http_info(body, app_id,
|
473
|
+
def messaging_templates_put_template_language(body, app_id, code, language, opts = {})
|
474
|
+
messaging_templates_put_template_language_with_http_info(body, app_id, code, language, opts)
|
475
475
|
nil
|
476
476
|
end
|
477
477
|
|
478
478
|
# Update a channel template language.
|
479
479
|
# @param body The request object.
|
480
480
|
# @param app_id The id of the app where the templates belong to.
|
481
|
-
# @param
|
481
|
+
# @param code The template code.
|
482
482
|
# @param language The language.
|
483
483
|
# @param [Hash] opts the optional parameters
|
484
484
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
485
|
-
def messaging_templates_put_template_language_with_http_info(body, app_id,
|
485
|
+
def messaging_templates_put_template_language_with_http_info(body, app_id, code, language, opts = {})
|
486
486
|
if @api_client.config.debugging
|
487
487
|
@api_client.config.logger.debug 'Calling API: MessagingTemplatesApi.messaging_templates_put_template_language ...'
|
488
488
|
end
|
@@ -494,16 +494,16 @@ module Notifo
|
|
494
494
|
if @api_client.config.client_side_validation && app_id.nil?
|
495
495
|
fail ArgumentError, "Missing the required parameter 'app_id' when calling MessagingTemplatesApi.messaging_templates_put_template_language"
|
496
496
|
end
|
497
|
-
# verify the required parameter '
|
498
|
-
if @api_client.config.client_side_validation &&
|
499
|
-
fail ArgumentError, "Missing the required parameter '
|
497
|
+
# verify the required parameter 'code' is set
|
498
|
+
if @api_client.config.client_side_validation && code.nil?
|
499
|
+
fail ArgumentError, "Missing the required parameter 'code' when calling MessagingTemplatesApi.messaging_templates_put_template_language"
|
500
500
|
end
|
501
501
|
# verify the required parameter 'language' is set
|
502
502
|
if @api_client.config.client_side_validation && language.nil?
|
503
503
|
fail ArgumentError, "Missing the required parameter 'language' when calling MessagingTemplatesApi.messaging_templates_put_template_language"
|
504
504
|
end
|
505
505
|
# resource path
|
506
|
-
local_var_path = '/api/apps/{appId}/messaging-templates/{
|
506
|
+
local_var_path = '/api/apps/{appId}/messaging-templates/{code}/{language}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'code' + '}', code.to_s).sub('{' + 'language' + '}', language.to_s)
|
507
507
|
|
508
508
|
# query parameters
|
509
509
|
query_params = opts[:query_params] || {}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 3.0.
|
9
|
+
Swagger Codegen version: 3.0.36
|
10
10
|
=end
|
11
11
|
|
12
12
|
module Notifo
|
@@ -72,16 +72,90 @@ module Notifo
|
|
72
72
|
end
|
73
73
|
return data, status_code, headers
|
74
74
|
end
|
75
|
-
# Query
|
75
|
+
# Query notifications.
|
76
|
+
# @param app_id The app where the user belongs to.
|
76
77
|
# @param [Hash] opts the optional parameters
|
78
|
+
# @option opts [Array<String>] :channels The active channels.
|
79
|
+
# @option opts [String] :channel The source channel.
|
80
|
+
# @option opts [String] :correlation_id The correlation ID, that can be used to query notifications.
|
81
|
+
# @option opts [String] :query The optional query to search for items.
|
82
|
+
# @option opts [Integer] :take The number of items to return.
|
83
|
+
# @option opts [Integer] :skip The number of items to skip.
|
84
|
+
# @return [ListResponseDtoOfUserNotificationDetailsDto]
|
85
|
+
def notifications_get_all_notifications(app_id, opts = {})
|
86
|
+
data, _status_code, _headers = notifications_get_all_notifications_with_http_info(app_id, opts)
|
87
|
+
data
|
88
|
+
end
|
89
|
+
|
90
|
+
# Query notifications.
|
91
|
+
# @param app_id The app where the user belongs to.
|
92
|
+
# @param [Hash] opts the optional parameters
|
93
|
+
# @option opts [Array<String>] :channels The active channels.
|
94
|
+
# @option opts [String] :channel The source channel.
|
95
|
+
# @option opts [String] :correlation_id The correlation ID, that can be used to query notifications.
|
96
|
+
# @option opts [String] :query The optional query to search for items.
|
97
|
+
# @option opts [Integer] :take The number of items to return.
|
98
|
+
# @option opts [Integer] :skip The number of items to skip.
|
99
|
+
# @return [Array<(ListResponseDtoOfUserNotificationDetailsDto, Integer, Hash)>] ListResponseDtoOfUserNotificationDetailsDto data, response status code and response headers
|
100
|
+
def notifications_get_all_notifications_with_http_info(app_id, opts = {})
|
101
|
+
if @api_client.config.debugging
|
102
|
+
@api_client.config.logger.debug 'Calling API: NotificationsApi.notifications_get_all_notifications ...'
|
103
|
+
end
|
104
|
+
# verify the required parameter 'app_id' is set
|
105
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
106
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling NotificationsApi.notifications_get_all_notifications"
|
107
|
+
end
|
108
|
+
# resource path
|
109
|
+
local_var_path = '/api/apps/{appId}/notifications'.sub('{' + 'appId' + '}', app_id.to_s)
|
110
|
+
|
111
|
+
# query parameters
|
112
|
+
query_params = opts[:query_params] || {}
|
113
|
+
query_params[:'Channels'] = @api_client.build_collection_param(opts[:'channels'], :multi) if !opts[:'channels'].nil?
|
114
|
+
query_params[:'Channel'] = opts[:'channel'] if !opts[:'channel'].nil?
|
115
|
+
query_params[:'CorrelationId'] = opts[:'correlation_id'] if !opts[:'correlation_id'].nil?
|
116
|
+
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
|
117
|
+
query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
|
118
|
+
query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
|
119
|
+
|
120
|
+
# header parameters
|
121
|
+
header_params = opts[:header_params] || {}
|
122
|
+
# HTTP header 'Accept' (if needed)
|
123
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
124
|
+
|
125
|
+
# form parameters
|
126
|
+
form_params = opts[:form_params] || {}
|
127
|
+
|
128
|
+
# http body (model)
|
129
|
+
post_body = opts[:body]
|
130
|
+
|
131
|
+
return_type = opts[:return_type] || 'ListResponseDtoOfUserNotificationDetailsDto'
|
132
|
+
|
133
|
+
auth_names = opts[:auth_names] || []
|
134
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
135
|
+
:header_params => header_params,
|
136
|
+
:query_params => query_params,
|
137
|
+
:form_params => form_params,
|
138
|
+
:body => post_body,
|
139
|
+
:auth_names => auth_names,
|
140
|
+
:return_type => return_type)
|
141
|
+
|
142
|
+
if @api_client.config.debugging
|
143
|
+
@api_client.config.logger.debug "API called: NotificationsApi#notifications_get_all_notifications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
144
|
+
end
|
145
|
+
return data, status_code, headers
|
146
|
+
end
|
147
|
+
# Query archived user notifications of the current user.
|
148
|
+
# @param [Hash] opts the optional parameters
|
149
|
+
# @option opts [String] :channel The tracking channel.
|
77
150
|
# @return [ListResponseDtoOfUserNotificationDto]
|
78
151
|
def notifications_get_my_archive(opts = {})
|
79
152
|
data, _status_code, _headers = notifications_get_my_archive_with_http_info(opts)
|
80
153
|
data
|
81
154
|
end
|
82
155
|
|
83
|
-
# Query
|
156
|
+
# Query archived user notifications of the current user.
|
84
157
|
# @param [Hash] opts the optional parameters
|
158
|
+
# @option opts [String] :channel The tracking channel.
|
85
159
|
# @return [Array<(ListResponseDtoOfUserNotificationDto, Integer, Hash)>] ListResponseDtoOfUserNotificationDto data, response status code and response headers
|
86
160
|
def notifications_get_my_archive_with_http_info(opts = {})
|
87
161
|
if @api_client.config.debugging
|
@@ -92,6 +166,7 @@ module Notifo
|
|
92
166
|
|
93
167
|
# query parameters
|
94
168
|
query_params = opts[:query_params] || {}
|
169
|
+
query_params[:'channel'] = opts[:'channel'] if !opts[:'channel'].nil?
|
95
170
|
|
96
171
|
# header parameters
|
97
172
|
header_params = opts[:header_params] || {}
|
@@ -120,9 +195,71 @@ module Notifo
|
|
120
195
|
end
|
121
196
|
return data, status_code, headers
|
122
197
|
end
|
198
|
+
# Query user notifications of the current user for a specific device.
|
199
|
+
# @param [Hash] opts the optional parameters
|
200
|
+
# @option opts [String] :device_identifier The device identifier (aka mobile push token).
|
201
|
+
# @option opts [DateTime] :after The max age of the notifications.
|
202
|
+
# @option opts [BOOLEAN] :include_unseen True to also include unseen notifications.
|
203
|
+
# @option opts [Integer] :take The number of notifications to query.
|
204
|
+
# @return [ListResponseDtoOfUserNotificationDto]
|
205
|
+
def notifications_get_my_device_notifications(opts = {})
|
206
|
+
data, _status_code, _headers = notifications_get_my_device_notifications_with_http_info(opts)
|
207
|
+
data
|
208
|
+
end
|
209
|
+
|
210
|
+
# Query user notifications of the current user for a specific device.
|
211
|
+
# @param [Hash] opts the optional parameters
|
212
|
+
# @option opts [String] :device_identifier The device identifier (aka mobile push token).
|
213
|
+
# @option opts [DateTime] :after The max age of the notifications.
|
214
|
+
# @option opts [BOOLEAN] :include_unseen True to also include unseen notifications.
|
215
|
+
# @option opts [Integer] :take The number of notifications to query.
|
216
|
+
# @return [Array<(ListResponseDtoOfUserNotificationDto, Integer, Hash)>] ListResponseDtoOfUserNotificationDto data, response status code and response headers
|
217
|
+
def notifications_get_my_device_notifications_with_http_info(opts = {})
|
218
|
+
if @api_client.config.debugging
|
219
|
+
@api_client.config.logger.debug 'Calling API: NotificationsApi.notifications_get_my_device_notifications ...'
|
220
|
+
end
|
221
|
+
# resource path
|
222
|
+
local_var_path = '/api/me/notifications/device'
|
223
|
+
|
224
|
+
# query parameters
|
225
|
+
query_params = opts[:query_params] || {}
|
226
|
+
query_params[:'DeviceIdentifier'] = opts[:'device_identifier'] if !opts[:'device_identifier'].nil?
|
227
|
+
query_params[:'After'] = opts[:'after'] if !opts[:'after'].nil?
|
228
|
+
query_params[:'IncludeUnseen'] = opts[:'include_unseen'] if !opts[:'include_unseen'].nil?
|
229
|
+
query_params[:'Take'] = opts[:'take'] if !opts[:'take'].nil?
|
230
|
+
|
231
|
+
# header parameters
|
232
|
+
header_params = opts[:header_params] || {}
|
233
|
+
# HTTP header 'Accept' (if needed)
|
234
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
235
|
+
|
236
|
+
# form parameters
|
237
|
+
form_params = opts[:form_params] || {}
|
238
|
+
|
239
|
+
# http body (model)
|
240
|
+
post_body = opts[:body]
|
241
|
+
|
242
|
+
return_type = opts[:return_type] || 'ListResponseDtoOfUserNotificationDto'
|
243
|
+
|
244
|
+
auth_names = opts[:auth_names] || []
|
245
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
246
|
+
:header_params => header_params,
|
247
|
+
:query_params => query_params,
|
248
|
+
:form_params => form_params,
|
249
|
+
:body => post_body,
|
250
|
+
:auth_names => auth_names,
|
251
|
+
:return_type => return_type)
|
252
|
+
|
253
|
+
if @api_client.config.debugging
|
254
|
+
@api_client.config.logger.debug "API called: NotificationsApi#notifications_get_my_device_notifications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
255
|
+
end
|
256
|
+
return data, status_code, headers
|
257
|
+
end
|
123
258
|
# Query user notifications of the current user.
|
124
259
|
# @param [Hash] opts the optional parameters
|
125
260
|
# @option opts [Array<String>] :channels The active channels.
|
261
|
+
# @option opts [String] :channel The source channel.
|
262
|
+
# @option opts [String] :correlation_id The correlation ID, that can be used to query notifications.
|
126
263
|
# @option opts [String] :query The optional query to search for items.
|
127
264
|
# @option opts [Integer] :take The number of items to return.
|
128
265
|
# @option opts [Integer] :skip The number of items to skip.
|
@@ -135,6 +272,8 @@ module Notifo
|
|
135
272
|
# Query user notifications of the current user.
|
136
273
|
# @param [Hash] opts the optional parameters
|
137
274
|
# @option opts [Array<String>] :channels The active channels.
|
275
|
+
# @option opts [String] :channel The source channel.
|
276
|
+
# @option opts [String] :correlation_id The correlation ID, that can be used to query notifications.
|
138
277
|
# @option opts [String] :query The optional query to search for items.
|
139
278
|
# @option opts [Integer] :take The number of items to return.
|
140
279
|
# @option opts [Integer] :skip The number of items to skip.
|
@@ -149,6 +288,8 @@ module Notifo
|
|
149
288
|
# query parameters
|
150
289
|
query_params = opts[:query_params] || {}
|
151
290
|
query_params[:'Channels'] = @api_client.build_collection_param(opts[:'channels'], :multi) if !opts[:'channels'].nil?
|
291
|
+
query_params[:'Channel'] = opts[:'channel'] if !opts[:'channel'].nil?
|
292
|
+
query_params[:'CorrelationId'] = opts[:'correlation_id'] if !opts[:'correlation_id'].nil?
|
152
293
|
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
|
153
294
|
query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
|
154
295
|
query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
|
@@ -185,6 +326,8 @@ module Notifo
|
|
185
326
|
# @param id The user id.
|
186
327
|
# @param [Hash] opts the optional parameters
|
187
328
|
# @option opts [Array<String>] :channels The active channels.
|
329
|
+
# @option opts [String] :channel The source channel.
|
330
|
+
# @option opts [String] :correlation_id The correlation ID, that can be used to query notifications.
|
188
331
|
# @option opts [String] :query The optional query to search for items.
|
189
332
|
# @option opts [Integer] :take The number of items to return.
|
190
333
|
# @option opts [Integer] :skip The number of items to skip.
|
@@ -199,6 +342,8 @@ module Notifo
|
|
199
342
|
# @param id The user id.
|
200
343
|
# @param [Hash] opts the optional parameters
|
201
344
|
# @option opts [Array<String>] :channels The active channels.
|
345
|
+
# @option opts [String] :channel The source channel.
|
346
|
+
# @option opts [String] :correlation_id The correlation ID, that can be used to query notifications.
|
202
347
|
# @option opts [String] :query The optional query to search for items.
|
203
348
|
# @option opts [Integer] :take The number of items to return.
|
204
349
|
# @option opts [Integer] :skip The number of items to skip.
|
@@ -221,6 +366,8 @@ module Notifo
|
|
221
366
|
# query parameters
|
222
367
|
query_params = opts[:query_params] || {}
|
223
368
|
query_params[:'Channels'] = @api_client.build_collection_param(opts[:'channels'], :multi) if !opts[:'channels'].nil?
|
369
|
+
query_params[:'Channel'] = opts[:'channel'] if !opts[:'channel'].nil?
|
370
|
+
query_params[:'CorrelationId'] = opts[:'correlation_id'] if !opts[:'correlation_id'].nil?
|
224
371
|
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
|
225
372
|
query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
|
226
373
|
query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
|
data/lib/notifo/api/ping_api.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
OpenAPI spec version: 1.0.0
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 3.0.
|
9
|
+
Swagger Codegen version: 3.0.36
|
10
10
|
=end
|
11
11
|
|
12
12
|
module Notifo
|
@@ -16,6 +16,106 @@ module Notifo
|
|
16
16
|
def initialize(api_client = ApiClient.default)
|
17
17
|
@api_client = api_client
|
18
18
|
end
|
19
|
+
# Get some info about the API.
|
20
|
+
# Can be used to test, if the Squidex API is alive and responding.
|
21
|
+
# @param [Hash] opts the optional parameters
|
22
|
+
# @return [InfoDto]
|
23
|
+
def ping_get_info(opts = {})
|
24
|
+
data, _status_code, _headers = ping_get_info_with_http_info(opts)
|
25
|
+
data
|
26
|
+
end
|
27
|
+
|
28
|
+
# Get some info about the API.
|
29
|
+
# Can be used to test, if the Squidex API is alive and responding.
|
30
|
+
# @param [Hash] opts the optional parameters
|
31
|
+
# @return [Array<(InfoDto, Integer, Hash)>] InfoDto data, response status code and response headers
|
32
|
+
def ping_get_info_with_http_info(opts = {})
|
33
|
+
if @api_client.config.debugging
|
34
|
+
@api_client.config.logger.debug 'Calling API: PingApi.ping_get_info ...'
|
35
|
+
end
|
36
|
+
# resource path
|
37
|
+
local_var_path = '/api/info'
|
38
|
+
|
39
|
+
# query parameters
|
40
|
+
query_params = opts[:query_params] || {}
|
41
|
+
|
42
|
+
# header parameters
|
43
|
+
header_params = opts[:header_params] || {}
|
44
|
+
# HTTP header 'Accept' (if needed)
|
45
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
46
|
+
|
47
|
+
# form parameters
|
48
|
+
form_params = opts[:form_params] || {}
|
49
|
+
|
50
|
+
# http body (model)
|
51
|
+
post_body = opts[:body]
|
52
|
+
|
53
|
+
return_type = opts[:return_type] || 'InfoDto'
|
54
|
+
|
55
|
+
auth_names = opts[:auth_names] || []
|
56
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
57
|
+
:header_params => header_params,
|
58
|
+
:query_params => query_params,
|
59
|
+
:form_params => form_params,
|
60
|
+
:body => post_body,
|
61
|
+
:auth_names => auth_names,
|
62
|
+
:return_type => return_type)
|
63
|
+
|
64
|
+
if @api_client.config.debugging
|
65
|
+
@api_client.config.logger.debug "API called: PingApi#ping_get_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
66
|
+
end
|
67
|
+
return data, status_code, headers
|
68
|
+
end
|
69
|
+
# Get ping status of the API.
|
70
|
+
# Can be used to test, if the Squidex API is alive and responding.
|
71
|
+
# @param [Hash] opts the optional parameters
|
72
|
+
# @return [nil]
|
73
|
+
def ping_get_old_ping(opts = {})
|
74
|
+
ping_get_old_ping_with_http_info(opts)
|
75
|
+
nil
|
76
|
+
end
|
77
|
+
|
78
|
+
# Get ping status of the API.
|
79
|
+
# Can be used to test, if the Squidex API is alive and responding.
|
80
|
+
# @param [Hash] opts the optional parameters
|
81
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
82
|
+
def ping_get_old_ping_with_http_info(opts = {})
|
83
|
+
if @api_client.config.debugging
|
84
|
+
@api_client.config.logger.debug 'Calling API: PingApi.ping_get_old_ping ...'
|
85
|
+
end
|
86
|
+
# resource path
|
87
|
+
local_var_path = '/ping'
|
88
|
+
|
89
|
+
# query parameters
|
90
|
+
query_params = opts[:query_params] || {}
|
91
|
+
|
92
|
+
# header parameters
|
93
|
+
header_params = opts[:header_params] || {}
|
94
|
+
# HTTP header 'Accept' (if needed)
|
95
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
96
|
+
|
97
|
+
# form parameters
|
98
|
+
form_params = opts[:form_params] || {}
|
99
|
+
|
100
|
+
# http body (model)
|
101
|
+
post_body = opts[:body]
|
102
|
+
|
103
|
+
return_type = opts[:return_type]
|
104
|
+
|
105
|
+
auth_names = opts[:auth_names] || []
|
106
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
107
|
+
:header_params => header_params,
|
108
|
+
:query_params => query_params,
|
109
|
+
:form_params => form_params,
|
110
|
+
:body => post_body,
|
111
|
+
:auth_names => auth_names,
|
112
|
+
:return_type => return_type)
|
113
|
+
|
114
|
+
if @api_client.config.debugging
|
115
|
+
@api_client.config.logger.debug "API called: PingApi#ping_get_old_ping\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
116
|
+
end
|
117
|
+
return data, status_code, headers
|
118
|
+
end
|
19
119
|
# Get ping status of the API.
|
20
120
|
# Can be used to test, if the Squidex API is alive and responding.
|
21
121
|
# @param [Hash] opts the optional parameters
|
@@ -34,7 +134,7 @@ module Notifo
|
|
34
134
|
@api_client.config.logger.debug 'Calling API: PingApi.ping_get_ping ...'
|
35
135
|
end
|
36
136
|
# resource path
|
37
|
-
local_var_path = '/ping'
|
137
|
+
local_var_path = '/api/ping'
|
38
138
|
|
39
139
|
# query parameters
|
40
140
|
query_params = opts[:query_params] || {}
|