notifo-io 1.0.1.2 → 1.1.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 +646 -149
- data/docs/AppDetailsDto.md +3 -1
- data/docs/AppDto.md +2 -0
- data/docs/AppsApi.md +0 -186
- data/docs/{NotificationSend.md → ChannelCondition.md} +1 -1
- data/docs/{EventProperties.md → ChannelSend.md} +1 -1
- data/docs/ChannelSendInfoDto.md +9 -0
- data/docs/ChannelSettingDto.md +11 -0
- data/docs/ChannelTemplateDetailsDtoOfEmailTemplateDto.md +12 -0
- data/docs/ChannelTemplateDetailsDtoOfMessagingTemplateDto.md +12 -0
- data/docs/ChannelTemplateDetailsDtoOfSmsTemplateDto.md +12 -0
- data/docs/ChannelTemplateDto.md +11 -0
- data/docs/ConfiguredIntegrationDto.md +2 -1
- data/docs/CreateChannelTemplateDto.md +7 -0
- data/docs/{CreateEmailTemplateDto.md → CreateChannelTemplateLanguageDto.md} +1 -1
- data/docs/CreateIntegrationDto.md +1 -1
- data/docs/CreateSystemUserDto.md +9 -0
- data/docs/EmailFormattingError.md +10 -0
- data/docs/EmailPreviewDto.md +8 -0
- data/docs/EmailPreviewRequestDto.md +9 -0
- data/docs/{EmailTemplatesDto.md → EmailPreviewType.md} +1 -1
- data/docs/EmailTemplateDto.md +3 -0
- data/docs/{IntegrationProperties.md → EmailTemplateType.md} +1 -1
- data/docs/EmailTemplatesApi.md +488 -0
- data/docs/ErrorDto.md +1 -0
- data/docs/EventDto.md +3 -1
- data/docs/EventsApi.md +7 -5
- data/docs/HandledInfoDto.md +8 -0
- data/docs/IntegrationPropertyDto.md +2 -0
- data/docs/ListResponseDtoOfChannelTemplateDto.md +8 -0
- data/docs/ListResponseDtoOfMobilePushTokenDto.md +1 -1
- data/docs/{ListResponseDtoOfNotificationDto.md → ListResponseDtoOfSystemUserDto.md} +2 -2
- data/docs/ListResponseDtoOfUserNotificationDetailsDto.md +8 -0
- data/docs/ListResponseDtoOfUserNotificationDto.md +8 -0
- data/docs/MediaDto.md +3 -1
- data/docs/{Body.md → MessagingTemplateDto.md} +2 -2
- data/docs/MessagingTemplatesApi.md +394 -0
- data/docs/MobilePushApi.md +15 -15
- data/docs/MobilePushTokenDto.md +3 -2
- data/docs/MobilePushTokenDto2.md +8 -0
- data/docs/NotificationFormattingDto.md +1 -1
- data/docs/NotificationProperties.md +6 -0
- data/docs/NotificationsApi.md +74 -16
- data/docs/PingApi.md +48 -0
- data/docs/ProcessStatus.md +6 -0
- data/docs/ProfileDto.md +2 -1
- data/docs/PublishDto.md +2 -2
- data/docs/{EmailVerificationStatus.md → SmsTemplateDto.md} +2 -1
- data/docs/SmsTemplatesApi.md +394 -0
- data/docs/SubscribeDto.md +8 -0
- data/docs/SubscribeManyDto.md +8 -0
- data/docs/SubscriptionDto.md +1 -1
- data/docs/SystemUserDto.md +11 -0
- data/docs/SystemUsersApi.md +327 -0
- data/docs/TemplateDto.md +3 -1
- data/docs/TemplatesApi.md +3 -4
- data/docs/TopicChannel.md +6 -0
- data/docs/TopicDto.md +7 -1
- data/docs/TopicQueryScope.md +6 -0
- data/docs/TopicsApi.md +95 -0
- data/docs/UpdateChannelTemplateDtoOfEmailTemplateDto.md +9 -0
- data/docs/UpdateChannelTemplateDtoOfMessagingTemplateDto.md +9 -0
- data/docs/UpdateChannelTemplateDtoOfSmsTemplateDto.md +9 -0
- data/docs/UpdateIntegrationDto.md +2 -1
- data/docs/UpdateProfileDto.md +1 -1
- data/docs/UpdateSystemUserDto.md +9 -0
- data/docs/UpsertTemplateDto.md +1 -1
- data/docs/UpsertTopicDto.md +11 -0
- data/docs/UpsertTopicsDto.md +7 -0
- data/docs/UpsertUserDto.md +2 -2
- data/docs/UserApi.md +119 -21
- data/docs/UserDto.md +7 -2
- data/docs/UserNotificationBaseDto.md +23 -0
- data/docs/UserNotificationChannelDto.md +11 -0
- data/docs/UserNotificationDetailsDto.md +27 -0
- data/docs/{NotificationDto.md → UserNotificationDto.md} +9 -5
- data/docs/UserPropertyDto.md +9 -0
- data/docs/UserTopicDto.md +11 -0
- data/docs/UsersApi.md +37 -32
- data/lib/notifo/api/apps_api.rb +1 -245
- data/lib/notifo/api/configs_api.rb +1 -1
- data/lib/notifo/api/email_templates_api.rb +663 -0
- data/lib/notifo/api/events_api.rb +10 -7
- data/lib/notifo/api/logs_api.rb +1 -1
- data/lib/notifo/api/media_api.rb +1 -1
- data/lib/notifo/api/messaging_templates_api.rb +541 -0
- data/lib/notifo/api/mobile_push_api.rb +18 -18
- data/lib/notifo/api/notifications_api.rb +97 -22
- data/lib/notifo/api/ping_api.rb +70 -0
- data/lib/notifo/api/sms_templates_api.rb +541 -0
- data/lib/notifo/api/system_users_api.rb +411 -0
- data/lib/notifo/api/templates_api.rb +6 -6
- data/lib/notifo/api/topics_api.rb +126 -1
- data/lib/notifo/api/user_api.rb +138 -27
- data/lib/notifo/api/users_api.rb +38 -32
- data/lib/notifo/api_client.rb +1 -1
- data/lib/notifo/api_error.rb +1 -1
- data/lib/notifo/configuration.rb +1 -1
- data/lib/notifo/models/add_allowed_topic_dto.rb +1 -1
- data/lib/notifo/models/add_contributor_dto.rb +1 -1
- data/lib/notifo/models/app_contributor_dto.rb +1 -1
- data/lib/notifo/models/app_details_dto.rb +41 -11
- data/lib/notifo/models/app_dto.rb +32 -2
- data/lib/notifo/models/app_id_media_body.rb +1 -1
- data/lib/notifo/models/channel_condition.rb +30 -0
- data/lib/notifo/models/{notification_send.rb → channel_send.rb} +4 -4
- data/lib/notifo/models/channel_send_info_dto.rb +227 -0
- data/lib/notifo/models/channel_setting_dto.rb +256 -0
- data/lib/notifo/models/channel_template_details_dto_of_email_template_dto.rb +285 -0
- data/lib/notifo/models/channel_template_details_dto_of_messaging_template_dto.rb +285 -0
- data/lib/notifo/models/channel_template_details_dto_of_sms_template_dto.rb +285 -0
- data/lib/notifo/models/channel_template_dto.rb +264 -0
- data/lib/notifo/models/configured_integration_dto.rb +17 -3
- data/lib/notifo/models/configured_integrations_dto.rb +1 -1
- data/lib/notifo/models/confirm_mode.rb +2 -3
- data/lib/notifo/models/{body.rb → create_channel_template_dto.rb} +13 -11
- data/lib/notifo/models/{create_email_template_dto.rb → create_channel_template_language_dto.rb} +4 -4
- data/lib/notifo/models/create_integration_dto.rb +7 -2
- data/lib/notifo/models/create_system_user_dto.rb +240 -0
- data/lib/notifo/models/email_formatting_error.rb +233 -0
- data/lib/notifo/models/email_preview_dto.rb +221 -0
- data/lib/notifo/models/email_preview_request_dto.rb +232 -0
- data/lib/notifo/models/email_preview_type.rb +28 -0
- data/lib/notifo/models/email_template_dto.rb +39 -6
- data/lib/notifo/models/email_template_type.rb +30 -0
- data/lib/notifo/models/error_dto.rb +13 -2
- data/lib/notifo/models/event_dto.rb +24 -2
- data/lib/notifo/models/handled_info_dto.rb +218 -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 +30 -2
- data/lib/notifo/models/integration_property_type.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 +229 -0
- 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_notification_dto.rb → list_response_dto_of_system_user_dto.rb} +4 -4
- 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 +229 -0
- data/lib/notifo/models/list_response_dto_of_user_notification_dto.rb +229 -0
- 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 +42 -12
- 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 +212 -0
- data/lib/notifo/models/mobile_device_type.rb +1 -1
- data/lib/notifo/models/mobile_push_token_dto.rb +22 -6
- data/lib/notifo/models/{notification_setting_dto.rb → mobile_push_token_dto2.rb} +21 -22
- data/lib/notifo/models/notification_formatting_dto.rb +1 -6
- data/lib/notifo/models/{event_properties.rb → notification_properties.rb} +4 -4
- data/lib/notifo/models/{email_verification_status.rb → process_status.rb} +8 -7
- data/lib/notifo/models/profile_dto.rb +14 -2
- data/lib/notifo/models/publish_dto.rb +1 -1
- data/lib/notifo/models/publish_many_dto.rb +1 -1
- data/lib/notifo/models/register_mobile_token_dto.rb +1 -1
- 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/{email_templates_dto.rb → sms_template_dto.rb} +22 -11
- data/lib/notifo/models/subscribe_dto.rb +225 -0
- data/lib/notifo/models/subscribe_many_dto.rb +223 -0
- data/lib/notifo/models/subscription_dto.rb +6 -2
- data/lib/notifo/models/system_user_dto.rb +269 -0
- data/lib/notifo/models/template_dto.rb +32 -2
- data/lib/notifo/models/topic_channel.rb +28 -0
- data/lib/notifo/models/topic_dto.rb +69 -3
- data/lib/notifo/models/topic_query_scope.rb +29 -0
- data/lib/notifo/models/track_notification_dto.rb +1 -1
- data/lib/notifo/models/update_channel_template_dto_of_email_template_dto.rb +232 -0
- data/lib/notifo/models/update_channel_template_dto_of_messaging_template_dto.rb +232 -0
- data/lib/notifo/models/update_channel_template_dto_of_sms_template_dto.rb +232 -0
- data/lib/notifo/models/update_integration_dto.rb +19 -3
- data/lib/notifo/models/update_profile_dto.rb +1 -1
- data/lib/notifo/models/update_system_user_dto.rb +240 -0
- 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 +249 -0
- data/lib/notifo/models/upsert_topics_dto.rb +214 -0
- data/lib/notifo/models/upsert_user_dto.rb +15 -13
- data/lib/notifo/models/upsert_users_dto.rb +1 -1
- data/lib/notifo/models/user_dto.rb +89 -16
- data/lib/notifo/models/{notification_dto.rb → user_notification_base_dto.rb} +62 -46
- data/lib/notifo/models/user_notification_channel_dto.rb +261 -0
- data/lib/notifo/models/user_notification_details_dto.rb +450 -0
- data/lib/notifo/models/user_notification_dto.rb +436 -0
- data/lib/notifo/models/user_property_dto.rb +234 -0
- data/lib/notifo/models/user_topic_dto.rb +265 -0
- data/lib/notifo/version.rb +1 -1
- data/lib/notifo.rb +49 -11
- data/notifo.gemspec +3 -3
- data/spec/api/apps_api_spec.rb +20 -20
- data/spec/api/configs_api_spec.rb +1 -1
- data/spec/api/email_templates_api_spec.rb +161 -0
- data/spec/api/events_api_spec.rb +13 -1
- data/spec/api/logs_api_spec.rb +1 -1
- data/spec/api/media_api_spec.rb +1 -1
- data/spec/api/messaging_templates_api_spec.rb +137 -0
- data/spec/api/mobile_push_api_spec.rb +7 -7
- data/spec/api/notifications_api_spec.rb +25 -8
- data/spec/api/ping_api_spec.rb +45 -0
- data/spec/api/sms_templates_api_spec.rb +137 -0
- data/spec/api/system_users_api_spec.rb +114 -0
- data/spec/api/templates_api_spec.rb +2 -2
- data/spec/api/topics_api_spec.rb +26 -1
- data/spec/api/user_api_spec.rb +33 -8
- data/spec/api/users_api_spec.rb +15 -13
- 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/app_contributor_dto_spec.rb +1 -1
- data/spec/models/app_details_dto_spec.rb +4 -40
- data/spec/models/app_dto_spec.rb +13 -1
- data/spec/models/app_id_media_body_spec.rb +1 -1
- data/spec/models/{notification_send_spec.rb → channel_condition_spec.rb} +7 -7
- data/spec/models/channel_send_info_dto_spec.rb +52 -0
- data/spec/models/{event_properties_spec.rb → channel_send_spec.rb} +7 -7
- data/spec/models/channel_setting_dto_spec.rb +64 -0
- data/spec/models/channel_template_details_dto_of_email_template_dto_spec.rb +70 -0
- data/spec/models/channel_template_details_dto_of_messaging_template_dto_spec.rb +70 -0
- data/spec/models/channel_template_details_dto_of_sms_template_dto_spec.rb +70 -0
- data/spec/models/channel_template_dto_spec.rb +64 -0
- data/spec/models/configured_integration_dto_spec.rb +7 -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 +40 -0
- data/spec/models/{create_email_template_dto_spec.rb → create_channel_template_language_dto_spec.rb} +7 -7
- data/spec/models/create_integration_dto_spec.rb +1 -1
- data/spec/models/create_system_user_dto_spec.rb +52 -0
- data/spec/{api/authorization_api_spec.rb → models/email_formatting_error_spec.rb} +16 -19
- data/spec/models/{notification_setting_dto_spec.rb → email_preview_dto_spec.rb} +9 -9
- data/spec/models/email_preview_request_dto_spec.rb +52 -0
- data/spec/models/{email_templates_dto_spec.rb → email_preview_type_spec.rb} +7 -7
- data/spec/models/email_template_dto_spec.rb +19 -1
- data/spec/models/{integration_properties_spec.rb → email_template_type_spec.rb} +7 -7
- data/spec/models/error_dto_spec.rb +7 -1
- data/spec/models/event_dto_spec.rb +19 -1
- data/spec/models/handled_info_dto_spec.rb +46 -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 +13 -1
- data/spec/models/integration_property_type_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 +46 -0
- 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_notification_dto_spec.rb → list_response_dto_of_system_user_dto_spec.rb} +7 -7
- 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 +46 -0
- data/spec/{api/user_info_api_spec.rb → models/list_response_dto_of_user_notification_dto_spec.rb} +10 -16
- 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 +14 -2
- 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 +40 -0
- data/spec/models/mobile_device_type_spec.rb +1 -1
- data/spec/models/mobile_push_token_dto2_spec.rb +46 -0
- 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 +34 -0
- data/spec/models/process_status_spec.rb +34 -0
- data/spec/models/profile_dto_spec.rb +7 -1
- 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 +1 -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/{body_spec.rb → sms_template_dto_spec.rb} +8 -8
- data/spec/models/subscribe_dto_spec.rb +46 -0
- data/spec/models/subscribe_many_dto_spec.rb +46 -0
- data/spec/models/subscription_dto_spec.rb +1 -1
- data/spec/models/system_user_dto_spec.rb +64 -0
- data/spec/models/template_dto_spec.rb +13 -1
- data/spec/models/topic_channel_spec.rb +34 -0
- data/spec/models/topic_dto_spec.rb +37 -1
- data/spec/models/topic_query_scope_spec.rb +34 -0
- data/spec/models/track_notification_dto_spec.rb +1 -1
- data/spec/models/update_channel_template_dto_of_email_template_dto_spec.rb +52 -0
- data/spec/models/update_channel_template_dto_of_messaging_template_dto_spec.rb +52 -0
- data/spec/models/update_channel_template_dto_of_sms_template_dto_spec.rb +52 -0
- data/spec/models/update_integration_dto_spec.rb +7 -1
- data/spec/models/update_profile_dto_spec.rb +1 -1
- data/spec/models/update_system_user_dto_spec.rb +52 -0
- 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 +64 -0
- data/spec/models/upsert_topics_dto_spec.rb +40 -0
- data/spec/models/upsert_user_dto_spec.rb +7 -1
- data/spec/models/upsert_users_dto_spec.rb +1 -1
- data/spec/models/user_dto_spec.rb +49 -1
- data/spec/models/{notification_dto_spec.rb → user_notification_base_dto_spec.rb} +23 -11
- data/spec/models/user_notification_channel_dto_spec.rb +64 -0
- data/spec/models/user_notification_details_dto_spec.rb +160 -0
- data/spec/models/user_notification_dto_spec.rb +148 -0
- data/spec/models/user_property_dto_spec.rb +52 -0
- data/spec/models/user_topic_dto_spec.rb +64 -0
- data/spec/spec_helper.rb +1 -1
- metadata +207 -64
- data/docs/AuthorizationApi.md +0 -121
- data/docs/NotificationSettingDto.md +0 -8
- data/docs/UserInfoApi.md +0 -83
- data/lib/notifo/api/authorization_api.rb +0 -158
- data/lib/notifo/api/user_info_api.rb +0 -112
- data/lib/notifo/models/integration_properties.rb +0 -201
- data/notifo-io-1.0.1.1.gem +0 -0
- data/spec/models/email_verification_status_spec.rb +0 -34
data/lib/notifo/api/user_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.29
|
10
10
|
=end
|
11
11
|
|
12
12
|
module Notifo
|
@@ -16,31 +16,31 @@ module Notifo
|
|
16
16
|
def initialize(api_client = ApiClient.default)
|
17
17
|
@api_client = api_client
|
18
18
|
end
|
19
|
-
#
|
19
|
+
# Remove my subscription.
|
20
20
|
# User Id and App Id are resolved using the API token.
|
21
|
-
# @param
|
21
|
+
# @param prefix The topic prefix.
|
22
22
|
# @param [Hash] opts the optional parameters
|
23
23
|
# @return [nil]
|
24
|
-
def user_delete_subscription(
|
25
|
-
user_delete_subscription_with_http_info(
|
24
|
+
def user_delete_subscription(prefix, opts = {})
|
25
|
+
user_delete_subscription_with_http_info(prefix, opts)
|
26
26
|
nil
|
27
27
|
end
|
28
28
|
|
29
|
-
#
|
29
|
+
# Remove my subscription.
|
30
30
|
# User Id and App Id are resolved using the API token.
|
31
|
-
# @param
|
31
|
+
# @param prefix The topic prefix.
|
32
32
|
# @param [Hash] opts the optional parameters
|
33
33
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
34
|
-
def user_delete_subscription_with_http_info(
|
34
|
+
def user_delete_subscription_with_http_info(prefix, opts = {})
|
35
35
|
if @api_client.config.debugging
|
36
36
|
@api_client.config.logger.debug 'Calling API: UserApi.user_delete_subscription ...'
|
37
37
|
end
|
38
|
-
# verify the required parameter '
|
39
|
-
if @api_client.config.client_side_validation &&
|
40
|
-
fail ArgumentError, "Missing the required parameter '
|
38
|
+
# verify the required parameter 'prefix' is set
|
39
|
+
if @api_client.config.client_side_validation && prefix.nil?
|
40
|
+
fail ArgumentError, "Missing the required parameter 'prefix' when calling UserApi.user_delete_subscription"
|
41
41
|
end
|
42
42
|
# resource path
|
43
|
-
local_var_path = '/api/me/subscriptions/{
|
43
|
+
local_var_path = '/api/me/subscriptions/{prefix}'.sub('{' + 'prefix' + '}', prefix.to_s)
|
44
44
|
|
45
45
|
# query parameters
|
46
46
|
query_params = opts[:query_params] || {}
|
@@ -59,7 +59,7 @@ module Notifo
|
|
59
59
|
return_type = opts[:return_type]
|
60
60
|
|
61
61
|
auth_names = opts[:auth_names] || []
|
62
|
-
data, status_code, headers = @api_client.call_api(:
|
62
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
63
63
|
:header_params => header_params,
|
64
64
|
:query_params => query_params,
|
65
65
|
:form_params => form_params,
|
@@ -77,8 +77,8 @@ module Notifo
|
|
77
77
|
# @param topic The topic path.
|
78
78
|
# @param [Hash] opts the optional parameters
|
79
79
|
# @return [SubscriptionDto]
|
80
|
-
def
|
81
|
-
data, _status_code, _headers =
|
80
|
+
def user_get_my_subscription(topic, opts = {})
|
81
|
+
data, _status_code, _headers = user_get_my_subscription_with_http_info(topic, opts)
|
82
82
|
data
|
83
83
|
end
|
84
84
|
|
@@ -87,13 +87,13 @@ module Notifo
|
|
87
87
|
# @param topic The topic path.
|
88
88
|
# @param [Hash] opts the optional parameters
|
89
89
|
# @return [Array<(SubscriptionDto, Integer, Hash)>] SubscriptionDto data, response status code and response headers
|
90
|
-
def
|
90
|
+
def user_get_my_subscription_with_http_info(topic, opts = {})
|
91
91
|
if @api_client.config.debugging
|
92
|
-
@api_client.config.logger.debug 'Calling API: UserApi.
|
92
|
+
@api_client.config.logger.debug 'Calling API: UserApi.user_get_my_subscription ...'
|
93
93
|
end
|
94
94
|
# verify the required parameter 'topic' is set
|
95
95
|
if @api_client.config.client_side_validation && topic.nil?
|
96
|
-
fail ArgumentError, "Missing the required parameter 'topic' when calling UserApi.
|
96
|
+
fail ArgumentError, "Missing the required parameter 'topic' when calling UserApi.user_get_my_subscription"
|
97
97
|
end
|
98
98
|
# resource path
|
99
99
|
local_var_path = '/api/me/subscriptions/{topic}'.sub('{' + 'topic' + '}', topic.to_s)
|
@@ -124,7 +124,118 @@ module Notifo
|
|
124
124
|
:return_type => return_type)
|
125
125
|
|
126
126
|
if @api_client.config.debugging
|
127
|
-
@api_client.config.logger.debug "API called: UserApi#
|
127
|
+
@api_client.config.logger.debug "API called: UserApi#user_get_my_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
128
|
+
end
|
129
|
+
return data, status_code, headers
|
130
|
+
end
|
131
|
+
# Query the user subscriptions.
|
132
|
+
# @param [Hash] opts the optional parameters
|
133
|
+
# @option opts [String] :topics The topics we are interested in.
|
134
|
+
# @option opts [String] :query The optional query to search for items.
|
135
|
+
# @option opts [Integer] :take The number of items to return.
|
136
|
+
# @option opts [Integer] :skip The number of items to skip.
|
137
|
+
# @return [ListResponseDtoOfSubscriptionDto]
|
138
|
+
def user_get_my_subscriptions(opts = {})
|
139
|
+
data, _status_code, _headers = user_get_my_subscriptions_with_http_info(opts)
|
140
|
+
data
|
141
|
+
end
|
142
|
+
|
143
|
+
# Query the user subscriptions.
|
144
|
+
# @param [Hash] opts the optional parameters
|
145
|
+
# @option opts [String] :topics The topics we are interested in.
|
146
|
+
# @option opts [String] :query The optional query to search for items.
|
147
|
+
# @option opts [Integer] :take The number of items to return.
|
148
|
+
# @option opts [Integer] :skip The number of items to skip.
|
149
|
+
# @return [Array<(ListResponseDtoOfSubscriptionDto, Integer, Hash)>] ListResponseDtoOfSubscriptionDto data, response status code and response headers
|
150
|
+
def user_get_my_subscriptions_with_http_info(opts = {})
|
151
|
+
if @api_client.config.debugging
|
152
|
+
@api_client.config.logger.debug 'Calling API: UserApi.user_get_my_subscriptions ...'
|
153
|
+
end
|
154
|
+
# resource path
|
155
|
+
local_var_path = '/api/me/subscriptions'
|
156
|
+
|
157
|
+
# query parameters
|
158
|
+
query_params = opts[:query_params] || {}
|
159
|
+
query_params[:'Topics'] = opts[:'topics'] if !opts[:'topics'].nil?
|
160
|
+
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
|
161
|
+
query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
|
162
|
+
query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
|
163
|
+
|
164
|
+
# header parameters
|
165
|
+
header_params = opts[:header_params] || {}
|
166
|
+
# HTTP header 'Accept' (if needed)
|
167
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
168
|
+
|
169
|
+
# form parameters
|
170
|
+
form_params = opts[:form_params] || {}
|
171
|
+
|
172
|
+
# http body (model)
|
173
|
+
post_body = opts[:body]
|
174
|
+
|
175
|
+
return_type = opts[:return_type] || 'ListResponseDtoOfSubscriptionDto'
|
176
|
+
|
177
|
+
auth_names = opts[:auth_names] || []
|
178
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
179
|
+
:header_params => header_params,
|
180
|
+
:query_params => query_params,
|
181
|
+
:form_params => form_params,
|
182
|
+
:body => post_body,
|
183
|
+
:auth_names => auth_names,
|
184
|
+
:return_type => return_type)
|
185
|
+
|
186
|
+
if @api_client.config.debugging
|
187
|
+
@api_client.config.logger.debug "API called: UserApi#user_get_my_subscriptions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
188
|
+
end
|
189
|
+
return data, status_code, headers
|
190
|
+
end
|
191
|
+
# Query the user topics.
|
192
|
+
# @param [Hash] opts the optional parameters
|
193
|
+
# @option opts [String] :language The optional language.
|
194
|
+
# @return [Array<UserTopicDto>]
|
195
|
+
def user_get_topics(opts = {})
|
196
|
+
data, _status_code, _headers = user_get_topics_with_http_info(opts)
|
197
|
+
data
|
198
|
+
end
|
199
|
+
|
200
|
+
# Query the user topics.
|
201
|
+
# @param [Hash] opts the optional parameters
|
202
|
+
# @option opts [String] :language The optional language.
|
203
|
+
# @return [Array<(Array<UserTopicDto>, Integer, Hash)>] Array<UserTopicDto> data, response status code and response headers
|
204
|
+
def user_get_topics_with_http_info(opts = {})
|
205
|
+
if @api_client.config.debugging
|
206
|
+
@api_client.config.logger.debug 'Calling API: UserApi.user_get_topics ...'
|
207
|
+
end
|
208
|
+
# resource path
|
209
|
+
local_var_path = '/api/me/topics'
|
210
|
+
|
211
|
+
# query parameters
|
212
|
+
query_params = opts[:query_params] || {}
|
213
|
+
query_params[:'language'] = opts[:'language'] if !opts[:'language'].nil?
|
214
|
+
|
215
|
+
# header parameters
|
216
|
+
header_params = opts[:header_params] || {}
|
217
|
+
# HTTP header 'Accept' (if needed)
|
218
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
219
|
+
|
220
|
+
# form parameters
|
221
|
+
form_params = opts[:form_params] || {}
|
222
|
+
|
223
|
+
# http body (model)
|
224
|
+
post_body = opts[:body]
|
225
|
+
|
226
|
+
return_type = opts[:return_type] || 'Array<UserTopicDto>'
|
227
|
+
|
228
|
+
auth_names = opts[:auth_names] || []
|
229
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
230
|
+
:header_params => header_params,
|
231
|
+
:query_params => query_params,
|
232
|
+
:form_params => form_params,
|
233
|
+
:body => post_body,
|
234
|
+
:auth_names => auth_names,
|
235
|
+
:return_type => return_type)
|
236
|
+
|
237
|
+
if @api_client.config.debugging
|
238
|
+
@api_client.config.logger.debug "API called: UserApi#user_get_topics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
128
239
|
end
|
129
240
|
return data, status_code, headers
|
130
241
|
end
|
@@ -176,28 +287,28 @@ module Notifo
|
|
176
287
|
end
|
177
288
|
return data, status_code, headers
|
178
289
|
end
|
179
|
-
#
|
290
|
+
# Upserts or deletes my subscriptions.
|
180
291
|
# User Id and App Id are resolved using the API token.
|
181
292
|
# @param body The subscription settings.
|
182
293
|
# @param [Hash] opts the optional parameters
|
183
294
|
# @return [nil]
|
184
|
-
def
|
185
|
-
|
295
|
+
def user_post_my_subscriptions(body, opts = {})
|
296
|
+
user_post_my_subscriptions_with_http_info(body, opts)
|
186
297
|
nil
|
187
298
|
end
|
188
299
|
|
189
|
-
#
|
300
|
+
# Upserts or deletes my subscriptions.
|
190
301
|
# User Id and App Id are resolved using the API token.
|
191
302
|
# @param body The subscription settings.
|
192
303
|
# @param [Hash] opts the optional parameters
|
193
304
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
194
|
-
def
|
305
|
+
def user_post_my_subscriptions_with_http_info(body, opts = {})
|
195
306
|
if @api_client.config.debugging
|
196
|
-
@api_client.config.logger.debug 'Calling API: UserApi.
|
307
|
+
@api_client.config.logger.debug 'Calling API: UserApi.user_post_my_subscriptions ...'
|
197
308
|
end
|
198
309
|
# verify the required parameter 'body' is set
|
199
310
|
if @api_client.config.client_side_validation && body.nil?
|
200
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling UserApi.
|
311
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling UserApi.user_post_my_subscriptions"
|
201
312
|
end
|
202
313
|
# resource path
|
203
314
|
local_var_path = '/api/me/subscriptions'
|
@@ -230,7 +341,7 @@ module Notifo
|
|
230
341
|
:return_type => return_type)
|
231
342
|
|
232
343
|
if @api_client.config.debugging
|
233
|
-
@api_client.config.logger.debug "API called: UserApi#
|
344
|
+
@api_client.config.logger.debug "API called: UserApi#user_post_my_subscriptions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
234
345
|
end
|
235
346
|
return data, status_code, headers
|
236
347
|
end
|
data/lib/notifo/api/users_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.29
|
10
10
|
=end
|
11
11
|
|
12
12
|
module Notifo
|
@@ -18,7 +18,7 @@ module Notifo
|
|
18
18
|
end
|
19
19
|
# Remove an allowed topic.
|
20
20
|
# @param app_id The app where the users belong to.
|
21
|
-
# @param id The user
|
21
|
+
# @param id The user ID.
|
22
22
|
# @param prefix The topic prefix.
|
23
23
|
# @param [Hash] opts the optional parameters
|
24
24
|
# @return [nil]
|
@@ -29,7 +29,7 @@ module Notifo
|
|
29
29
|
|
30
30
|
# Remove an allowed topic.
|
31
31
|
# @param app_id The app where the users belong to.
|
32
|
-
# @param id The user
|
32
|
+
# @param id The user ID.
|
33
33
|
# @param prefix The topic prefix.
|
34
34
|
# @param [Hash] opts the optional parameters
|
35
35
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
@@ -82,9 +82,9 @@ module Notifo
|
|
82
82
|
end
|
83
83
|
return data, status_code, headers
|
84
84
|
end
|
85
|
-
#
|
85
|
+
# Unsubscribes a user from a subscription.
|
86
86
|
# @param app_id The app where the user belongs to.
|
87
|
-
# @param id The user
|
87
|
+
# @param id The user ID.
|
88
88
|
# @param prefix The topic prefix.
|
89
89
|
# @param [Hash] opts the optional parameters
|
90
90
|
# @return [nil]
|
@@ -93,9 +93,9 @@ module Notifo
|
|
93
93
|
nil
|
94
94
|
end
|
95
95
|
|
96
|
-
#
|
96
|
+
# Unsubscribes a user from a subscription.
|
97
97
|
# @param app_id The app where the user belongs to.
|
98
|
-
# @param id The user
|
98
|
+
# @param id The user ID.
|
99
99
|
# @param prefix The topic prefix.
|
100
100
|
# @param [Hash] opts the optional parameters
|
101
101
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
@@ -152,7 +152,7 @@ module Notifo
|
|
152
152
|
# @param app_id The app where the users belongs to.
|
153
153
|
# @param id The user id to delete.
|
154
154
|
# @param [Hash] opts the optional parameters
|
155
|
-
# @return [
|
155
|
+
# @return [String]
|
156
156
|
def users_delete_user(app_id, id, opts = {})
|
157
157
|
data, _status_code, _headers = users_delete_user_with_http_info(app_id, id, opts)
|
158
158
|
data
|
@@ -162,7 +162,7 @@ module Notifo
|
|
162
162
|
# @param app_id The app where the users belongs to.
|
163
163
|
# @param id The user id to delete.
|
164
164
|
# @param [Hash] opts the optional parameters
|
165
|
-
# @return [Array<(
|
165
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
166
166
|
def users_delete_user_with_http_info(app_id, id, opts = {})
|
167
167
|
if @api_client.config.debugging
|
168
168
|
@api_client.config.logger.debug 'Calling API: UsersApi.users_delete_user ...'
|
@@ -184,7 +184,7 @@ module Notifo
|
|
184
184
|
# header parameters
|
185
185
|
header_params = opts[:header_params] || {}
|
186
186
|
# HTTP header 'Accept' (if needed)
|
187
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
187
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream', 'application/json'])
|
188
188
|
|
189
189
|
# form parameters
|
190
190
|
form_params = opts[:form_params] || {}
|
@@ -192,7 +192,7 @@ module Notifo
|
|
192
192
|
# http body (model)
|
193
193
|
post_body = opts[:body]
|
194
194
|
|
195
|
-
return_type = opts[:return_type] || '
|
195
|
+
return_type = opts[:return_type] || 'String'
|
196
196
|
|
197
197
|
auth_names = opts[:auth_names] || []
|
198
198
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
@@ -210,7 +210,7 @@ module Notifo
|
|
210
210
|
end
|
211
211
|
# Query user subscriptions.
|
212
212
|
# @param app_id The app where the user belongs to.
|
213
|
-
# @param id The user
|
213
|
+
# @param id The user ID.
|
214
214
|
# @param [Hash] opts the optional parameters
|
215
215
|
# @option opts [String] :query The optional query to search for items.
|
216
216
|
# @option opts [Integer] :take The number of items to return.
|
@@ -223,7 +223,7 @@ module Notifo
|
|
223
223
|
|
224
224
|
# Query user subscriptions.
|
225
225
|
# @param app_id The app where the user belongs to.
|
226
|
-
# @param id The user
|
226
|
+
# @param id The user ID.
|
227
227
|
# @param [Hash] opts the optional parameters
|
228
228
|
# @option opts [String] :query The optional query to search for items.
|
229
229
|
# @option opts [Integer] :take The number of items to return.
|
@@ -279,9 +279,10 @@ module Notifo
|
|
279
279
|
end
|
280
280
|
# Get a user.
|
281
281
|
# @param app_id The app where the user belongs to.
|
282
|
-
# @param id The user
|
282
|
+
# @param id The user ID.
|
283
283
|
# @param [Hash] opts the optional parameters
|
284
|
-
# @
|
284
|
+
# @option opts [BOOLEAN] :with_details Provide extra details, might be expensive. (default to false)
|
285
|
+
# @return [UserDto]
|
285
286
|
def users_get_user(app_id, id, opts = {})
|
286
287
|
data, _status_code, _headers = users_get_user_with_http_info(app_id, id, opts)
|
287
288
|
data
|
@@ -289,9 +290,10 @@ module Notifo
|
|
289
290
|
|
290
291
|
# Get a user.
|
291
292
|
# @param app_id The app where the user belongs to.
|
292
|
-
# @param id The user
|
293
|
+
# @param id The user ID.
|
293
294
|
# @param [Hash] opts the optional parameters
|
294
|
-
# @
|
295
|
+
# @option opts [BOOLEAN] :with_details Provide extra details, might be expensive.
|
296
|
+
# @return [Array<(UserDto, Integer, Hash)>] UserDto data, response status code and response headers
|
295
297
|
def users_get_user_with_http_info(app_id, id, opts = {})
|
296
298
|
if @api_client.config.debugging
|
297
299
|
@api_client.config.logger.debug 'Calling API: UsersApi.users_get_user ...'
|
@@ -309,6 +311,7 @@ module Notifo
|
|
309
311
|
|
310
312
|
# query parameters
|
311
313
|
query_params = opts[:query_params] || {}
|
314
|
+
query_params[:'withDetails'] = opts[:'with_details'] if !opts[:'with_details'].nil?
|
312
315
|
|
313
316
|
# header parameters
|
314
317
|
header_params = opts[:header_params] || {}
|
@@ -321,7 +324,7 @@ module Notifo
|
|
321
324
|
# http body (model)
|
322
325
|
post_body = opts[:body]
|
323
326
|
|
324
|
-
return_type = opts[:return_type] || '
|
327
|
+
return_type = opts[:return_type] || 'UserDto'
|
325
328
|
|
326
329
|
auth_names = opts[:auth_names] || []
|
327
330
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
@@ -343,6 +346,7 @@ module Notifo
|
|
343
346
|
# @option opts [String] :query The optional query to search for items.
|
344
347
|
# @option opts [Integer] :take The number of items to return.
|
345
348
|
# @option opts [Integer] :skip The number of items to skip.
|
349
|
+
# @option opts [BOOLEAN] :with_details Provide extra details, might be expensive. (default to false)
|
346
350
|
# @return [ListResponseDtoOfUserDto]
|
347
351
|
def users_get_users(app_id, opts = {})
|
348
352
|
data, _status_code, _headers = users_get_users_with_http_info(app_id, opts)
|
@@ -355,6 +359,7 @@ module Notifo
|
|
355
359
|
# @option opts [String] :query The optional query to search for items.
|
356
360
|
# @option opts [Integer] :take The number of items to return.
|
357
361
|
# @option opts [Integer] :skip The number of items to skip.
|
362
|
+
# @option opts [BOOLEAN] :with_details Provide extra details, might be expensive.
|
358
363
|
# @return [Array<(ListResponseDtoOfUserDto, Integer, Hash)>] ListResponseDtoOfUserDto data, response status code and response headers
|
359
364
|
def users_get_users_with_http_info(app_id, opts = {})
|
360
365
|
if @api_client.config.debugging
|
@@ -372,6 +377,7 @@ module Notifo
|
|
372
377
|
query_params[:'query'] = opts[:'query'] if !opts[:'query'].nil?
|
373
378
|
query_params[:'take'] = opts[:'take'] if !opts[:'take'].nil?
|
374
379
|
query_params[:'skip'] = opts[:'skip'] if !opts[:'skip'].nil?
|
380
|
+
query_params[:'withDetails'] = opts[:'with_details'] if !opts[:'with_details'].nil?
|
375
381
|
|
376
382
|
# header parameters
|
377
383
|
header_params = opts[:header_params] || {}
|
@@ -403,7 +409,7 @@ module Notifo
|
|
403
409
|
# Add an allowed topic.
|
404
410
|
# @param body The upsert request.
|
405
411
|
# @param app_id The app where the users belong to.
|
406
|
-
# @param id The user
|
412
|
+
# @param id The user ID.
|
407
413
|
# @param [Hash] opts the optional parameters
|
408
414
|
# @return [nil]
|
409
415
|
def users_post_allowed_topic(body, app_id, id, opts = {})
|
@@ -414,7 +420,7 @@ module Notifo
|
|
414
420
|
# Add an allowed topic.
|
415
421
|
# @param body The upsert request.
|
416
422
|
# @param app_id The app where the users belong to.
|
417
|
-
# @param id The user
|
423
|
+
# @param id The user ID.
|
418
424
|
# @param [Hash] opts the optional parameters
|
419
425
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
420
426
|
def users_post_allowed_topic_with_http_info(body, app_id, id, opts = {})
|
@@ -468,38 +474,38 @@ module Notifo
|
|
468
474
|
end
|
469
475
|
return data, status_code, headers
|
470
476
|
end
|
471
|
-
#
|
477
|
+
# Upserts or deletes multiple user subscriptions.
|
472
478
|
# @param body The subscription object.
|
473
479
|
# @param app_id The app where the user belongs to.
|
474
|
-
# @param id The user
|
480
|
+
# @param id The user ID.
|
475
481
|
# @param [Hash] opts the optional parameters
|
476
482
|
# @return [nil]
|
477
|
-
def
|
478
|
-
|
483
|
+
def users_post_subscriptions(body, app_id, id, opts = {})
|
484
|
+
users_post_subscriptions_with_http_info(body, app_id, id, opts)
|
479
485
|
nil
|
480
486
|
end
|
481
487
|
|
482
|
-
#
|
488
|
+
# Upserts or deletes multiple user subscriptions.
|
483
489
|
# @param body The subscription object.
|
484
490
|
# @param app_id The app where the user belongs to.
|
485
|
-
# @param id The user
|
491
|
+
# @param id The user ID.
|
486
492
|
# @param [Hash] opts the optional parameters
|
487
493
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
488
|
-
def
|
494
|
+
def users_post_subscriptions_with_http_info(body, app_id, id, opts = {})
|
489
495
|
if @api_client.config.debugging
|
490
|
-
@api_client.config.logger.debug 'Calling API: UsersApi.
|
496
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.users_post_subscriptions ...'
|
491
497
|
end
|
492
498
|
# verify the required parameter 'body' is set
|
493
499
|
if @api_client.config.client_side_validation && body.nil?
|
494
|
-
fail ArgumentError, "Missing the required parameter 'body' when calling UsersApi.
|
500
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling UsersApi.users_post_subscriptions"
|
495
501
|
end
|
496
502
|
# verify the required parameter 'app_id' is set
|
497
503
|
if @api_client.config.client_side_validation && app_id.nil?
|
498
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling UsersApi.
|
504
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling UsersApi.users_post_subscriptions"
|
499
505
|
end
|
500
506
|
# verify the required parameter 'id' is set
|
501
507
|
if @api_client.config.client_side_validation && id.nil?
|
502
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.
|
508
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.users_post_subscriptions"
|
503
509
|
end
|
504
510
|
# resource path
|
505
511
|
local_var_path = '/api/apps/{appId}/users/{id}/subscriptions'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'id' + '}', id.to_s)
|
@@ -532,7 +538,7 @@ module Notifo
|
|
532
538
|
:return_type => return_type)
|
533
539
|
|
534
540
|
if @api_client.config.debugging
|
535
|
-
@api_client.config.logger.debug "API called: UsersApi#
|
541
|
+
@api_client.config.logger.debug "API called: UsersApi#users_post_subscriptions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
536
542
|
end
|
537
543
|
return data, status_code, headers
|
538
544
|
end
|
data/lib/notifo/api_client.rb
CHANGED
data/lib/notifo/api_error.rb
CHANGED
data/lib/notifo/configuration.rb
CHANGED