zyphr 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +614 -0
- data/Rakefile +10 -0
- data/docs/AddTopicSubscribersRequest.md +20 -0
- data/docs/ApiError.md +20 -0
- data/docs/ApiErrorError.md +22 -0
- data/docs/ApiErrorMeta.md +18 -0
- data/docs/AuthEmailVerificationApi.md +248 -0
- data/docs/AuthLoginApi.md +84 -0
- data/docs/AuthLoginResponse.md +20 -0
- data/docs/AuthLoginResult.md +24 -0
- data/docs/AuthLoginResultMfaChallenge.md +20 -0
- data/docs/AuthMFAApi.md +546 -0
- data/docs/AuthMagicLinksApi.md +161 -0
- data/docs/AuthOAuthApi.md +597 -0
- data/docs/AuthPasswordResetApi.md +238 -0
- data/docs/AuthPhoneApi.md +384 -0
- data/docs/AuthRegistrationApi.md +84 -0
- data/docs/AuthResult.md +20 -0
- data/docs/AuthResultResponse.md +20 -0
- data/docs/AuthSession.md +28 -0
- data/docs/AuthSessionsApi.md +310 -0
- data/docs/AuthTokens.md +24 -0
- data/docs/AuthUser.md +42 -0
- data/docs/AuthUserProfileApi.md +226 -0
- data/docs/AuthUserResponse.md +20 -0
- data/docs/AuthUserResponseData.md +18 -0
- data/docs/AuthWebAuthnApi.md +621 -0
- data/docs/BulkRetryWebhookDeliveriesRequest.md +24 -0
- data/docs/Category.md +34 -0
- data/docs/CategoryListResponse.md +20 -0
- data/docs/CategoryResponse.md +20 -0
- data/docs/ConfirmEmailVerificationRequest.md +18 -0
- data/docs/ConfirmEmailVerificationResponse.md +20 -0
- data/docs/ConfirmEmailVerificationResponseData.md +20 -0
- data/docs/ConsentHistoryEntry.md +32 -0
- data/docs/ConsentHistoryResponse.md +20 -0
- data/docs/ConsentRecordResponse.md +20 -0
- data/docs/ConsentRecordResponseData.md +20 -0
- data/docs/ConsentStatus.md +24 -0
- data/docs/ConsentStatusResponse.md +20 -0
- data/docs/ConsentWithdrawResponse.md +20 -0
- data/docs/CreateCategoryRequest.md +26 -0
- data/docs/CreateSubscriberRequest.md +32 -0
- data/docs/CreateTemplateRequest.md +28 -0
- data/docs/CreateTopicRequest.md +22 -0
- data/docs/CreateWebhookRequest.md +36 -0
- data/docs/DeleteResult.md +20 -0
- data/docs/DeleteResultData.md +20 -0
- data/docs/Device.md +34 -0
- data/docs/DeviceListResponse.md +20 -0
- data/docs/DevicePushTopic.md +22 -0
- data/docs/DevicePushTopicListResponse.md +20 -0
- data/docs/DevicePushTopicListResponseMeta.md +20 -0
- data/docs/DeviceResponse.md +20 -0
- data/docs/DeviceStats.md +20 -0
- data/docs/DeviceStatsResponse.md +20 -0
- data/docs/DevicesApi.md +444 -0
- data/docs/EmailAddress.md +20 -0
- data/docs/EmailAttachment.md +26 -0
- data/docs/EmailEvent.md +32 -0
- data/docs/EmailEventsResponse.md +20 -0
- data/docs/EmailListResponse.md +20 -0
- data/docs/EmailMessage.md +42 -0
- data/docs/EmailResponse.md +20 -0
- data/docs/EmailTrackingClickLink.md +22 -0
- data/docs/EmailTrackingClicks.md +22 -0
- data/docs/EmailTrackingData.md +20 -0
- data/docs/EmailTrackingOpens.md +20 -0
- data/docs/EmailTrackingResponse.md +20 -0
- data/docs/EmailsApi.md +447 -0
- data/docs/EndUserDeleteResponse.md +20 -0
- data/docs/EndUserDeleteResponseData.md +20 -0
- data/docs/ForgotPasswordRequest.md +20 -0
- data/docs/InAppNotification.md +48 -0
- data/docs/InboxApi.md +694 -0
- data/docs/InboxListMeta.md +28 -0
- data/docs/InboxListResponse.md +20 -0
- data/docs/InboxNotificationResponse.md +20 -0
- data/docs/LoginRequest.md +22 -0
- data/docs/MagicLinkSendRequest.md +20 -0
- data/docs/MagicLinkVerifyRequest.md +18 -0
- data/docs/MagicLinkVerifyResponse.md +20 -0
- data/docs/MagicLinkVerifyResponseData.md +22 -0
- data/docs/MarkAllInboxReadRequest.md +22 -0
- data/docs/MarkAllReadData.md +18 -0
- data/docs/MarkAllReadResponse.md +20 -0
- data/docs/MarkInboxReadRequest.md +20 -0
- data/docs/MfaBackupCodesResponse.md +20 -0
- data/docs/MfaBackupCodesResponseData.md +18 -0
- data/docs/MfaDisableRequest.md +20 -0
- data/docs/MfaDisableResponse.md +20 -0
- data/docs/MfaDisableResponseData.md +18 -0
- data/docs/MfaEnrollRequest.md +18 -0
- data/docs/MfaEnrollmentResponse.md +20 -0
- data/docs/MfaEnrollmentResponseData.md +22 -0
- data/docs/MfaRegenerateBackupCodesRequest.md +20 -0
- data/docs/MfaStatusResponse.md +20 -0
- data/docs/MfaStatusResponseData.md +24 -0
- data/docs/MfaVerifyBackupRequest.md +20 -0
- data/docs/MfaVerifyBackupResponse.md +20 -0
- data/docs/MfaVerifyBackupResponseData.md +22 -0
- data/docs/MfaVerifyEnrollmentRequest.md +20 -0
- data/docs/MfaVerifyEnrollmentResponse.md +20 -0
- data/docs/MfaVerifyEnrollmentResponseData.md +18 -0
- data/docs/MfaVerifyRequest.md +20 -0
- data/docs/OAuthAuthorizationUrlResponse.md +20 -0
- data/docs/OAuthAuthorizationUrlResponseData.md +20 -0
- data/docs/OAuthCallbackRequest.md +22 -0
- data/docs/OAuthCallbackResponse.md +20 -0
- data/docs/OAuthCallbackResponseData.md +24 -0
- data/docs/OAuthConnection.md +30 -0
- data/docs/OAuthConnectionInfoResponse.md +20 -0
- data/docs/OAuthConnectionInfoResponseData.md +28 -0
- data/docs/OAuthConnectionsResponse.md +20 -0
- data/docs/OAuthConnectionsResponseData.md +18 -0
- data/docs/OAuthProvider.md +20 -0
- data/docs/OAuthProviderInfo.md +30 -0
- data/docs/OAuthProvidersResponse.md +20 -0
- data/docs/OAuthProvidersResponseData.md +18 -0
- data/docs/OAuthTokensRefreshResponse.md +20 -0
- data/docs/OAuthTokensRefreshResponseData.md +26 -0
- data/docs/OAuthTokensResponse.md +20 -0
- data/docs/OAuthTokensResponseData.md +28 -0
- data/docs/PaginationMeta.md +24 -0
- data/docs/PasswordRequirements.md +28 -0
- data/docs/PasswordRequirementsResponse.md +20 -0
- data/docs/PasswordRequirementsResponseData.md +18 -0
- data/docs/PhoneAuthAvailabilityResponse.md +20 -0
- data/docs/PhoneAuthAvailabilityResponseData.md +20 -0
- data/docs/PhoneLoginVerifyRequest.md +22 -0
- data/docs/PhoneOtpSendRequest.md +18 -0
- data/docs/PhoneOtpSentResponse.md +20 -0
- data/docs/PhoneOtpSentResponseData.md +20 -0
- data/docs/PhoneRegisterVerifyRequest.md +24 -0
- data/docs/PreferenceListResponse.md +20 -0
- data/docs/PushApi.md +674 -0
- data/docs/PushDetailResponse.md +20 -0
- data/docs/PushEvent.md +28 -0
- data/docs/PushListResponse.md +20 -0
- data/docs/PushMessage.md +36 -0
- data/docs/PushMessageDetail.md +62 -0
- data/docs/PushPayload.md +32 -0
- data/docs/PushStatsData.md +28 -0
- data/docs/PushStatsResponse.md +20 -0
- data/docs/PushTopicDevice.md +26 -0
- data/docs/PushTopicDeviceListResponse.md +20 -0
- data/docs/PushTopicSubscribeData.md +24 -0
- data/docs/PushTopicSubscribeResponse.md +20 -0
- data/docs/PushTopicUnsubscribeData.md +24 -0
- data/docs/PushTopicUnsubscribeResponse.md +20 -0
- data/docs/RefreshOAuthTokensRequest.md +18 -0
- data/docs/RefreshSessionRequest.md +20 -0
- data/docs/RefreshTokenResponse.md +20 -0
- data/docs/RefreshTokenResponseData.md +20 -0
- data/docs/RegisterDeviceRequest.md +34 -0
- data/docs/RegisterRequest.md +24 -0
- data/docs/RemoveTopicSubscribersRequest.md +18 -0
- data/docs/RenameWebAuthnCredentialRequest.md +18 -0
- data/docs/RenderTemplateRequest.md +18 -0
- data/docs/ReplayWebhookEventsRequest.md +22 -0
- data/docs/RequestMeta.md +18 -0
- data/docs/ResetPasswordRequest.md +20 -0
- data/docs/ResetPasswordResponse.md +20 -0
- data/docs/ResubscribeRequest.md +18 -0
- data/docs/ResubscribeResponse.md +20 -0
- data/docs/RevokeAllSessionsResponse.md +20 -0
- data/docs/RevokeAllSessionsResponseData.md +20 -0
- data/docs/RevokeSessionRequest.md +18 -0
- data/docs/SMSApi.md +654 -0
- data/docs/SendBatchEmailRequest.md +18 -0
- data/docs/SendBatchEmailResponse.md +20 -0
- data/docs/SendBatchEmailResult.md +26 -0
- data/docs/SendBatchEmailResultItem.md +22 -0
- data/docs/SendBatchInAppMeta.md +26 -0
- data/docs/SendBatchInAppRequest.md +18 -0
- data/docs/SendBatchInAppResponse.md +20 -0
- data/docs/SendBatchSmsData.md +24 -0
- data/docs/SendBatchSmsRequest.md +20 -0
- data/docs/SendBatchSmsResponse.md +20 -0
- data/docs/SendEmailRequest.md +50 -0
- data/docs/SendEmailResponse.md +20 -0
- data/docs/SendEmailResponseData.md +20 -0
- data/docs/SendEmailResponseMeta.md +20 -0
- data/docs/SendEmailVerificationRequest.md +18 -0
- data/docs/SendInAppMeta.md +18 -0
- data/docs/SendInAppRequest.md +40 -0
- data/docs/SendInAppResponse.md +20 -0
- data/docs/SendPushRequest.md +34 -0
- data/docs/SendPushResponse.md +20 -0
- data/docs/SendPushResponseData.md +24 -0
- data/docs/SendPushToTopicData.md +24 -0
- data/docs/SendPushToTopicRequest.md +36 -0
- data/docs/SendPushToTopicResponse.md +20 -0
- data/docs/SendSmsData.md +32 -0
- data/docs/SendSmsRequest.md +28 -0
- data/docs/SendSmsResponse.md +20 -0
- data/docs/SendTestSmsData.md +26 -0
- data/docs/SendTestSmsRequest.md +20 -0
- data/docs/SendTestSmsResponse.md +20 -0
- data/docs/SendWebhookTestEventRequest.md +20 -0
- data/docs/SessionListResponse.md +20 -0
- data/docs/SessionListResponseData.md +20 -0
- data/docs/SessionListResponseDataSessionInfo.md +22 -0
- data/docs/SetPreferencesRequest.md +18 -0
- data/docs/SetPreferencesRequestPreferencesInner.md +22 -0
- data/docs/SmsBatchResultMessage.md +26 -0
- data/docs/SmsBatchResultSummary.md +22 -0
- data/docs/SmsConfig.md +32 -0
- data/docs/SmsConfigDeleteResponse.md +20 -0
- data/docs/SmsConfigDeleteResponseData.md +18 -0
- data/docs/SmsConfigResponse.md +20 -0
- data/docs/SmsDetailResponse.md +20 -0
- data/docs/SmsListResponse.md +20 -0
- data/docs/SmsListResponseMeta.md +26 -0
- data/docs/SmsMessage.md +32 -0
- data/docs/SmsMessageDetail.md +52 -0
- data/docs/SubscribePushTopicRequest.md +18 -0
- data/docs/Subscriber.md +42 -0
- data/docs/SubscriberListResponse.md +20 -0
- data/docs/SubscriberPreference.md +30 -0
- data/docs/SubscriberResponse.md +20 -0
- data/docs/SubscribersApi.md +1450 -0
- data/docs/SuccessResult.md +20 -0
- data/docs/SuccessResultData.md +18 -0
- data/docs/Template.md +36 -0
- data/docs/TemplateListResponse.md +20 -0
- data/docs/TemplateRenderResponse.md +20 -0
- data/docs/TemplateRenderedContent.md +22 -0
- data/docs/TemplateResponse.md +20 -0
- data/docs/TemplatesApi.md +447 -0
- data/docs/TestWebhookTransformRequest.md +18 -0
- data/docs/Topic.md +30 -0
- data/docs/TopicDeleteResponse.md +20 -0
- data/docs/TopicDeleteResponseData.md +20 -0
- data/docs/TopicListResponse.md +20 -0
- data/docs/TopicResponse.md +20 -0
- data/docs/TopicStatsData.md +22 -0
- data/docs/TopicStatsDataTopicsBySubscriberCountInner.md +22 -0
- data/docs/TopicStatsResponse.md +20 -0
- data/docs/TopicSubscriber.md +22 -0
- data/docs/TopicSubscriberListResponse.md +20 -0
- data/docs/TopicSubscribersAddResponse.md +20 -0
- data/docs/TopicSubscribersAddResult.md +22 -0
- data/docs/TopicSubscribersRemoveResponse.md +20 -0
- data/docs/TopicSubscribersRemoveResult.md +22 -0
- data/docs/TopicsApi.md +670 -0
- data/docs/UnreadCountData.md +18 -0
- data/docs/UnreadCountResponse.md +20 -0
- data/docs/Unsubscribe.md +26 -0
- data/docs/UnsubscribeListResponse.md +20 -0
- data/docs/UnsubscribeRequest.md +20 -0
- data/docs/UnsubscribeResponse.md +20 -0
- data/docs/UpdateCategoryRequest.md +26 -0
- data/docs/UpdateEndUserRequest.md +22 -0
- data/docs/UpdateSubscriberRequest.md +32 -0
- data/docs/UpdateTemplateRequest.md +28 -0
- data/docs/UpdateTopicRequest.md +20 -0
- data/docs/UpdateWebhookRequest.md +36 -0
- data/docs/UpsertSmsConfigRequest.md +24 -0
- data/docs/UserDevicesDeleteResponse.md +20 -0
- data/docs/UserDevicesDeleteResponseData.md +20 -0
- data/docs/UtilityApi.md +76 -0
- data/docs/ValidateResetTokenRequest.md +18 -0
- data/docs/ValidateResetTokenResponse.md +20 -0
- data/docs/ValidateResetTokenResponseData.md +20 -0
- data/docs/VerifySmsConfigData.md +20 -0
- data/docs/VerifySmsConfigResponse.md +20 -0
- data/docs/WebAuthnChallengeOptions.md +20 -0
- data/docs/WebAuthnCredential.md +32 -0
- data/docs/WebAuthnCredentialListResponse.md +20 -0
- data/docs/WebAuthnCredentialListResponseData.md +18 -0
- data/docs/WebAuthnCredentialResponse.md +20 -0
- data/docs/WebAuthnStartAuthRequest.md +20 -0
- data/docs/WebAuthnStartAuthResponse.md +20 -0
- data/docs/WebAuthnStartRegistrationRequest.md +18 -0
- data/docs/WebAuthnStartRegistrationResponse.md +20 -0
- data/docs/WebAuthnStatusResponse.md +20 -0
- data/docs/WebAuthnStatusResponseData.md +20 -0
- data/docs/WebAuthnVerifyAuthRequest.md +22 -0
- data/docs/WebAuthnVerifyRegistrationRequest.md +22 -0
- data/docs/WebAuthnVerifyRegistrationResponse.md +20 -0
- data/docs/WebAuthnVerifyRegistrationResponseData.md +18 -0
- data/docs/Webhook.md +44 -0
- data/docs/WebhookBulkRetryResponse.md +20 -0
- data/docs/WebhookCircuitState.md +26 -0
- data/docs/WebhookCircuitStateResponse.md +20 -0
- data/docs/WebhookCreateResponse.md +20 -0
- data/docs/WebhookCreateResponseData.md +46 -0
- data/docs/WebhookDeleteResponse.md +20 -0
- data/docs/WebhookDeleteResponseData.md +20 -0
- data/docs/WebhookDelivery.md +48 -0
- data/docs/WebhookDeliveryDetail.md +56 -0
- data/docs/WebhookDeliveryListResponse.md +20 -0
- data/docs/WebhookDeliveryResponse.md +20 -0
- data/docs/WebhookDeliveryRetryResponse.md +20 -0
- data/docs/WebhookDeliveryRetryResponseData.md +22 -0
- data/docs/WebhookEventTypesResponse.md +20 -0
- data/docs/WebhookEventTypesResponseData.md +24 -0
- data/docs/WebhookIpsResponse.md +20 -0
- data/docs/WebhookIpsResponseData.md +22 -0
- data/docs/WebhookJobResponse.md +20 -0
- data/docs/WebhookListResponse.md +20 -0
- data/docs/WebhookMetricsResponse.md +20 -0
- data/docs/WebhookRegion.md +22 -0
- data/docs/WebhookRegionsResponse.md +20 -0
- data/docs/WebhookRegionsResponseData.md +20 -0
- data/docs/WebhookReplayResponse.md +20 -0
- data/docs/WebhookResponse.md +20 -0
- data/docs/WebhookSecretRotateResponse.md +20 -0
- data/docs/WebhookSecretRotateResponseData.md +20 -0
- data/docs/WebhookTestEventResponse.md +20 -0
- data/docs/WebhookTestEventResponseData.md +24 -0
- data/docs/WebhookTransformTestResponse.md +20 -0
- data/docs/WebhookUsageResponse.md +20 -0
- data/docs/WebhookVersion.md +32 -0
- data/docs/WebhookVersionsResponse.md +20 -0
- data/docs/WebhookVersionsResponseData.md +20 -0
- data/docs/WebhookWorkspaceMetricsResponse.md +20 -0
- data/docs/WebhooksApi.md +1688 -0
- data/docs/WithdrawSubscriberConsentRequest.md +18 -0
- data/git_push.sh +57 -0
- data/lib/zyphr/api/auth_email_verification_api.rb +218 -0
- data/lib/zyphr/api/auth_login_api.rb +90 -0
- data/lib/zyphr/api/auth_magic_links_api.rb +158 -0
- data/lib/zyphr/api/auth_mfa_api.rb +493 -0
- data/lib/zyphr/api/auth_o_auth_api.rb +550 -0
- data/lib/zyphr/api/auth_password_reset_api.rb +226 -0
- data/lib/zyphr/api/auth_phone_api.rb +351 -0
- data/lib/zyphr/api/auth_registration_api.rb +90 -0
- data/lib/zyphr/api/auth_sessions_api.rb +272 -0
- data/lib/zyphr/api/auth_user_profile_api.rb +204 -0
- data/lib/zyphr/api/auth_web_authn_api.rb +537 -0
- data/lib/zyphr/api/devices_api.rb +409 -0
- data/lib/zyphr/api/emails_api.rb +432 -0
- data/lib/zyphr/api/inbox_api.rb +650 -0
- data/lib/zyphr/api/push_api.rb +644 -0
- data/lib/zyphr/api/sms_api.rb +605 -0
- data/lib/zyphr/api/subscribers_api.rb +1340 -0
- data/lib/zyphr/api/templates_api.rb +427 -0
- data/lib/zyphr/api/topics_api.rb +630 -0
- data/lib/zyphr/api/utility_api.rb +79 -0
- data/lib/zyphr/api/webhooks_api.rb +1527 -0
- data/lib/zyphr/api_client.rb +437 -0
- data/lib/zyphr/api_error.rb +58 -0
- data/lib/zyphr/configuration.rb +438 -0
- data/lib/zyphr/models/add_topic_subscribers_request.rb +259 -0
- data/lib/zyphr/models/api_error.rb +246 -0
- data/lib/zyphr/models/api_error_error.rb +274 -0
- data/lib/zyphr/models/api_error_meta.rb +220 -0
- data/lib/zyphr/models/auth_login_response.rb +229 -0
- data/lib/zyphr/models/auth_login_result.rb +247 -0
- data/lib/zyphr/models/auth_login_result_mfa_challenge.rb +229 -0
- data/lib/zyphr/models/auth_result.rb +229 -0
- data/lib/zyphr/models/auth_result_response.rb +229 -0
- data/lib/zyphr/models/auth_session.rb +265 -0
- data/lib/zyphr/models/auth_tokens.rb +248 -0
- data/lib/zyphr/models/auth_user.rb +369 -0
- data/lib/zyphr/models/auth_user_response.rb +229 -0
- data/lib/zyphr/models/auth_user_response_data.rb +220 -0
- data/lib/zyphr/models/bulk_retry_webhook_deliveries_request.rb +287 -0
- data/lib/zyphr/models/category.rb +295 -0
- data/lib/zyphr/models/category_list_response.rb +231 -0
- data/lib/zyphr/models/category_response.rb +229 -0
- data/lib/zyphr/models/confirm_email_verification_request.rb +237 -0
- data/lib/zyphr/models/confirm_email_verification_response.rb +229 -0
- data/lib/zyphr/models/confirm_email_verification_response_data.rb +229 -0
- data/lib/zyphr/models/consent_history_entry.rb +287 -0
- data/lib/zyphr/models/consent_history_response.rb +231 -0
- data/lib/zyphr/models/consent_record_response.rb +229 -0
- data/lib/zyphr/models/consent_record_response_data.rb +229 -0
- data/lib/zyphr/models/consent_status.rb +249 -0
- data/lib/zyphr/models/consent_status_response.rb +229 -0
- data/lib/zyphr/models/consent_withdraw_response.rb +229 -0
- data/lib/zyphr/models/create_category_request.rb +309 -0
- data/lib/zyphr/models/create_subscriber_request.rb +303 -0
- data/lib/zyphr/models/create_template_request.rb +300 -0
- data/lib/zyphr/models/create_topic_request.rb +275 -0
- data/lib/zyphr/models/create_webhook_request.rb +350 -0
- data/lib/zyphr/models/delete_result.rb +229 -0
- data/lib/zyphr/models/delete_result_data.rb +229 -0
- data/lib/zyphr/models/device.rb +343 -0
- data/lib/zyphr/models/device_list_response.rb +231 -0
- data/lib/zyphr/models/device_push_topic.rb +238 -0
- data/lib/zyphr/models/device_push_topic_list_response.rb +231 -0
- data/lib/zyphr/models/device_push_topic_list_response_meta.rb +229 -0
- data/lib/zyphr/models/device_response.rb +229 -0
- data/lib/zyphr/models/device_stats.rb +231 -0
- data/lib/zyphr/models/device_stats_response.rb +229 -0
- data/lib/zyphr/models/email_address.rb +229 -0
- data/lib/zyphr/models/email_attachment.rb +328 -0
- data/lib/zyphr/models/email_event.rb +286 -0
- data/lib/zyphr/models/email_events_response.rb +231 -0
- data/lib/zyphr/models/email_list_response.rb +231 -0
- data/lib/zyphr/models/email_message.rb +369 -0
- data/lib/zyphr/models/email_response.rb +229 -0
- data/lib/zyphr/models/email_tracking_click_link.rb +238 -0
- data/lib/zyphr/models/email_tracking_clicks.rb +241 -0
- data/lib/zyphr/models/email_tracking_data.rb +229 -0
- data/lib/zyphr/models/email_tracking_opens.rb +230 -0
- data/lib/zyphr/models/email_tracking_response.rb +229 -0
- data/lib/zyphr/models/end_user_delete_response.rb +229 -0
- data/lib/zyphr/models/end_user_delete_response_data.rb +229 -0
- data/lib/zyphr/models/forgot_password_request.rb +246 -0
- data/lib/zyphr/models/in_app_notification.rb +400 -0
- data/lib/zyphr/models/inbox_list_meta.rb +266 -0
- data/lib/zyphr/models/inbox_list_response.rb +231 -0
- data/lib/zyphr/models/inbox_notification_response.rb +229 -0
- data/lib/zyphr/models/login_request.rb +275 -0
- data/lib/zyphr/models/magic_link_send_request.rb +246 -0
- data/lib/zyphr/models/magic_link_verify_request.rb +237 -0
- data/lib/zyphr/models/magic_link_verify_response.rb +229 -0
- data/lib/zyphr/models/magic_link_verify_response_data.rb +245 -0
- data/lib/zyphr/models/mark_all_inbox_read_request.rb +238 -0
- data/lib/zyphr/models/mark_all_read_data.rb +220 -0
- data/lib/zyphr/models/mark_all_read_response.rb +229 -0
- data/lib/zyphr/models/mark_inbox_read_request.rb +229 -0
- data/lib/zyphr/models/mfa_backup_codes_response.rb +229 -0
- data/lib/zyphr/models/mfa_backup_codes_response_data.rb +223 -0
- data/lib/zyphr/models/mfa_disable_request.rb +263 -0
- data/lib/zyphr/models/mfa_disable_response.rb +229 -0
- data/lib/zyphr/models/mfa_disable_response_data.rb +220 -0
- data/lib/zyphr/models/mfa_enroll_request.rb +237 -0
- data/lib/zyphr/models/mfa_enrollment_response.rb +229 -0
- data/lib/zyphr/models/mfa_enrollment_response_data.rb +243 -0
- data/lib/zyphr/models/mfa_regenerate_backup_codes_request.rb +281 -0
- data/lib/zyphr/models/mfa_status_response.rb +229 -0
- data/lib/zyphr/models/mfa_status_response_data.rb +282 -0
- data/lib/zyphr/models/mfa_verify_backup_request.rb +263 -0
- data/lib/zyphr/models/mfa_verify_backup_response.rb +229 -0
- data/lib/zyphr/models/mfa_verify_backup_response_data.rb +239 -0
- data/lib/zyphr/models/mfa_verify_enrollment_request.rb +281 -0
- data/lib/zyphr/models/mfa_verify_enrollment_response.rb +229 -0
- data/lib/zyphr/models/mfa_verify_enrollment_response_data.rb +220 -0
- data/lib/zyphr/models/mfa_verify_request.rb +281 -0
- data/lib/zyphr/models/o_auth_authorization_url_response.rb +229 -0
- data/lib/zyphr/models/o_auth_authorization_url_response_data.rb +229 -0
- data/lib/zyphr/models/o_auth_callback_request.rb +274 -0
- data/lib/zyphr/models/o_auth_callback_response.rb +229 -0
- data/lib/zyphr/models/o_auth_callback_response_data.rb +254 -0
- data/lib/zyphr/models/o_auth_connection.rb +276 -0
- data/lib/zyphr/models/o_auth_connection_info_response.rb +229 -0
- data/lib/zyphr/models/o_auth_connection_info_response_data.rb +267 -0
- data/lib/zyphr/models/o_auth_connections_response.rb +229 -0
- data/lib/zyphr/models/o_auth_connections_response_data.rb +222 -0
- data/lib/zyphr/models/o_auth_provider.rb +231 -0
- data/lib/zyphr/models/o_auth_provider_info.rb +276 -0
- data/lib/zyphr/models/o_auth_providers_response.rb +229 -0
- data/lib/zyphr/models/o_auth_providers_response_data.rb +222 -0
- data/lib/zyphr/models/o_auth_tokens_refresh_response.rb +229 -0
- data/lib/zyphr/models/o_auth_tokens_refresh_response_data.rb +258 -0
- data/lib/zyphr/models/o_auth_tokens_response.rb +229 -0
- data/lib/zyphr/models/o_auth_tokens_response_data.rb +267 -0
- data/lib/zyphr/models/pagination_meta.rb +247 -0
- data/lib/zyphr/models/password_requirements.rb +265 -0
- data/lib/zyphr/models/password_requirements_response.rb +229 -0
- data/lib/zyphr/models/password_requirements_response_data.rb +220 -0
- data/lib/zyphr/models/phone_auth_availability_response.rb +229 -0
- data/lib/zyphr/models/phone_auth_availability_response_data.rb +229 -0
- data/lib/zyphr/models/phone_login_verify_request.rb +274 -0
- data/lib/zyphr/models/phone_otp_send_request.rb +237 -0
- data/lib/zyphr/models/phone_otp_sent_response.rb +229 -0
- data/lib/zyphr/models/phone_otp_sent_response_data.rb +229 -0
- data/lib/zyphr/models/phone_register_verify_request.rb +283 -0
- data/lib/zyphr/models/preference_list_response.rb +231 -0
- data/lib/zyphr/models/push_detail_response.rb +229 -0
- data/lib/zyphr/models/push_event.rb +267 -0
- data/lib/zyphr/models/push_list_response.rb +231 -0
- data/lib/zyphr/models/push_message.rb +350 -0
- data/lib/zyphr/models/push_message_detail.rb +488 -0
- data/lib/zyphr/models/push_payload.rb +319 -0
- data/lib/zyphr/models/push_stats_data.rb +265 -0
- data/lib/zyphr/models/push_stats_response.rb +229 -0
- data/lib/zyphr/models/push_topic_device.rb +291 -0
- data/lib/zyphr/models/push_topic_device_list_response.rb +231 -0
- data/lib/zyphr/models/push_topic_subscribe_data.rb +249 -0
- data/lib/zyphr/models/push_topic_subscribe_response.rb +229 -0
- data/lib/zyphr/models/push_topic_unsubscribe_data.rb +249 -0
- data/lib/zyphr/models/push_topic_unsubscribe_response.rb +229 -0
- data/lib/zyphr/models/refresh_o_auth_tokens_request.rb +237 -0
- data/lib/zyphr/models/refresh_session_request.rb +248 -0
- data/lib/zyphr/models/refresh_token_response.rb +229 -0
- data/lib/zyphr/models/refresh_token_response_data.rb +229 -0
- data/lib/zyphr/models/register_device_request.rb +352 -0
- data/lib/zyphr/models/register_request.rb +283 -0
- data/lib/zyphr/models/remove_topic_subscribers_request.rb +249 -0
- data/lib/zyphr/models/rename_web_authn_credential_request.rb +246 -0
- data/lib/zyphr/models/render_template_request.rb +239 -0
- data/lib/zyphr/models/replay_webhook_events_request.rb +277 -0
- data/lib/zyphr/models/request_meta.rb +220 -0
- data/lib/zyphr/models/reset_password_request.rb +263 -0
- data/lib/zyphr/models/reset_password_response.rb +229 -0
- data/lib/zyphr/models/resubscribe_request.rb +254 -0
- data/lib/zyphr/models/resubscribe_response.rb +229 -0
- data/lib/zyphr/models/revoke_all_sessions_response.rb +229 -0
- data/lib/zyphr/models/revoke_all_sessions_response_data.rb +229 -0
- data/lib/zyphr/models/revoke_session_request.rb +237 -0
- data/lib/zyphr/models/send_batch_email_request.rb +248 -0
- data/lib/zyphr/models/send_batch_email_response.rb +229 -0
- data/lib/zyphr/models/send_batch_email_result.rb +258 -0
- data/lib/zyphr/models/send_batch_email_result_item.rb +238 -0
- data/lib/zyphr/models/send_batch_in_app_meta.rb +257 -0
- data/lib/zyphr/models/send_batch_in_app_request.rb +248 -0
- data/lib/zyphr/models/send_batch_in_app_response.rb +231 -0
- data/lib/zyphr/models/send_batch_sms_data.rb +251 -0
- data/lib/zyphr/models/send_batch_sms_request.rb +284 -0
- data/lib/zyphr/models/send_batch_sms_response.rb +229 -0
- data/lib/zyphr/models/send_email_request.rb +424 -0
- data/lib/zyphr/models/send_email_response.rb +229 -0
- data/lib/zyphr/models/send_email_response_data.rb +263 -0
- data/lib/zyphr/models/send_email_response_meta.rb +229 -0
- data/lib/zyphr/models/send_email_verification_request.rb +221 -0
- data/lib/zyphr/models/send_in_app_meta.rb +220 -0
- data/lib/zyphr/models/send_in_app_request.rb +393 -0
- data/lib/zyphr/models/send_in_app_response.rb +229 -0
- data/lib/zyphr/models/send_push_request.rb +353 -0
- data/lib/zyphr/models/send_push_response.rb +229 -0
- data/lib/zyphr/models/send_push_response_data.rb +247 -0
- data/lib/zyphr/models/send_push_to_topic_data.rb +247 -0
- data/lib/zyphr/models/send_push_to_topic_request.rb +309 -0
- data/lib/zyphr/models/send_push_to_topic_response.rb +229 -0
- data/lib/zyphr/models/send_sms_data.rb +284 -0
- data/lib/zyphr/models/send_sms_request.rb +312 -0
- data/lib/zyphr/models/send_sms_response.rb +229 -0
- data/lib/zyphr/models/send_test_sms_data.rb +256 -0
- data/lib/zyphr/models/send_test_sms_request.rb +248 -0
- data/lib/zyphr/models/send_test_sms_response.rb +229 -0
- data/lib/zyphr/models/send_webhook_test_event_request.rb +231 -0
- data/lib/zyphr/models/session_list_response.rb +229 -0
- data/lib/zyphr/models/session_list_response_data.rb +231 -0
- data/lib/zyphr/models/session_list_response_data_session_info.rb +239 -0
- data/lib/zyphr/models/set_preferences_request.rb +239 -0
- data/lib/zyphr/models/set_preferences_request_preferences_inner.rb +238 -0
- data/lib/zyphr/models/sms_batch_result_message.rb +256 -0
- data/lib/zyphr/models/sms_batch_result_summary.rb +238 -0
- data/lib/zyphr/models/sms_config.rb +285 -0
- data/lib/zyphr/models/sms_config_delete_response.rb +229 -0
- data/lib/zyphr/models/sms_config_delete_response_data.rb +220 -0
- data/lib/zyphr/models/sms_config_response.rb +229 -0
- data/lib/zyphr/models/sms_detail_response.rb +229 -0
- data/lib/zyphr/models/sms_list_response.rb +231 -0
- data/lib/zyphr/models/sms_list_response_meta.rb +256 -0
- data/lib/zyphr/models/sms_message.rb +319 -0
- data/lib/zyphr/models/sms_message_detail.rb +426 -0
- data/lib/zyphr/models/subscribe_push_topic_request.rb +257 -0
- data/lib/zyphr/models/subscriber.rb +367 -0
- data/lib/zyphr/models/subscriber_list_response.rb +231 -0
- data/lib/zyphr/models/subscriber_preference.rb +308 -0
- data/lib/zyphr/models/subscriber_response.rb +229 -0
- data/lib/zyphr/models/success_result.rb +229 -0
- data/lib/zyphr/models/success_result_data.rb +220 -0
- data/lib/zyphr/models/template.rb +306 -0
- data/lib/zyphr/models/template_list_response.rb +231 -0
- data/lib/zyphr/models/template_render_response.rb +229 -0
- data/lib/zyphr/models/template_rendered_content.rb +241 -0
- data/lib/zyphr/models/template_response.rb +229 -0
- data/lib/zyphr/models/test_webhook_transform_request.rb +238 -0
- data/lib/zyphr/models/topic.rb +275 -0
- data/lib/zyphr/models/topic_delete_response.rb +229 -0
- data/lib/zyphr/models/topic_delete_response_data.rb +229 -0
- data/lib/zyphr/models/topic_list_response.rb +231 -0
- data/lib/zyphr/models/topic_response.rb +229 -0
- data/lib/zyphr/models/topic_stats_data.rb +240 -0
- data/lib/zyphr/models/topic_stats_data_topics_by_subscriber_count_inner.rb +238 -0
- data/lib/zyphr/models/topic_stats_response.rb +229 -0
- data/lib/zyphr/models/topic_subscriber.rb +238 -0
- data/lib/zyphr/models/topic_subscriber_list_response.rb +231 -0
- data/lib/zyphr/models/topic_subscribers_add_response.rb +229 -0
- data/lib/zyphr/models/topic_subscribers_add_result.rb +242 -0
- data/lib/zyphr/models/topic_subscribers_remove_response.rb +229 -0
- data/lib/zyphr/models/topic_subscribers_remove_result.rb +242 -0
- data/lib/zyphr/models/unread_count_data.rb +220 -0
- data/lib/zyphr/models/unread_count_response.rb +229 -0
- data/lib/zyphr/models/unsubscribe.rb +292 -0
- data/lib/zyphr/models/unsubscribe_list_response.rb +231 -0
- data/lib/zyphr/models/unsubscribe_request.rb +263 -0
- data/lib/zyphr/models/unsubscribe_response.rb +229 -0
- data/lib/zyphr/models/update_category_request.rb +258 -0
- data/lib/zyphr/models/update_end_user_request.rb +238 -0
- data/lib/zyphr/models/update_subscriber_request.rb +323 -0
- data/lib/zyphr/models/update_template_request.rb +288 -0
- data/lib/zyphr/models/update_topic_request.rb +230 -0
- data/lib/zyphr/models/update_webhook_request.rb +307 -0
- data/lib/zyphr/models/upsert_sms_config_request.rb +302 -0
- data/lib/zyphr/models/user_devices_delete_response.rb +229 -0
- data/lib/zyphr/models/user_devices_delete_response_data.rb +229 -0
- data/lib/zyphr/models/validate_reset_token_request.rb +237 -0
- data/lib/zyphr/models/validate_reset_token_response.rb +229 -0
- data/lib/zyphr/models/validate_reset_token_response_data.rb +229 -0
- data/lib/zyphr/models/verify_sms_config_data.rb +230 -0
- data/lib/zyphr/models/verify_sms_config_response.rb +229 -0
- data/lib/zyphr/models/web_authn_challenge_options.rb +229 -0
- data/lib/zyphr/models/web_authn_credential.rb +286 -0
- data/lib/zyphr/models/web_authn_credential_list_response.rb +229 -0
- data/lib/zyphr/models/web_authn_credential_list_response_data.rb +222 -0
- data/lib/zyphr/models/web_authn_credential_response.rb +229 -0
- data/lib/zyphr/models/web_authn_start_auth_request.rb +231 -0
- data/lib/zyphr/models/web_authn_start_auth_response.rb +229 -0
- data/lib/zyphr/models/web_authn_start_registration_request.rb +220 -0
- data/lib/zyphr/models/web_authn_start_registration_response.rb +229 -0
- data/lib/zyphr/models/web_authn_status_response.rb +229 -0
- data/lib/zyphr/models/web_authn_status_response_data.rb +229 -0
- data/lib/zyphr/models/web_authn_verify_auth_request.rb +275 -0
- data/lib/zyphr/models/web_authn_verify_registration_request.rb +273 -0
- data/lib/zyphr/models/web_authn_verify_registration_response.rb +229 -0
- data/lib/zyphr/models/web_authn_verify_registration_response_data.rb +220 -0
- data/lib/zyphr/models/webhook.rb +381 -0
- data/lib/zyphr/models/webhook_bulk_retry_response.rb +230 -0
- data/lib/zyphr/models/webhook_circuit_state.rb +292 -0
- data/lib/zyphr/models/webhook_circuit_state_response.rb +229 -0
- data/lib/zyphr/models/webhook_create_response.rb +229 -0
- data/lib/zyphr/models/webhook_create_response_data.rb +398 -0
- data/lib/zyphr/models/webhook_delete_response.rb +229 -0
- data/lib/zyphr/models/webhook_delete_response_data.rb +229 -0
- data/lib/zyphr/models/webhook_delivery.rb +397 -0
- data/lib/zyphr/models/webhook_delivery_detail.rb +444 -0
- data/lib/zyphr/models/webhook_delivery_list_response.rb +231 -0
- data/lib/zyphr/models/webhook_delivery_response.rb +229 -0
- data/lib/zyphr/models/webhook_delivery_retry_response.rb +229 -0
- data/lib/zyphr/models/webhook_delivery_retry_response_data.rb +238 -0
- data/lib/zyphr/models/webhook_event_types_response.rb +229 -0
- data/lib/zyphr/models/webhook_event_types_response_data.rb +253 -0
- data/lib/zyphr/models/webhook_ips_response.rb +229 -0
- data/lib/zyphr/models/webhook_ips_response_data.rb +243 -0
- data/lib/zyphr/models/webhook_job_response.rb +230 -0
- data/lib/zyphr/models/webhook_list_response.rb +231 -0
- data/lib/zyphr/models/webhook_metrics_response.rb +230 -0
- data/lib/zyphr/models/webhook_region.rb +240 -0
- data/lib/zyphr/models/webhook_regions_response.rb +229 -0
- data/lib/zyphr/models/webhook_regions_response_data.rb +232 -0
- data/lib/zyphr/models/webhook_replay_response.rb +230 -0
- data/lib/zyphr/models/webhook_response.rb +229 -0
- data/lib/zyphr/models/webhook_secret_rotate_response.rb +229 -0
- data/lib/zyphr/models/webhook_secret_rotate_response_data.rb +230 -0
- data/lib/zyphr/models/webhook_test_event_response.rb +229 -0
- data/lib/zyphr/models/webhook_test_event_response_data.rb +247 -0
- data/lib/zyphr/models/webhook_transform_test_response.rb +230 -0
- data/lib/zyphr/models/webhook_usage_response.rb +230 -0
- data/lib/zyphr/models/webhook_version.rb +288 -0
- data/lib/zyphr/models/webhook_versions_response.rb +229 -0
- data/lib/zyphr/models/webhook_versions_response_data.rb +231 -0
- data/lib/zyphr/models/webhook_workspace_metrics_response.rb +230 -0
- data/lib/zyphr/models/withdraw_subscriber_consent_request.rb +220 -0
- data/lib/zyphr/version.rb +15 -0
- data/lib/zyphr.rb +357 -0
- data/spec/api/auth_email_verification_api_spec.rb +71 -0
- data/spec/api/auth_login_api_spec.rb +47 -0
- data/spec/api/auth_magic_links_api_spec.rb +59 -0
- data/spec/api/auth_mfa_api_spec.rb +119 -0
- data/spec/api/auth_o_auth_api_spec.rb +133 -0
- data/spec/api/auth_password_reset_api_spec.rb +71 -0
- data/spec/api/auth_phone_api_spec.rb +94 -0
- data/spec/api/auth_registration_api_spec.rb +47 -0
- data/spec/api/auth_sessions_api_spec.rb +81 -0
- data/spec/api/auth_user_profile_api_spec.rb +69 -0
- data/spec/api/auth_web_authn_api_spec.rb +130 -0
- data/spec/api/devices_api_spec.rb +109 -0
- data/spec/api/emails_api_spec.rb +110 -0
- data/spec/api/inbox_api_spec.rb +157 -0
- data/spec/api/push_api_spec.rb +151 -0
- data/spec/api/sms_api_spec.rb +143 -0
- data/spec/api/subscribers_api_spec.rb +272 -0
- data/spec/api/templates_api_spec.rb +110 -0
- data/spec/api/topics_api_spec.rb +149 -0
- data/spec/api/utility_api_spec.rb +46 -0
- data/spec/api/webhooks_api_spec.rb +321 -0
- data/spec/models/add_topic_subscribers_request_spec.rb +42 -0
- data/spec/models/api_error_error_spec.rb +48 -0
- data/spec/models/api_error_meta_spec.rb +36 -0
- data/spec/models/api_error_spec.rb +42 -0
- data/spec/models/auth_login_response_spec.rb +42 -0
- data/spec/models/auth_login_result_mfa_challenge_spec.rb +42 -0
- data/spec/models/auth_login_result_spec.rb +54 -0
- data/spec/models/auth_result_response_spec.rb +42 -0
- data/spec/models/auth_result_spec.rb +42 -0
- data/spec/models/auth_session_spec.rb +66 -0
- data/spec/models/auth_tokens_spec.rb +54 -0
- data/spec/models/auth_user_response_data_spec.rb +36 -0
- data/spec/models/auth_user_response_spec.rb +42 -0
- data/spec/models/auth_user_spec.rb +112 -0
- data/spec/models/bulk_retry_webhook_deliveries_request_spec.rb +58 -0
- data/spec/models/category_list_response_spec.rb +42 -0
- data/spec/models/category_response_spec.rb +42 -0
- data/spec/models/category_spec.rb +84 -0
- data/spec/models/confirm_email_verification_request_spec.rb +36 -0
- data/spec/models/confirm_email_verification_response_data_spec.rb +42 -0
- data/spec/models/confirm_email_verification_response_spec.rb +42 -0
- data/spec/models/consent_history_entry_spec.rb +78 -0
- data/spec/models/consent_history_response_spec.rb +42 -0
- data/spec/models/consent_record_response_data_spec.rb +42 -0
- data/spec/models/consent_record_response_spec.rb +42 -0
- data/spec/models/consent_status_response_spec.rb +42 -0
- data/spec/models/consent_status_spec.rb +54 -0
- data/spec/models/consent_withdraw_response_spec.rb +42 -0
- data/spec/models/create_category_request_spec.rb +60 -0
- data/spec/models/create_subscriber_request_spec.rb +78 -0
- data/spec/models/create_template_request_spec.rb +66 -0
- data/spec/models/create_topic_request_spec.rb +48 -0
- data/spec/models/create_webhook_request_spec.rb +90 -0
- data/spec/models/delete_result_data_spec.rb +42 -0
- data/spec/models/delete_result_spec.rb +42 -0
- data/spec/models/device_list_response_spec.rb +42 -0
- data/spec/models/device_push_topic_list_response_meta_spec.rb +42 -0
- data/spec/models/device_push_topic_list_response_spec.rb +42 -0
- data/spec/models/device_push_topic_spec.rb +48 -0
- data/spec/models/device_response_spec.rb +42 -0
- data/spec/models/device_spec.rb +92 -0
- data/spec/models/device_stats_response_spec.rb +42 -0
- data/spec/models/device_stats_spec.rb +42 -0
- data/spec/models/email_address_spec.rb +42 -0
- data/spec/models/email_attachment_spec.rb +64 -0
- data/spec/models/email_event_spec.rb +78 -0
- data/spec/models/email_events_response_spec.rb +42 -0
- data/spec/models/email_list_response_spec.rb +42 -0
- data/spec/models/email_message_spec.rb +112 -0
- data/spec/models/email_response_spec.rb +42 -0
- data/spec/models/email_tracking_click_link_spec.rb +48 -0
- data/spec/models/email_tracking_clicks_spec.rb +48 -0
- data/spec/models/email_tracking_data_spec.rb +42 -0
- data/spec/models/email_tracking_opens_spec.rb +42 -0
- data/spec/models/email_tracking_response_spec.rb +42 -0
- data/spec/models/end_user_delete_response_data_spec.rb +42 -0
- data/spec/models/end_user_delete_response_spec.rb +42 -0
- data/spec/models/forgot_password_request_spec.rb +42 -0
- data/spec/models/in_app_notification_spec.rb +130 -0
- data/spec/models/inbox_list_meta_spec.rb +66 -0
- data/spec/models/inbox_list_response_spec.rb +42 -0
- data/spec/models/inbox_notification_response_spec.rb +42 -0
- data/spec/models/login_request_spec.rb +48 -0
- data/spec/models/magic_link_send_request_spec.rb +42 -0
- data/spec/models/magic_link_verify_request_spec.rb +36 -0
- data/spec/models/magic_link_verify_response_data_spec.rb +48 -0
- data/spec/models/magic_link_verify_response_spec.rb +42 -0
- data/spec/models/mark_all_inbox_read_request_spec.rb +48 -0
- data/spec/models/mark_all_read_data_spec.rb +36 -0
- data/spec/models/mark_all_read_response_spec.rb +42 -0
- data/spec/models/mark_inbox_read_request_spec.rb +42 -0
- data/spec/models/mfa_backup_codes_response_data_spec.rb +36 -0
- data/spec/models/mfa_backup_codes_response_spec.rb +42 -0
- data/spec/models/mfa_disable_request_spec.rb +42 -0
- data/spec/models/mfa_disable_response_data_spec.rb +36 -0
- data/spec/models/mfa_disable_response_spec.rb +42 -0
- data/spec/models/mfa_enroll_request_spec.rb +36 -0
- data/spec/models/mfa_enrollment_response_data_spec.rb +48 -0
- data/spec/models/mfa_enrollment_response_spec.rb +42 -0
- data/spec/models/mfa_regenerate_backup_codes_request_spec.rb +42 -0
- data/spec/models/mfa_status_response_data_spec.rb +58 -0
- data/spec/models/mfa_status_response_spec.rb +42 -0
- data/spec/models/mfa_verify_backup_request_spec.rb +42 -0
- data/spec/models/mfa_verify_backup_response_data_spec.rb +48 -0
- data/spec/models/mfa_verify_backup_response_spec.rb +42 -0
- data/spec/models/mfa_verify_enrollment_request_spec.rb +42 -0
- data/spec/models/mfa_verify_enrollment_response_data_spec.rb +36 -0
- data/spec/models/mfa_verify_enrollment_response_spec.rb +42 -0
- data/spec/models/mfa_verify_request_spec.rb +42 -0
- data/spec/models/o_auth_authorization_url_response_data_spec.rb +42 -0
- data/spec/models/o_auth_authorization_url_response_spec.rb +42 -0
- data/spec/models/o_auth_callback_request_spec.rb +48 -0
- data/spec/models/o_auth_callback_response_data_spec.rb +54 -0
- data/spec/models/o_auth_callback_response_spec.rb +42 -0
- data/spec/models/o_auth_connection_info_response_data_spec.rb +66 -0
- data/spec/models/o_auth_connection_info_response_spec.rb +42 -0
- data/spec/models/o_auth_connection_spec.rb +72 -0
- data/spec/models/o_auth_connections_response_data_spec.rb +36 -0
- data/spec/models/o_auth_connections_response_spec.rb +42 -0
- data/spec/models/o_auth_provider_info_spec.rb +72 -0
- data/spec/models/o_auth_provider_spec.rb +42 -0
- data/spec/models/o_auth_providers_response_data_spec.rb +36 -0
- data/spec/models/o_auth_providers_response_spec.rb +42 -0
- data/spec/models/o_auth_tokens_refresh_response_data_spec.rb +60 -0
- data/spec/models/o_auth_tokens_refresh_response_spec.rb +42 -0
- data/spec/models/o_auth_tokens_response_data_spec.rb +66 -0
- data/spec/models/o_auth_tokens_response_spec.rb +42 -0
- data/spec/models/pagination_meta_spec.rb +54 -0
- data/spec/models/password_requirements_response_data_spec.rb +36 -0
- data/spec/models/password_requirements_response_spec.rb +42 -0
- data/spec/models/password_requirements_spec.rb +66 -0
- data/spec/models/phone_auth_availability_response_data_spec.rb +42 -0
- data/spec/models/phone_auth_availability_response_spec.rb +42 -0
- data/spec/models/phone_login_verify_request_spec.rb +48 -0
- data/spec/models/phone_otp_send_request_spec.rb +36 -0
- data/spec/models/phone_otp_sent_response_data_spec.rb +42 -0
- data/spec/models/phone_otp_sent_response_spec.rb +42 -0
- data/spec/models/phone_register_verify_request_spec.rb +54 -0
- data/spec/models/preference_list_response_spec.rb +42 -0
- data/spec/models/push_detail_response_spec.rb +42 -0
- data/spec/models/push_event_spec.rb +66 -0
- data/spec/models/push_list_response_spec.rb +42 -0
- data/spec/models/push_message_detail_spec.rb +176 -0
- data/spec/models/push_message_spec.rb +98 -0
- data/spec/models/push_payload_spec.rb +78 -0
- data/spec/models/push_stats_data_spec.rb +66 -0
- data/spec/models/push_stats_response_spec.rb +42 -0
- data/spec/models/push_topic_device_list_response_spec.rb +42 -0
- data/spec/models/push_topic_device_spec.rb +64 -0
- data/spec/models/push_topic_subscribe_data_spec.rb +54 -0
- data/spec/models/push_topic_subscribe_response_spec.rb +42 -0
- data/spec/models/push_topic_unsubscribe_data_spec.rb +54 -0
- data/spec/models/push_topic_unsubscribe_response_spec.rb +42 -0
- data/spec/models/refresh_o_auth_tokens_request_spec.rb +36 -0
- data/spec/models/refresh_session_request_spec.rb +42 -0
- data/spec/models/refresh_token_response_data_spec.rb +42 -0
- data/spec/models/refresh_token_response_spec.rb +42 -0
- data/spec/models/register_device_request_spec.rb +88 -0
- data/spec/models/register_request_spec.rb +54 -0
- data/spec/models/remove_topic_subscribers_request_spec.rb +36 -0
- data/spec/models/rename_web_authn_credential_request_spec.rb +36 -0
- data/spec/models/render_template_request_spec.rb +36 -0
- data/spec/models/replay_webhook_events_request_spec.rb +48 -0
- data/spec/models/request_meta_spec.rb +36 -0
- data/spec/models/reset_password_request_spec.rb +42 -0
- data/spec/models/reset_password_response_spec.rb +42 -0
- data/spec/models/resubscribe_request_spec.rb +40 -0
- data/spec/models/resubscribe_response_spec.rb +42 -0
- data/spec/models/revoke_all_sessions_response_data_spec.rb +42 -0
- data/spec/models/revoke_all_sessions_response_spec.rb +42 -0
- data/spec/models/revoke_session_request_spec.rb +36 -0
- data/spec/models/send_batch_email_request_spec.rb +36 -0
- data/spec/models/send_batch_email_response_spec.rb +42 -0
- data/spec/models/send_batch_email_result_item_spec.rb +48 -0
- data/spec/models/send_batch_email_result_spec.rb +60 -0
- data/spec/models/send_batch_in_app_meta_spec.rb +60 -0
- data/spec/models/send_batch_in_app_request_spec.rb +36 -0
- data/spec/models/send_batch_in_app_response_spec.rb +42 -0
- data/spec/models/send_batch_sms_data_spec.rb +54 -0
- data/spec/models/send_batch_sms_request_spec.rb +42 -0
- data/spec/models/send_batch_sms_response_spec.rb +42 -0
- data/spec/models/send_email_request_spec.rb +132 -0
- data/spec/models/send_email_response_data_spec.rb +46 -0
- data/spec/models/send_email_response_meta_spec.rb +42 -0
- data/spec/models/send_email_response_spec.rb +42 -0
- data/spec/models/send_email_verification_request_spec.rb +36 -0
- data/spec/models/send_in_app_meta_spec.rb +36 -0
- data/spec/models/send_in_app_request_spec.rb +106 -0
- data/spec/models/send_in_app_response_spec.rb +42 -0
- data/spec/models/send_push_request_spec.rb +88 -0
- data/spec/models/send_push_response_data_spec.rb +54 -0
- data/spec/models/send_push_response_spec.rb +42 -0
- data/spec/models/send_push_to_topic_data_spec.rb +54 -0
- data/spec/models/send_push_to_topic_request_spec.rb +90 -0
- data/spec/models/send_push_to_topic_response_spec.rb +42 -0
- data/spec/models/send_sms_data_spec.rb +78 -0
- data/spec/models/send_sms_request_spec.rb +66 -0
- data/spec/models/send_sms_response_spec.rb +42 -0
- data/spec/models/send_test_sms_data_spec.rb +60 -0
- data/spec/models/send_test_sms_request_spec.rb +42 -0
- data/spec/models/send_test_sms_response_spec.rb +42 -0
- data/spec/models/send_webhook_test_event_request_spec.rb +42 -0
- data/spec/models/session_list_response_data_session_info_spec.rb +48 -0
- data/spec/models/session_list_response_data_spec.rb +42 -0
- data/spec/models/session_list_response_spec.rb +42 -0
- data/spec/models/set_preferences_request_preferences_inner_spec.rb +48 -0
- data/spec/models/set_preferences_request_spec.rb +36 -0
- data/spec/models/sms_batch_result_message_spec.rb +60 -0
- data/spec/models/sms_batch_result_summary_spec.rb +48 -0
- data/spec/models/sms_config_delete_response_data_spec.rb +36 -0
- data/spec/models/sms_config_delete_response_spec.rb +42 -0
- data/spec/models/sms_config_response_spec.rb +42 -0
- data/spec/models/sms_config_spec.rb +78 -0
- data/spec/models/sms_detail_response_spec.rb +42 -0
- data/spec/models/sms_list_response_meta_spec.rb +60 -0
- data/spec/models/sms_list_response_spec.rb +42 -0
- data/spec/models/sms_message_detail_spec.rb +142 -0
- data/spec/models/sms_message_spec.rb +82 -0
- data/spec/models/subscribe_push_topic_request_spec.rb +36 -0
- data/spec/models/subscriber_list_response_spec.rb +42 -0
- data/spec/models/subscriber_preference_spec.rb +76 -0
- data/spec/models/subscriber_response_spec.rb +42 -0
- data/spec/models/subscriber_spec.rb +112 -0
- data/spec/models/success_result_data_spec.rb +36 -0
- data/spec/models/success_result_spec.rb +42 -0
- data/spec/models/template_list_response_spec.rb +42 -0
- data/spec/models/template_render_response_spec.rb +42 -0
- data/spec/models/template_rendered_content_spec.rb +48 -0
- data/spec/models/template_response_spec.rb +42 -0
- data/spec/models/template_spec.rb +90 -0
- data/spec/models/test_webhook_transform_request_spec.rb +36 -0
- data/spec/models/topic_delete_response_data_spec.rb +42 -0
- data/spec/models/topic_delete_response_spec.rb +42 -0
- data/spec/models/topic_list_response_spec.rb +42 -0
- data/spec/models/topic_response_spec.rb +42 -0
- data/spec/models/topic_spec.rb +72 -0
- data/spec/models/topic_stats_data_spec.rb +48 -0
- data/spec/models/topic_stats_data_topics_by_subscriber_count_inner_spec.rb +48 -0
- data/spec/models/topic_stats_response_spec.rb +42 -0
- data/spec/models/topic_subscriber_list_response_spec.rb +42 -0
- data/spec/models/topic_subscriber_spec.rb +48 -0
- data/spec/models/topic_subscribers_add_response_spec.rb +42 -0
- data/spec/models/topic_subscribers_add_result_spec.rb +48 -0
- data/spec/models/topic_subscribers_remove_response_spec.rb +42 -0
- data/spec/models/topic_subscribers_remove_result_spec.rb +48 -0
- data/spec/models/unread_count_data_spec.rb +36 -0
- data/spec/models/unread_count_response_spec.rb +42 -0
- data/spec/models/unsubscribe_list_response_spec.rb +42 -0
- data/spec/models/unsubscribe_request_spec.rb +46 -0
- data/spec/models/unsubscribe_response_spec.rb +42 -0
- data/spec/models/unsubscribe_spec.rb +64 -0
- data/spec/models/update_category_request_spec.rb +60 -0
- data/spec/models/update_end_user_request_spec.rb +48 -0
- data/spec/models/update_subscriber_request_spec.rb +82 -0
- data/spec/models/update_template_request_spec.rb +66 -0
- data/spec/models/update_topic_request_spec.rb +42 -0
- data/spec/models/update_webhook_request_spec.rb +90 -0
- data/spec/models/upsert_sms_config_request_spec.rb +54 -0
- data/spec/models/user_devices_delete_response_data_spec.rb +42 -0
- data/spec/models/user_devices_delete_response_spec.rb +42 -0
- data/spec/models/validate_reset_token_request_spec.rb +36 -0
- data/spec/models/validate_reset_token_response_data_spec.rb +42 -0
- data/spec/models/validate_reset_token_response_spec.rb +42 -0
- data/spec/models/verify_sms_config_data_spec.rb +42 -0
- data/spec/models/verify_sms_config_response_spec.rb +42 -0
- data/spec/models/web_authn_challenge_options_spec.rb +42 -0
- data/spec/models/web_authn_credential_list_response_data_spec.rb +36 -0
- data/spec/models/web_authn_credential_list_response_spec.rb +42 -0
- data/spec/models/web_authn_credential_response_spec.rb +42 -0
- data/spec/models/web_authn_credential_spec.rb +78 -0
- data/spec/models/web_authn_start_auth_request_spec.rb +42 -0
- data/spec/models/web_authn_start_auth_response_spec.rb +42 -0
- data/spec/models/web_authn_start_registration_request_spec.rb +36 -0
- data/spec/models/web_authn_start_registration_response_spec.rb +42 -0
- data/spec/models/web_authn_status_response_data_spec.rb +42 -0
- data/spec/models/web_authn_status_response_spec.rb +42 -0
- data/spec/models/web_authn_verify_auth_request_spec.rb +48 -0
- data/spec/models/web_authn_verify_registration_request_spec.rb +48 -0
- data/spec/models/web_authn_verify_registration_response_data_spec.rb +36 -0
- data/spec/models/web_authn_verify_registration_response_spec.rb +42 -0
- data/spec/models/webhook_bulk_retry_response_spec.rb +42 -0
- data/spec/models/webhook_circuit_state_response_spec.rb +42 -0
- data/spec/models/webhook_circuit_state_spec.rb +64 -0
- data/spec/models/webhook_create_response_data_spec.rb +124 -0
- data/spec/models/webhook_create_response_spec.rb +42 -0
- data/spec/models/webhook_delete_response_data_spec.rb +42 -0
- data/spec/models/webhook_delete_response_spec.rb +42 -0
- data/spec/models/webhook_delivery_detail_spec.rb +154 -0
- data/spec/models/webhook_delivery_list_response_spec.rb +42 -0
- data/spec/models/webhook_delivery_response_spec.rb +42 -0
- data/spec/models/webhook_delivery_retry_response_data_spec.rb +48 -0
- data/spec/models/webhook_delivery_retry_response_spec.rb +42 -0
- data/spec/models/webhook_delivery_spec.rb +130 -0
- data/spec/models/webhook_event_types_response_data_spec.rb +54 -0
- data/spec/models/webhook_event_types_response_spec.rb +42 -0
- data/spec/models/webhook_ips_response_data_spec.rb +48 -0
- data/spec/models/webhook_ips_response_spec.rb +42 -0
- data/spec/models/webhook_job_response_spec.rb +42 -0
- data/spec/models/webhook_list_response_spec.rb +42 -0
- data/spec/models/webhook_metrics_response_spec.rb +42 -0
- data/spec/models/webhook_region_spec.rb +48 -0
- data/spec/models/webhook_regions_response_data_spec.rb +42 -0
- data/spec/models/webhook_regions_response_spec.rb +42 -0
- data/spec/models/webhook_replay_response_spec.rb +42 -0
- data/spec/models/webhook_response_spec.rb +42 -0
- data/spec/models/webhook_secret_rotate_response_data_spec.rb +42 -0
- data/spec/models/webhook_secret_rotate_response_spec.rb +42 -0
- data/spec/models/webhook_spec.rb +118 -0
- data/spec/models/webhook_test_event_response_data_spec.rb +54 -0
- data/spec/models/webhook_test_event_response_spec.rb +42 -0
- data/spec/models/webhook_transform_test_response_spec.rb +42 -0
- data/spec/models/webhook_usage_response_spec.rb +42 -0
- data/spec/models/webhook_version_spec.rb +78 -0
- data/spec/models/webhook_versions_response_data_spec.rb +42 -0
- data/spec/models/webhook_versions_response_spec.rb +42 -0
- data/spec/models/webhook_workspace_metrics_response_spec.rb +42 -0
- data/spec/models/withdraw_subscriber_consent_request_spec.rb +36 -0
- data/spec/spec_helper.rb +111 -0
- data/zyphr.gemspec +41 -0
- metadata +1395 -0
|
@@ -0,0 +1,1450 @@
|
|
|
1
|
+
# Zyphr::SubscribersApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.zyphr.dev/v1*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**create_category**](SubscribersApi.md#create_category) | **POST** /subscribers/categories | Create a notification category |
|
|
8
|
+
| [**create_subscriber**](SubscribersApi.md#create_subscriber) | **POST** /subscribers | Create or update a subscriber |
|
|
9
|
+
| [**delete_category**](SubscribersApi.md#delete_category) | **DELETE** /subscribers/categories/{id} | Delete a category |
|
|
10
|
+
| [**delete_subscriber**](SubscribersApi.md#delete_subscriber) | **DELETE** /subscribers/{id} | Delete a subscriber |
|
|
11
|
+
| [**get_category**](SubscribersApi.md#get_category) | **GET** /subscribers/categories/{idOrSlug} | Get a category by ID or slug |
|
|
12
|
+
| [**get_subscriber**](SubscribersApi.md#get_subscriber) | **GET** /subscribers/{id} | Get a subscriber by ID |
|
|
13
|
+
| [**get_subscriber_by_external_id**](SubscribersApi.md#get_subscriber_by_external_id) | **GET** /subscribers/by-external-id/{externalId} | Get subscriber by external ID |
|
|
14
|
+
| [**get_subscriber_consent**](SubscribersApi.md#get_subscriber_consent) | **GET** /subscribers/{id}/consent | Get subscriber consent status |
|
|
15
|
+
| [**get_subscriber_consent_history**](SubscribersApi.md#get_subscriber_consent_history) | **GET** /subscribers/{id}/consent/history | Get subscriber consent history |
|
|
16
|
+
| [**get_subscriber_preferences**](SubscribersApi.md#get_subscriber_preferences) | **GET** /subscribers/{id}/preferences | Get subscriber preferences |
|
|
17
|
+
| [**get_subscriber_unsubscribes**](SubscribersApi.md#get_subscriber_unsubscribes) | **GET** /subscribers/{id}/unsubscribes | Get subscriber unsubscribes |
|
|
18
|
+
| [**list_categories**](SubscribersApi.md#list_categories) | **GET** /subscribers/categories | List notification categories |
|
|
19
|
+
| [**list_subscribers**](SubscribersApi.md#list_subscribers) | **GET** /subscribers | List subscribers |
|
|
20
|
+
| [**record_subscriber_consent**](SubscribersApi.md#record_subscriber_consent) | **POST** /subscribers/{id}/consent | Record subscriber consent |
|
|
21
|
+
| [**resubscribe_subscriber**](SubscribersApi.md#resubscribe_subscriber) | **POST** /subscribers/{id}/resubscribe | Resubscribe to a channel |
|
|
22
|
+
| [**set_subscriber_preferences**](SubscribersApi.md#set_subscriber_preferences) | **PUT** /subscribers/{id}/preferences | Set subscriber preferences |
|
|
23
|
+
| [**unsubscribe_subscriber**](SubscribersApi.md#unsubscribe_subscriber) | **POST** /subscribers/{id}/unsubscribe | Unsubscribe from a channel |
|
|
24
|
+
| [**update_category**](SubscribersApi.md#update_category) | **PATCH** /subscribers/categories/{id} | Update a category |
|
|
25
|
+
| [**update_subscriber**](SubscribersApi.md#update_subscriber) | **PATCH** /subscribers/{id} | Update a subscriber |
|
|
26
|
+
| [**withdraw_subscriber_consent**](SubscribersApi.md#withdraw_subscriber_consent) | **DELETE** /subscribers/{id}/consent | Withdraw subscriber consent |
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## create_category
|
|
30
|
+
|
|
31
|
+
> <CategoryResponse> create_category(create_category_request)
|
|
32
|
+
|
|
33
|
+
Create a notification category
|
|
34
|
+
|
|
35
|
+
### Examples
|
|
36
|
+
|
|
37
|
+
```ruby
|
|
38
|
+
require 'time'
|
|
39
|
+
require 'zyphr'
|
|
40
|
+
# setup authorization
|
|
41
|
+
Zyphr.configure do |config|
|
|
42
|
+
# Configure API key authorization: ApiKeyAuth
|
|
43
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
44
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
45
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
api_instance = Zyphr::SubscribersApi.new
|
|
49
|
+
create_category_request = Zyphr::CreateCategoryRequest.new({name: 'name_example', slug: 'slug_example', channels: ['channels_example']}) # CreateCategoryRequest |
|
|
50
|
+
|
|
51
|
+
begin
|
|
52
|
+
# Create a notification category
|
|
53
|
+
result = api_instance.create_category(create_category_request)
|
|
54
|
+
p result
|
|
55
|
+
rescue Zyphr::ApiError => e
|
|
56
|
+
puts "Error when calling SubscribersApi->create_category: #{e}"
|
|
57
|
+
end
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
#### Using the create_category_with_http_info variant
|
|
61
|
+
|
|
62
|
+
This returns an Array which contains the response data, status code and headers.
|
|
63
|
+
|
|
64
|
+
> <Array(<CategoryResponse>, Integer, Hash)> create_category_with_http_info(create_category_request)
|
|
65
|
+
|
|
66
|
+
```ruby
|
|
67
|
+
begin
|
|
68
|
+
# Create a notification category
|
|
69
|
+
data, status_code, headers = api_instance.create_category_with_http_info(create_category_request)
|
|
70
|
+
p status_code # => 2xx
|
|
71
|
+
p headers # => { ... }
|
|
72
|
+
p data # => <CategoryResponse>
|
|
73
|
+
rescue Zyphr::ApiError => e
|
|
74
|
+
puts "Error when calling SubscribersApi->create_category_with_http_info: #{e}"
|
|
75
|
+
end
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Parameters
|
|
79
|
+
|
|
80
|
+
| Name | Type | Description | Notes |
|
|
81
|
+
| ---- | ---- | ----------- | ----- |
|
|
82
|
+
| **create_category_request** | [**CreateCategoryRequest**](CreateCategoryRequest.md) | | |
|
|
83
|
+
|
|
84
|
+
### Return type
|
|
85
|
+
|
|
86
|
+
[**CategoryResponse**](CategoryResponse.md)
|
|
87
|
+
|
|
88
|
+
### Authorization
|
|
89
|
+
|
|
90
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
91
|
+
|
|
92
|
+
### HTTP request headers
|
|
93
|
+
|
|
94
|
+
- **Content-Type**: application/json
|
|
95
|
+
- **Accept**: application/json
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
## create_subscriber
|
|
99
|
+
|
|
100
|
+
> <SubscriberResponse> create_subscriber(create_subscriber_request)
|
|
101
|
+
|
|
102
|
+
Create or update a subscriber
|
|
103
|
+
|
|
104
|
+
Upsert a subscriber by external_id. If a subscriber with the given external_id already exists, it will be updated.
|
|
105
|
+
|
|
106
|
+
### Examples
|
|
107
|
+
|
|
108
|
+
```ruby
|
|
109
|
+
require 'time'
|
|
110
|
+
require 'zyphr'
|
|
111
|
+
# setup authorization
|
|
112
|
+
Zyphr.configure do |config|
|
|
113
|
+
# Configure API key authorization: ApiKeyAuth
|
|
114
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
115
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
116
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
api_instance = Zyphr::SubscribersApi.new
|
|
120
|
+
create_subscriber_request = Zyphr::CreateSubscriberRequest.new({external_id: 'user_123'}) # CreateSubscriberRequest |
|
|
121
|
+
|
|
122
|
+
begin
|
|
123
|
+
# Create or update a subscriber
|
|
124
|
+
result = api_instance.create_subscriber(create_subscriber_request)
|
|
125
|
+
p result
|
|
126
|
+
rescue Zyphr::ApiError => e
|
|
127
|
+
puts "Error when calling SubscribersApi->create_subscriber: #{e}"
|
|
128
|
+
end
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
#### Using the create_subscriber_with_http_info variant
|
|
132
|
+
|
|
133
|
+
This returns an Array which contains the response data, status code and headers.
|
|
134
|
+
|
|
135
|
+
> <Array(<SubscriberResponse>, Integer, Hash)> create_subscriber_with_http_info(create_subscriber_request)
|
|
136
|
+
|
|
137
|
+
```ruby
|
|
138
|
+
begin
|
|
139
|
+
# Create or update a subscriber
|
|
140
|
+
data, status_code, headers = api_instance.create_subscriber_with_http_info(create_subscriber_request)
|
|
141
|
+
p status_code # => 2xx
|
|
142
|
+
p headers # => { ... }
|
|
143
|
+
p data # => <SubscriberResponse>
|
|
144
|
+
rescue Zyphr::ApiError => e
|
|
145
|
+
puts "Error when calling SubscribersApi->create_subscriber_with_http_info: #{e}"
|
|
146
|
+
end
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
### Parameters
|
|
150
|
+
|
|
151
|
+
| Name | Type | Description | Notes |
|
|
152
|
+
| ---- | ---- | ----------- | ----- |
|
|
153
|
+
| **create_subscriber_request** | [**CreateSubscriberRequest**](CreateSubscriberRequest.md) | | |
|
|
154
|
+
|
|
155
|
+
### Return type
|
|
156
|
+
|
|
157
|
+
[**SubscriberResponse**](SubscriberResponse.md)
|
|
158
|
+
|
|
159
|
+
### Authorization
|
|
160
|
+
|
|
161
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
162
|
+
|
|
163
|
+
### HTTP request headers
|
|
164
|
+
|
|
165
|
+
- **Content-Type**: application/json
|
|
166
|
+
- **Accept**: application/json
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
## delete_category
|
|
170
|
+
|
|
171
|
+
> delete_category(id)
|
|
172
|
+
|
|
173
|
+
Delete a category
|
|
174
|
+
|
|
175
|
+
### Examples
|
|
176
|
+
|
|
177
|
+
```ruby
|
|
178
|
+
require 'time'
|
|
179
|
+
require 'zyphr'
|
|
180
|
+
# setup authorization
|
|
181
|
+
Zyphr.configure do |config|
|
|
182
|
+
# Configure API key authorization: ApiKeyAuth
|
|
183
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
184
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
185
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
api_instance = Zyphr::SubscribersApi.new
|
|
189
|
+
id = 'id_example' # String |
|
|
190
|
+
|
|
191
|
+
begin
|
|
192
|
+
# Delete a category
|
|
193
|
+
api_instance.delete_category(id)
|
|
194
|
+
rescue Zyphr::ApiError => e
|
|
195
|
+
puts "Error when calling SubscribersApi->delete_category: #{e}"
|
|
196
|
+
end
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
#### Using the delete_category_with_http_info variant
|
|
200
|
+
|
|
201
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
202
|
+
|
|
203
|
+
> <Array(nil, Integer, Hash)> delete_category_with_http_info(id)
|
|
204
|
+
|
|
205
|
+
```ruby
|
|
206
|
+
begin
|
|
207
|
+
# Delete a category
|
|
208
|
+
data, status_code, headers = api_instance.delete_category_with_http_info(id)
|
|
209
|
+
p status_code # => 2xx
|
|
210
|
+
p headers # => { ... }
|
|
211
|
+
p data # => nil
|
|
212
|
+
rescue Zyphr::ApiError => e
|
|
213
|
+
puts "Error when calling SubscribersApi->delete_category_with_http_info: #{e}"
|
|
214
|
+
end
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
### Parameters
|
|
218
|
+
|
|
219
|
+
| Name | Type | Description | Notes |
|
|
220
|
+
| ---- | ---- | ----------- | ----- |
|
|
221
|
+
| **id** | **String** | | |
|
|
222
|
+
|
|
223
|
+
### Return type
|
|
224
|
+
|
|
225
|
+
nil (empty response body)
|
|
226
|
+
|
|
227
|
+
### Authorization
|
|
228
|
+
|
|
229
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
230
|
+
|
|
231
|
+
### HTTP request headers
|
|
232
|
+
|
|
233
|
+
- **Content-Type**: Not defined
|
|
234
|
+
- **Accept**: application/json
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
## delete_subscriber
|
|
238
|
+
|
|
239
|
+
> delete_subscriber(id)
|
|
240
|
+
|
|
241
|
+
Delete a subscriber
|
|
242
|
+
|
|
243
|
+
Soft-deletes a subscriber by setting status to deleted.
|
|
244
|
+
|
|
245
|
+
### Examples
|
|
246
|
+
|
|
247
|
+
```ruby
|
|
248
|
+
require 'time'
|
|
249
|
+
require 'zyphr'
|
|
250
|
+
# setup authorization
|
|
251
|
+
Zyphr.configure do |config|
|
|
252
|
+
# Configure API key authorization: ApiKeyAuth
|
|
253
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
254
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
255
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
api_instance = Zyphr::SubscribersApi.new
|
|
259
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
260
|
+
|
|
261
|
+
begin
|
|
262
|
+
# Delete a subscriber
|
|
263
|
+
api_instance.delete_subscriber(id)
|
|
264
|
+
rescue Zyphr::ApiError => e
|
|
265
|
+
puts "Error when calling SubscribersApi->delete_subscriber: #{e}"
|
|
266
|
+
end
|
|
267
|
+
```
|
|
268
|
+
|
|
269
|
+
#### Using the delete_subscriber_with_http_info variant
|
|
270
|
+
|
|
271
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
|
272
|
+
|
|
273
|
+
> <Array(nil, Integer, Hash)> delete_subscriber_with_http_info(id)
|
|
274
|
+
|
|
275
|
+
```ruby
|
|
276
|
+
begin
|
|
277
|
+
# Delete a subscriber
|
|
278
|
+
data, status_code, headers = api_instance.delete_subscriber_with_http_info(id)
|
|
279
|
+
p status_code # => 2xx
|
|
280
|
+
p headers # => { ... }
|
|
281
|
+
p data # => nil
|
|
282
|
+
rescue Zyphr::ApiError => e
|
|
283
|
+
puts "Error when calling SubscribersApi->delete_subscriber_with_http_info: #{e}"
|
|
284
|
+
end
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
### Parameters
|
|
288
|
+
|
|
289
|
+
| Name | Type | Description | Notes |
|
|
290
|
+
| ---- | ---- | ----------- | ----- |
|
|
291
|
+
| **id** | **String** | | |
|
|
292
|
+
|
|
293
|
+
### Return type
|
|
294
|
+
|
|
295
|
+
nil (empty response body)
|
|
296
|
+
|
|
297
|
+
### Authorization
|
|
298
|
+
|
|
299
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
300
|
+
|
|
301
|
+
### HTTP request headers
|
|
302
|
+
|
|
303
|
+
- **Content-Type**: Not defined
|
|
304
|
+
- **Accept**: application/json
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
## get_category
|
|
308
|
+
|
|
309
|
+
> <CategoryResponse> get_category(id_or_slug)
|
|
310
|
+
|
|
311
|
+
Get a category by ID or slug
|
|
312
|
+
|
|
313
|
+
### Examples
|
|
314
|
+
|
|
315
|
+
```ruby
|
|
316
|
+
require 'time'
|
|
317
|
+
require 'zyphr'
|
|
318
|
+
# setup authorization
|
|
319
|
+
Zyphr.configure do |config|
|
|
320
|
+
# Configure API key authorization: ApiKeyAuth
|
|
321
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
322
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
323
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
api_instance = Zyphr::SubscribersApi.new
|
|
327
|
+
id_or_slug = 'id_or_slug_example' # String |
|
|
328
|
+
|
|
329
|
+
begin
|
|
330
|
+
# Get a category by ID or slug
|
|
331
|
+
result = api_instance.get_category(id_or_slug)
|
|
332
|
+
p result
|
|
333
|
+
rescue Zyphr::ApiError => e
|
|
334
|
+
puts "Error when calling SubscribersApi->get_category: #{e}"
|
|
335
|
+
end
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
#### Using the get_category_with_http_info variant
|
|
339
|
+
|
|
340
|
+
This returns an Array which contains the response data, status code and headers.
|
|
341
|
+
|
|
342
|
+
> <Array(<CategoryResponse>, Integer, Hash)> get_category_with_http_info(id_or_slug)
|
|
343
|
+
|
|
344
|
+
```ruby
|
|
345
|
+
begin
|
|
346
|
+
# Get a category by ID or slug
|
|
347
|
+
data, status_code, headers = api_instance.get_category_with_http_info(id_or_slug)
|
|
348
|
+
p status_code # => 2xx
|
|
349
|
+
p headers # => { ... }
|
|
350
|
+
p data # => <CategoryResponse>
|
|
351
|
+
rescue Zyphr::ApiError => e
|
|
352
|
+
puts "Error when calling SubscribersApi->get_category_with_http_info: #{e}"
|
|
353
|
+
end
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
### Parameters
|
|
357
|
+
|
|
358
|
+
| Name | Type | Description | Notes |
|
|
359
|
+
| ---- | ---- | ----------- | ----- |
|
|
360
|
+
| **id_or_slug** | **String** | | |
|
|
361
|
+
|
|
362
|
+
### Return type
|
|
363
|
+
|
|
364
|
+
[**CategoryResponse**](CategoryResponse.md)
|
|
365
|
+
|
|
366
|
+
### Authorization
|
|
367
|
+
|
|
368
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
369
|
+
|
|
370
|
+
### HTTP request headers
|
|
371
|
+
|
|
372
|
+
- **Content-Type**: Not defined
|
|
373
|
+
- **Accept**: application/json
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
## get_subscriber
|
|
377
|
+
|
|
378
|
+
> <SubscriberResponse> get_subscriber(id)
|
|
379
|
+
|
|
380
|
+
Get a subscriber by ID
|
|
381
|
+
|
|
382
|
+
### Examples
|
|
383
|
+
|
|
384
|
+
```ruby
|
|
385
|
+
require 'time'
|
|
386
|
+
require 'zyphr'
|
|
387
|
+
# setup authorization
|
|
388
|
+
Zyphr.configure do |config|
|
|
389
|
+
# Configure API key authorization: ApiKeyAuth
|
|
390
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
391
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
392
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
393
|
+
end
|
|
394
|
+
|
|
395
|
+
api_instance = Zyphr::SubscribersApi.new
|
|
396
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
397
|
+
|
|
398
|
+
begin
|
|
399
|
+
# Get a subscriber by ID
|
|
400
|
+
result = api_instance.get_subscriber(id)
|
|
401
|
+
p result
|
|
402
|
+
rescue Zyphr::ApiError => e
|
|
403
|
+
puts "Error when calling SubscribersApi->get_subscriber: #{e}"
|
|
404
|
+
end
|
|
405
|
+
```
|
|
406
|
+
|
|
407
|
+
#### Using the get_subscriber_with_http_info variant
|
|
408
|
+
|
|
409
|
+
This returns an Array which contains the response data, status code and headers.
|
|
410
|
+
|
|
411
|
+
> <Array(<SubscriberResponse>, Integer, Hash)> get_subscriber_with_http_info(id)
|
|
412
|
+
|
|
413
|
+
```ruby
|
|
414
|
+
begin
|
|
415
|
+
# Get a subscriber by ID
|
|
416
|
+
data, status_code, headers = api_instance.get_subscriber_with_http_info(id)
|
|
417
|
+
p status_code # => 2xx
|
|
418
|
+
p headers # => { ... }
|
|
419
|
+
p data # => <SubscriberResponse>
|
|
420
|
+
rescue Zyphr::ApiError => e
|
|
421
|
+
puts "Error when calling SubscribersApi->get_subscriber_with_http_info: #{e}"
|
|
422
|
+
end
|
|
423
|
+
```
|
|
424
|
+
|
|
425
|
+
### Parameters
|
|
426
|
+
|
|
427
|
+
| Name | Type | Description | Notes |
|
|
428
|
+
| ---- | ---- | ----------- | ----- |
|
|
429
|
+
| **id** | **String** | | |
|
|
430
|
+
|
|
431
|
+
### Return type
|
|
432
|
+
|
|
433
|
+
[**SubscriberResponse**](SubscriberResponse.md)
|
|
434
|
+
|
|
435
|
+
### Authorization
|
|
436
|
+
|
|
437
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
438
|
+
|
|
439
|
+
### HTTP request headers
|
|
440
|
+
|
|
441
|
+
- **Content-Type**: Not defined
|
|
442
|
+
- **Accept**: application/json
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
## get_subscriber_by_external_id
|
|
446
|
+
|
|
447
|
+
> <SubscriberResponse> get_subscriber_by_external_id(external_id)
|
|
448
|
+
|
|
449
|
+
Get subscriber by external ID
|
|
450
|
+
|
|
451
|
+
### Examples
|
|
452
|
+
|
|
453
|
+
```ruby
|
|
454
|
+
require 'time'
|
|
455
|
+
require 'zyphr'
|
|
456
|
+
# setup authorization
|
|
457
|
+
Zyphr.configure do |config|
|
|
458
|
+
# Configure API key authorization: ApiKeyAuth
|
|
459
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
460
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
461
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
462
|
+
end
|
|
463
|
+
|
|
464
|
+
api_instance = Zyphr::SubscribersApi.new
|
|
465
|
+
external_id = 'external_id_example' # String |
|
|
466
|
+
|
|
467
|
+
begin
|
|
468
|
+
# Get subscriber by external ID
|
|
469
|
+
result = api_instance.get_subscriber_by_external_id(external_id)
|
|
470
|
+
p result
|
|
471
|
+
rescue Zyphr::ApiError => e
|
|
472
|
+
puts "Error when calling SubscribersApi->get_subscriber_by_external_id: #{e}"
|
|
473
|
+
end
|
|
474
|
+
```
|
|
475
|
+
|
|
476
|
+
#### Using the get_subscriber_by_external_id_with_http_info variant
|
|
477
|
+
|
|
478
|
+
This returns an Array which contains the response data, status code and headers.
|
|
479
|
+
|
|
480
|
+
> <Array(<SubscriberResponse>, Integer, Hash)> get_subscriber_by_external_id_with_http_info(external_id)
|
|
481
|
+
|
|
482
|
+
```ruby
|
|
483
|
+
begin
|
|
484
|
+
# Get subscriber by external ID
|
|
485
|
+
data, status_code, headers = api_instance.get_subscriber_by_external_id_with_http_info(external_id)
|
|
486
|
+
p status_code # => 2xx
|
|
487
|
+
p headers # => { ... }
|
|
488
|
+
p data # => <SubscriberResponse>
|
|
489
|
+
rescue Zyphr::ApiError => e
|
|
490
|
+
puts "Error when calling SubscribersApi->get_subscriber_by_external_id_with_http_info: #{e}"
|
|
491
|
+
end
|
|
492
|
+
```
|
|
493
|
+
|
|
494
|
+
### Parameters
|
|
495
|
+
|
|
496
|
+
| Name | Type | Description | Notes |
|
|
497
|
+
| ---- | ---- | ----------- | ----- |
|
|
498
|
+
| **external_id** | **String** | | |
|
|
499
|
+
|
|
500
|
+
### Return type
|
|
501
|
+
|
|
502
|
+
[**SubscriberResponse**](SubscriberResponse.md)
|
|
503
|
+
|
|
504
|
+
### Authorization
|
|
505
|
+
|
|
506
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
507
|
+
|
|
508
|
+
### HTTP request headers
|
|
509
|
+
|
|
510
|
+
- **Content-Type**: Not defined
|
|
511
|
+
- **Accept**: application/json
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
## get_subscriber_consent
|
|
515
|
+
|
|
516
|
+
> <ConsentStatusResponse> get_subscriber_consent(id)
|
|
517
|
+
|
|
518
|
+
Get subscriber consent status
|
|
519
|
+
|
|
520
|
+
### Examples
|
|
521
|
+
|
|
522
|
+
```ruby
|
|
523
|
+
require 'time'
|
|
524
|
+
require 'zyphr'
|
|
525
|
+
# setup authorization
|
|
526
|
+
Zyphr.configure do |config|
|
|
527
|
+
# Configure API key authorization: ApiKeyAuth
|
|
528
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
529
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
530
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
531
|
+
end
|
|
532
|
+
|
|
533
|
+
api_instance = Zyphr::SubscribersApi.new
|
|
534
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
535
|
+
|
|
536
|
+
begin
|
|
537
|
+
# Get subscriber consent status
|
|
538
|
+
result = api_instance.get_subscriber_consent(id)
|
|
539
|
+
p result
|
|
540
|
+
rescue Zyphr::ApiError => e
|
|
541
|
+
puts "Error when calling SubscribersApi->get_subscriber_consent: #{e}"
|
|
542
|
+
end
|
|
543
|
+
```
|
|
544
|
+
|
|
545
|
+
#### Using the get_subscriber_consent_with_http_info variant
|
|
546
|
+
|
|
547
|
+
This returns an Array which contains the response data, status code and headers.
|
|
548
|
+
|
|
549
|
+
> <Array(<ConsentStatusResponse>, Integer, Hash)> get_subscriber_consent_with_http_info(id)
|
|
550
|
+
|
|
551
|
+
```ruby
|
|
552
|
+
begin
|
|
553
|
+
# Get subscriber consent status
|
|
554
|
+
data, status_code, headers = api_instance.get_subscriber_consent_with_http_info(id)
|
|
555
|
+
p status_code # => 2xx
|
|
556
|
+
p headers # => { ... }
|
|
557
|
+
p data # => <ConsentStatusResponse>
|
|
558
|
+
rescue Zyphr::ApiError => e
|
|
559
|
+
puts "Error when calling SubscribersApi->get_subscriber_consent_with_http_info: #{e}"
|
|
560
|
+
end
|
|
561
|
+
```
|
|
562
|
+
|
|
563
|
+
### Parameters
|
|
564
|
+
|
|
565
|
+
| Name | Type | Description | Notes |
|
|
566
|
+
| ---- | ---- | ----------- | ----- |
|
|
567
|
+
| **id** | **String** | | |
|
|
568
|
+
|
|
569
|
+
### Return type
|
|
570
|
+
|
|
571
|
+
[**ConsentStatusResponse**](ConsentStatusResponse.md)
|
|
572
|
+
|
|
573
|
+
### Authorization
|
|
574
|
+
|
|
575
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
576
|
+
|
|
577
|
+
### HTTP request headers
|
|
578
|
+
|
|
579
|
+
- **Content-Type**: Not defined
|
|
580
|
+
- **Accept**: application/json
|
|
581
|
+
|
|
582
|
+
|
|
583
|
+
## get_subscriber_consent_history
|
|
584
|
+
|
|
585
|
+
> <ConsentHistoryResponse> get_subscriber_consent_history(id, opts)
|
|
586
|
+
|
|
587
|
+
Get subscriber consent history
|
|
588
|
+
|
|
589
|
+
Returns paginated consent audit log for a subscriber.
|
|
590
|
+
|
|
591
|
+
### Examples
|
|
592
|
+
|
|
593
|
+
```ruby
|
|
594
|
+
require 'time'
|
|
595
|
+
require 'zyphr'
|
|
596
|
+
# setup authorization
|
|
597
|
+
Zyphr.configure do |config|
|
|
598
|
+
# Configure API key authorization: ApiKeyAuth
|
|
599
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
600
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
601
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
602
|
+
end
|
|
603
|
+
|
|
604
|
+
api_instance = Zyphr::SubscribersApi.new
|
|
605
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
606
|
+
opts = {
|
|
607
|
+
limit: 56, # Integer |
|
|
608
|
+
offset: 56 # Integer |
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
begin
|
|
612
|
+
# Get subscriber consent history
|
|
613
|
+
result = api_instance.get_subscriber_consent_history(id, opts)
|
|
614
|
+
p result
|
|
615
|
+
rescue Zyphr::ApiError => e
|
|
616
|
+
puts "Error when calling SubscribersApi->get_subscriber_consent_history: #{e}"
|
|
617
|
+
end
|
|
618
|
+
```
|
|
619
|
+
|
|
620
|
+
#### Using the get_subscriber_consent_history_with_http_info variant
|
|
621
|
+
|
|
622
|
+
This returns an Array which contains the response data, status code and headers.
|
|
623
|
+
|
|
624
|
+
> <Array(<ConsentHistoryResponse>, Integer, Hash)> get_subscriber_consent_history_with_http_info(id, opts)
|
|
625
|
+
|
|
626
|
+
```ruby
|
|
627
|
+
begin
|
|
628
|
+
# Get subscriber consent history
|
|
629
|
+
data, status_code, headers = api_instance.get_subscriber_consent_history_with_http_info(id, opts)
|
|
630
|
+
p status_code # => 2xx
|
|
631
|
+
p headers # => { ... }
|
|
632
|
+
p data # => <ConsentHistoryResponse>
|
|
633
|
+
rescue Zyphr::ApiError => e
|
|
634
|
+
puts "Error when calling SubscribersApi->get_subscriber_consent_history_with_http_info: #{e}"
|
|
635
|
+
end
|
|
636
|
+
```
|
|
637
|
+
|
|
638
|
+
### Parameters
|
|
639
|
+
|
|
640
|
+
| Name | Type | Description | Notes |
|
|
641
|
+
| ---- | ---- | ----------- | ----- |
|
|
642
|
+
| **id** | **String** | | |
|
|
643
|
+
| **limit** | **Integer** | | [optional][default to 50] |
|
|
644
|
+
| **offset** | **Integer** | | [optional][default to 0] |
|
|
645
|
+
|
|
646
|
+
### Return type
|
|
647
|
+
|
|
648
|
+
[**ConsentHistoryResponse**](ConsentHistoryResponse.md)
|
|
649
|
+
|
|
650
|
+
### Authorization
|
|
651
|
+
|
|
652
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
653
|
+
|
|
654
|
+
### HTTP request headers
|
|
655
|
+
|
|
656
|
+
- **Content-Type**: Not defined
|
|
657
|
+
- **Accept**: application/json
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
## get_subscriber_preferences
|
|
661
|
+
|
|
662
|
+
> <PreferenceListResponse> get_subscriber_preferences(id, opts)
|
|
663
|
+
|
|
664
|
+
Get subscriber preferences
|
|
665
|
+
|
|
666
|
+
### Examples
|
|
667
|
+
|
|
668
|
+
```ruby
|
|
669
|
+
require 'time'
|
|
670
|
+
require 'zyphr'
|
|
671
|
+
# setup authorization
|
|
672
|
+
Zyphr.configure do |config|
|
|
673
|
+
# Configure API key authorization: ApiKeyAuth
|
|
674
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
675
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
676
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
677
|
+
end
|
|
678
|
+
|
|
679
|
+
api_instance = Zyphr::SubscribersApi.new
|
|
680
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
681
|
+
opts = {
|
|
682
|
+
effective: true # Boolean | Return effective preferences (merged with category defaults)
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
begin
|
|
686
|
+
# Get subscriber preferences
|
|
687
|
+
result = api_instance.get_subscriber_preferences(id, opts)
|
|
688
|
+
p result
|
|
689
|
+
rescue Zyphr::ApiError => e
|
|
690
|
+
puts "Error when calling SubscribersApi->get_subscriber_preferences: #{e}"
|
|
691
|
+
end
|
|
692
|
+
```
|
|
693
|
+
|
|
694
|
+
#### Using the get_subscriber_preferences_with_http_info variant
|
|
695
|
+
|
|
696
|
+
This returns an Array which contains the response data, status code and headers.
|
|
697
|
+
|
|
698
|
+
> <Array(<PreferenceListResponse>, Integer, Hash)> get_subscriber_preferences_with_http_info(id, opts)
|
|
699
|
+
|
|
700
|
+
```ruby
|
|
701
|
+
begin
|
|
702
|
+
# Get subscriber preferences
|
|
703
|
+
data, status_code, headers = api_instance.get_subscriber_preferences_with_http_info(id, opts)
|
|
704
|
+
p status_code # => 2xx
|
|
705
|
+
p headers # => { ... }
|
|
706
|
+
p data # => <PreferenceListResponse>
|
|
707
|
+
rescue Zyphr::ApiError => e
|
|
708
|
+
puts "Error when calling SubscribersApi->get_subscriber_preferences_with_http_info: #{e}"
|
|
709
|
+
end
|
|
710
|
+
```
|
|
711
|
+
|
|
712
|
+
### Parameters
|
|
713
|
+
|
|
714
|
+
| Name | Type | Description | Notes |
|
|
715
|
+
| ---- | ---- | ----------- | ----- |
|
|
716
|
+
| **id** | **String** | | |
|
|
717
|
+
| **effective** | **Boolean** | Return effective preferences (merged with category defaults) | [optional] |
|
|
718
|
+
|
|
719
|
+
### Return type
|
|
720
|
+
|
|
721
|
+
[**PreferenceListResponse**](PreferenceListResponse.md)
|
|
722
|
+
|
|
723
|
+
### Authorization
|
|
724
|
+
|
|
725
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
726
|
+
|
|
727
|
+
### HTTP request headers
|
|
728
|
+
|
|
729
|
+
- **Content-Type**: Not defined
|
|
730
|
+
- **Accept**: application/json
|
|
731
|
+
|
|
732
|
+
|
|
733
|
+
## get_subscriber_unsubscribes
|
|
734
|
+
|
|
735
|
+
> <UnsubscribeListResponse> get_subscriber_unsubscribes(id)
|
|
736
|
+
|
|
737
|
+
Get subscriber unsubscribes
|
|
738
|
+
|
|
739
|
+
### Examples
|
|
740
|
+
|
|
741
|
+
```ruby
|
|
742
|
+
require 'time'
|
|
743
|
+
require 'zyphr'
|
|
744
|
+
# setup authorization
|
|
745
|
+
Zyphr.configure do |config|
|
|
746
|
+
# Configure API key authorization: ApiKeyAuth
|
|
747
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
748
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
749
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
750
|
+
end
|
|
751
|
+
|
|
752
|
+
api_instance = Zyphr::SubscribersApi.new
|
|
753
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
754
|
+
|
|
755
|
+
begin
|
|
756
|
+
# Get subscriber unsubscribes
|
|
757
|
+
result = api_instance.get_subscriber_unsubscribes(id)
|
|
758
|
+
p result
|
|
759
|
+
rescue Zyphr::ApiError => e
|
|
760
|
+
puts "Error when calling SubscribersApi->get_subscriber_unsubscribes: #{e}"
|
|
761
|
+
end
|
|
762
|
+
```
|
|
763
|
+
|
|
764
|
+
#### Using the get_subscriber_unsubscribes_with_http_info variant
|
|
765
|
+
|
|
766
|
+
This returns an Array which contains the response data, status code and headers.
|
|
767
|
+
|
|
768
|
+
> <Array(<UnsubscribeListResponse>, Integer, Hash)> get_subscriber_unsubscribes_with_http_info(id)
|
|
769
|
+
|
|
770
|
+
```ruby
|
|
771
|
+
begin
|
|
772
|
+
# Get subscriber unsubscribes
|
|
773
|
+
data, status_code, headers = api_instance.get_subscriber_unsubscribes_with_http_info(id)
|
|
774
|
+
p status_code # => 2xx
|
|
775
|
+
p headers # => { ... }
|
|
776
|
+
p data # => <UnsubscribeListResponse>
|
|
777
|
+
rescue Zyphr::ApiError => e
|
|
778
|
+
puts "Error when calling SubscribersApi->get_subscriber_unsubscribes_with_http_info: #{e}"
|
|
779
|
+
end
|
|
780
|
+
```
|
|
781
|
+
|
|
782
|
+
### Parameters
|
|
783
|
+
|
|
784
|
+
| Name | Type | Description | Notes |
|
|
785
|
+
| ---- | ---- | ----------- | ----- |
|
|
786
|
+
| **id** | **String** | | |
|
|
787
|
+
|
|
788
|
+
### Return type
|
|
789
|
+
|
|
790
|
+
[**UnsubscribeListResponse**](UnsubscribeListResponse.md)
|
|
791
|
+
|
|
792
|
+
### Authorization
|
|
793
|
+
|
|
794
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
795
|
+
|
|
796
|
+
### HTTP request headers
|
|
797
|
+
|
|
798
|
+
- **Content-Type**: Not defined
|
|
799
|
+
- **Accept**: application/json
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
## list_categories
|
|
803
|
+
|
|
804
|
+
> <CategoryListResponse> list_categories
|
|
805
|
+
|
|
806
|
+
List notification categories
|
|
807
|
+
|
|
808
|
+
### Examples
|
|
809
|
+
|
|
810
|
+
```ruby
|
|
811
|
+
require 'time'
|
|
812
|
+
require 'zyphr'
|
|
813
|
+
# setup authorization
|
|
814
|
+
Zyphr.configure do |config|
|
|
815
|
+
# Configure API key authorization: ApiKeyAuth
|
|
816
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
817
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
818
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
819
|
+
end
|
|
820
|
+
|
|
821
|
+
api_instance = Zyphr::SubscribersApi.new
|
|
822
|
+
|
|
823
|
+
begin
|
|
824
|
+
# List notification categories
|
|
825
|
+
result = api_instance.list_categories
|
|
826
|
+
p result
|
|
827
|
+
rescue Zyphr::ApiError => e
|
|
828
|
+
puts "Error when calling SubscribersApi->list_categories: #{e}"
|
|
829
|
+
end
|
|
830
|
+
```
|
|
831
|
+
|
|
832
|
+
#### Using the list_categories_with_http_info variant
|
|
833
|
+
|
|
834
|
+
This returns an Array which contains the response data, status code and headers.
|
|
835
|
+
|
|
836
|
+
> <Array(<CategoryListResponse>, Integer, Hash)> list_categories_with_http_info
|
|
837
|
+
|
|
838
|
+
```ruby
|
|
839
|
+
begin
|
|
840
|
+
# List notification categories
|
|
841
|
+
data, status_code, headers = api_instance.list_categories_with_http_info
|
|
842
|
+
p status_code # => 2xx
|
|
843
|
+
p headers # => { ... }
|
|
844
|
+
p data # => <CategoryListResponse>
|
|
845
|
+
rescue Zyphr::ApiError => e
|
|
846
|
+
puts "Error when calling SubscribersApi->list_categories_with_http_info: #{e}"
|
|
847
|
+
end
|
|
848
|
+
```
|
|
849
|
+
|
|
850
|
+
### Parameters
|
|
851
|
+
|
|
852
|
+
This endpoint does not need any parameter.
|
|
853
|
+
|
|
854
|
+
### Return type
|
|
855
|
+
|
|
856
|
+
[**CategoryListResponse**](CategoryListResponse.md)
|
|
857
|
+
|
|
858
|
+
### Authorization
|
|
859
|
+
|
|
860
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
861
|
+
|
|
862
|
+
### HTTP request headers
|
|
863
|
+
|
|
864
|
+
- **Content-Type**: Not defined
|
|
865
|
+
- **Accept**: application/json
|
|
866
|
+
|
|
867
|
+
|
|
868
|
+
## list_subscribers
|
|
869
|
+
|
|
870
|
+
> <SubscriberListResponse> list_subscribers(opts)
|
|
871
|
+
|
|
872
|
+
List subscribers
|
|
873
|
+
|
|
874
|
+
### Examples
|
|
875
|
+
|
|
876
|
+
```ruby
|
|
877
|
+
require 'time'
|
|
878
|
+
require 'zyphr'
|
|
879
|
+
# setup authorization
|
|
880
|
+
Zyphr.configure do |config|
|
|
881
|
+
# Configure API key authorization: ApiKeyAuth
|
|
882
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
883
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
884
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
885
|
+
end
|
|
886
|
+
|
|
887
|
+
api_instance = Zyphr::SubscribersApi.new
|
|
888
|
+
opts = {
|
|
889
|
+
status: 'active', # String |
|
|
890
|
+
email: 'email_example', # String |
|
|
891
|
+
limit: 56, # Integer |
|
|
892
|
+
offset: 56 # Integer |
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
begin
|
|
896
|
+
# List subscribers
|
|
897
|
+
result = api_instance.list_subscribers(opts)
|
|
898
|
+
p result
|
|
899
|
+
rescue Zyphr::ApiError => e
|
|
900
|
+
puts "Error when calling SubscribersApi->list_subscribers: #{e}"
|
|
901
|
+
end
|
|
902
|
+
```
|
|
903
|
+
|
|
904
|
+
#### Using the list_subscribers_with_http_info variant
|
|
905
|
+
|
|
906
|
+
This returns an Array which contains the response data, status code and headers.
|
|
907
|
+
|
|
908
|
+
> <Array(<SubscriberListResponse>, Integer, Hash)> list_subscribers_with_http_info(opts)
|
|
909
|
+
|
|
910
|
+
```ruby
|
|
911
|
+
begin
|
|
912
|
+
# List subscribers
|
|
913
|
+
data, status_code, headers = api_instance.list_subscribers_with_http_info(opts)
|
|
914
|
+
p status_code # => 2xx
|
|
915
|
+
p headers # => { ... }
|
|
916
|
+
p data # => <SubscriberListResponse>
|
|
917
|
+
rescue Zyphr::ApiError => e
|
|
918
|
+
puts "Error when calling SubscribersApi->list_subscribers_with_http_info: #{e}"
|
|
919
|
+
end
|
|
920
|
+
```
|
|
921
|
+
|
|
922
|
+
### Parameters
|
|
923
|
+
|
|
924
|
+
| Name | Type | Description | Notes |
|
|
925
|
+
| ---- | ---- | ----------- | ----- |
|
|
926
|
+
| **status** | **String** | | [optional] |
|
|
927
|
+
| **email** | **String** | | [optional] |
|
|
928
|
+
| **limit** | **Integer** | | [optional][default to 50] |
|
|
929
|
+
| **offset** | **Integer** | | [optional][default to 0] |
|
|
930
|
+
|
|
931
|
+
### Return type
|
|
932
|
+
|
|
933
|
+
[**SubscriberListResponse**](SubscriberListResponse.md)
|
|
934
|
+
|
|
935
|
+
### Authorization
|
|
936
|
+
|
|
937
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
938
|
+
|
|
939
|
+
### HTTP request headers
|
|
940
|
+
|
|
941
|
+
- **Content-Type**: Not defined
|
|
942
|
+
- **Accept**: application/json
|
|
943
|
+
|
|
944
|
+
|
|
945
|
+
## record_subscriber_consent
|
|
946
|
+
|
|
947
|
+
> <ConsentRecordResponse> record_subscriber_consent(id, body)
|
|
948
|
+
|
|
949
|
+
Record subscriber consent
|
|
950
|
+
|
|
951
|
+
### Examples
|
|
952
|
+
|
|
953
|
+
```ruby
|
|
954
|
+
require 'time'
|
|
955
|
+
require 'zyphr'
|
|
956
|
+
# setup authorization
|
|
957
|
+
Zyphr.configure do |config|
|
|
958
|
+
# Configure API key authorization: ApiKeyAuth
|
|
959
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
960
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
961
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
962
|
+
end
|
|
963
|
+
|
|
964
|
+
api_instance = Zyphr::SubscribersApi.new
|
|
965
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
966
|
+
body = { ... } # Object |
|
|
967
|
+
|
|
968
|
+
begin
|
|
969
|
+
# Record subscriber consent
|
|
970
|
+
result = api_instance.record_subscriber_consent(id, body)
|
|
971
|
+
p result
|
|
972
|
+
rescue Zyphr::ApiError => e
|
|
973
|
+
puts "Error when calling SubscribersApi->record_subscriber_consent: #{e}"
|
|
974
|
+
end
|
|
975
|
+
```
|
|
976
|
+
|
|
977
|
+
#### Using the record_subscriber_consent_with_http_info variant
|
|
978
|
+
|
|
979
|
+
This returns an Array which contains the response data, status code and headers.
|
|
980
|
+
|
|
981
|
+
> <Array(<ConsentRecordResponse>, Integer, Hash)> record_subscriber_consent_with_http_info(id, body)
|
|
982
|
+
|
|
983
|
+
```ruby
|
|
984
|
+
begin
|
|
985
|
+
# Record subscriber consent
|
|
986
|
+
data, status_code, headers = api_instance.record_subscriber_consent_with_http_info(id, body)
|
|
987
|
+
p status_code # => 2xx
|
|
988
|
+
p headers # => { ... }
|
|
989
|
+
p data # => <ConsentRecordResponse>
|
|
990
|
+
rescue Zyphr::ApiError => e
|
|
991
|
+
puts "Error when calling SubscribersApi->record_subscriber_consent_with_http_info: #{e}"
|
|
992
|
+
end
|
|
993
|
+
```
|
|
994
|
+
|
|
995
|
+
### Parameters
|
|
996
|
+
|
|
997
|
+
| Name | Type | Description | Notes |
|
|
998
|
+
| ---- | ---- | ----------- | ----- |
|
|
999
|
+
| **id** | **String** | | |
|
|
1000
|
+
| **body** | **Object** | | |
|
|
1001
|
+
|
|
1002
|
+
### Return type
|
|
1003
|
+
|
|
1004
|
+
[**ConsentRecordResponse**](ConsentRecordResponse.md)
|
|
1005
|
+
|
|
1006
|
+
### Authorization
|
|
1007
|
+
|
|
1008
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1009
|
+
|
|
1010
|
+
### HTTP request headers
|
|
1011
|
+
|
|
1012
|
+
- **Content-Type**: application/json
|
|
1013
|
+
- **Accept**: application/json
|
|
1014
|
+
|
|
1015
|
+
|
|
1016
|
+
## resubscribe_subscriber
|
|
1017
|
+
|
|
1018
|
+
> <ResubscribeResponse> resubscribe_subscriber(id, opts)
|
|
1019
|
+
|
|
1020
|
+
Resubscribe to a channel
|
|
1021
|
+
|
|
1022
|
+
### Examples
|
|
1023
|
+
|
|
1024
|
+
```ruby
|
|
1025
|
+
require 'time'
|
|
1026
|
+
require 'zyphr'
|
|
1027
|
+
# setup authorization
|
|
1028
|
+
Zyphr.configure do |config|
|
|
1029
|
+
# Configure API key authorization: ApiKeyAuth
|
|
1030
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
1031
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1032
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
1033
|
+
end
|
|
1034
|
+
|
|
1035
|
+
api_instance = Zyphr::SubscribersApi.new
|
|
1036
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
1037
|
+
opts = {
|
|
1038
|
+
resubscribe_request: Zyphr::ResubscribeRequest.new # ResubscribeRequest |
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
begin
|
|
1042
|
+
# Resubscribe to a channel
|
|
1043
|
+
result = api_instance.resubscribe_subscriber(id, opts)
|
|
1044
|
+
p result
|
|
1045
|
+
rescue Zyphr::ApiError => e
|
|
1046
|
+
puts "Error when calling SubscribersApi->resubscribe_subscriber: #{e}"
|
|
1047
|
+
end
|
|
1048
|
+
```
|
|
1049
|
+
|
|
1050
|
+
#### Using the resubscribe_subscriber_with_http_info variant
|
|
1051
|
+
|
|
1052
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1053
|
+
|
|
1054
|
+
> <Array(<ResubscribeResponse>, Integer, Hash)> resubscribe_subscriber_with_http_info(id, opts)
|
|
1055
|
+
|
|
1056
|
+
```ruby
|
|
1057
|
+
begin
|
|
1058
|
+
# Resubscribe to a channel
|
|
1059
|
+
data, status_code, headers = api_instance.resubscribe_subscriber_with_http_info(id, opts)
|
|
1060
|
+
p status_code # => 2xx
|
|
1061
|
+
p headers # => { ... }
|
|
1062
|
+
p data # => <ResubscribeResponse>
|
|
1063
|
+
rescue Zyphr::ApiError => e
|
|
1064
|
+
puts "Error when calling SubscribersApi->resubscribe_subscriber_with_http_info: #{e}"
|
|
1065
|
+
end
|
|
1066
|
+
```
|
|
1067
|
+
|
|
1068
|
+
### Parameters
|
|
1069
|
+
|
|
1070
|
+
| Name | Type | Description | Notes |
|
|
1071
|
+
| ---- | ---- | ----------- | ----- |
|
|
1072
|
+
| **id** | **String** | | |
|
|
1073
|
+
| **resubscribe_request** | [**ResubscribeRequest**](ResubscribeRequest.md) | | [optional] |
|
|
1074
|
+
|
|
1075
|
+
### Return type
|
|
1076
|
+
|
|
1077
|
+
[**ResubscribeResponse**](ResubscribeResponse.md)
|
|
1078
|
+
|
|
1079
|
+
### Authorization
|
|
1080
|
+
|
|
1081
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1082
|
+
|
|
1083
|
+
### HTTP request headers
|
|
1084
|
+
|
|
1085
|
+
- **Content-Type**: application/json
|
|
1086
|
+
- **Accept**: application/json
|
|
1087
|
+
|
|
1088
|
+
|
|
1089
|
+
## set_subscriber_preferences
|
|
1090
|
+
|
|
1091
|
+
> <PreferenceListResponse> set_subscriber_preferences(id, set_preferences_request)
|
|
1092
|
+
|
|
1093
|
+
Set subscriber preferences
|
|
1094
|
+
|
|
1095
|
+
Bulk set notification preferences for a subscriber.
|
|
1096
|
+
|
|
1097
|
+
### Examples
|
|
1098
|
+
|
|
1099
|
+
```ruby
|
|
1100
|
+
require 'time'
|
|
1101
|
+
require 'zyphr'
|
|
1102
|
+
# setup authorization
|
|
1103
|
+
Zyphr.configure do |config|
|
|
1104
|
+
# Configure API key authorization: ApiKeyAuth
|
|
1105
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
1106
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1107
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
1108
|
+
end
|
|
1109
|
+
|
|
1110
|
+
api_instance = Zyphr::SubscribersApi.new
|
|
1111
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
1112
|
+
set_preferences_request = Zyphr::SetPreferencesRequest.new({preferences: [Zyphr::SetPreferencesRequestPreferencesInner.new]}) # SetPreferencesRequest |
|
|
1113
|
+
|
|
1114
|
+
begin
|
|
1115
|
+
# Set subscriber preferences
|
|
1116
|
+
result = api_instance.set_subscriber_preferences(id, set_preferences_request)
|
|
1117
|
+
p result
|
|
1118
|
+
rescue Zyphr::ApiError => e
|
|
1119
|
+
puts "Error when calling SubscribersApi->set_subscriber_preferences: #{e}"
|
|
1120
|
+
end
|
|
1121
|
+
```
|
|
1122
|
+
|
|
1123
|
+
#### Using the set_subscriber_preferences_with_http_info variant
|
|
1124
|
+
|
|
1125
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1126
|
+
|
|
1127
|
+
> <Array(<PreferenceListResponse>, Integer, Hash)> set_subscriber_preferences_with_http_info(id, set_preferences_request)
|
|
1128
|
+
|
|
1129
|
+
```ruby
|
|
1130
|
+
begin
|
|
1131
|
+
# Set subscriber preferences
|
|
1132
|
+
data, status_code, headers = api_instance.set_subscriber_preferences_with_http_info(id, set_preferences_request)
|
|
1133
|
+
p status_code # => 2xx
|
|
1134
|
+
p headers # => { ... }
|
|
1135
|
+
p data # => <PreferenceListResponse>
|
|
1136
|
+
rescue Zyphr::ApiError => e
|
|
1137
|
+
puts "Error when calling SubscribersApi->set_subscriber_preferences_with_http_info: #{e}"
|
|
1138
|
+
end
|
|
1139
|
+
```
|
|
1140
|
+
|
|
1141
|
+
### Parameters
|
|
1142
|
+
|
|
1143
|
+
| Name | Type | Description | Notes |
|
|
1144
|
+
| ---- | ---- | ----------- | ----- |
|
|
1145
|
+
| **id** | **String** | | |
|
|
1146
|
+
| **set_preferences_request** | [**SetPreferencesRequest**](SetPreferencesRequest.md) | | |
|
|
1147
|
+
|
|
1148
|
+
### Return type
|
|
1149
|
+
|
|
1150
|
+
[**PreferenceListResponse**](PreferenceListResponse.md)
|
|
1151
|
+
|
|
1152
|
+
### Authorization
|
|
1153
|
+
|
|
1154
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1155
|
+
|
|
1156
|
+
### HTTP request headers
|
|
1157
|
+
|
|
1158
|
+
- **Content-Type**: application/json
|
|
1159
|
+
- **Accept**: application/json
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
## unsubscribe_subscriber
|
|
1163
|
+
|
|
1164
|
+
> <UnsubscribeResponse> unsubscribe_subscriber(id, opts)
|
|
1165
|
+
|
|
1166
|
+
Unsubscribe from a channel
|
|
1167
|
+
|
|
1168
|
+
### Examples
|
|
1169
|
+
|
|
1170
|
+
```ruby
|
|
1171
|
+
require 'time'
|
|
1172
|
+
require 'zyphr'
|
|
1173
|
+
# setup authorization
|
|
1174
|
+
Zyphr.configure do |config|
|
|
1175
|
+
# Configure API key authorization: ApiKeyAuth
|
|
1176
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
1177
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1178
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
1179
|
+
end
|
|
1180
|
+
|
|
1181
|
+
api_instance = Zyphr::SubscribersApi.new
|
|
1182
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
1183
|
+
opts = {
|
|
1184
|
+
unsubscribe_request: Zyphr::UnsubscribeRequest.new # UnsubscribeRequest |
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
begin
|
|
1188
|
+
# Unsubscribe from a channel
|
|
1189
|
+
result = api_instance.unsubscribe_subscriber(id, opts)
|
|
1190
|
+
p result
|
|
1191
|
+
rescue Zyphr::ApiError => e
|
|
1192
|
+
puts "Error when calling SubscribersApi->unsubscribe_subscriber: #{e}"
|
|
1193
|
+
end
|
|
1194
|
+
```
|
|
1195
|
+
|
|
1196
|
+
#### Using the unsubscribe_subscriber_with_http_info variant
|
|
1197
|
+
|
|
1198
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1199
|
+
|
|
1200
|
+
> <Array(<UnsubscribeResponse>, Integer, Hash)> unsubscribe_subscriber_with_http_info(id, opts)
|
|
1201
|
+
|
|
1202
|
+
```ruby
|
|
1203
|
+
begin
|
|
1204
|
+
# Unsubscribe from a channel
|
|
1205
|
+
data, status_code, headers = api_instance.unsubscribe_subscriber_with_http_info(id, opts)
|
|
1206
|
+
p status_code # => 2xx
|
|
1207
|
+
p headers # => { ... }
|
|
1208
|
+
p data # => <UnsubscribeResponse>
|
|
1209
|
+
rescue Zyphr::ApiError => e
|
|
1210
|
+
puts "Error when calling SubscribersApi->unsubscribe_subscriber_with_http_info: #{e}"
|
|
1211
|
+
end
|
|
1212
|
+
```
|
|
1213
|
+
|
|
1214
|
+
### Parameters
|
|
1215
|
+
|
|
1216
|
+
| Name | Type | Description | Notes |
|
|
1217
|
+
| ---- | ---- | ----------- | ----- |
|
|
1218
|
+
| **id** | **String** | | |
|
|
1219
|
+
| **unsubscribe_request** | [**UnsubscribeRequest**](UnsubscribeRequest.md) | | [optional] |
|
|
1220
|
+
|
|
1221
|
+
### Return type
|
|
1222
|
+
|
|
1223
|
+
[**UnsubscribeResponse**](UnsubscribeResponse.md)
|
|
1224
|
+
|
|
1225
|
+
### Authorization
|
|
1226
|
+
|
|
1227
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1228
|
+
|
|
1229
|
+
### HTTP request headers
|
|
1230
|
+
|
|
1231
|
+
- **Content-Type**: application/json
|
|
1232
|
+
- **Accept**: application/json
|
|
1233
|
+
|
|
1234
|
+
|
|
1235
|
+
## update_category
|
|
1236
|
+
|
|
1237
|
+
> <CategoryResponse> update_category(id, update_category_request)
|
|
1238
|
+
|
|
1239
|
+
Update a category
|
|
1240
|
+
|
|
1241
|
+
### Examples
|
|
1242
|
+
|
|
1243
|
+
```ruby
|
|
1244
|
+
require 'time'
|
|
1245
|
+
require 'zyphr'
|
|
1246
|
+
# setup authorization
|
|
1247
|
+
Zyphr.configure do |config|
|
|
1248
|
+
# Configure API key authorization: ApiKeyAuth
|
|
1249
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
1250
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1251
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
1252
|
+
end
|
|
1253
|
+
|
|
1254
|
+
api_instance = Zyphr::SubscribersApi.new
|
|
1255
|
+
id = 'id_example' # String |
|
|
1256
|
+
update_category_request = Zyphr::UpdateCategoryRequest.new # UpdateCategoryRequest |
|
|
1257
|
+
|
|
1258
|
+
begin
|
|
1259
|
+
# Update a category
|
|
1260
|
+
result = api_instance.update_category(id, update_category_request)
|
|
1261
|
+
p result
|
|
1262
|
+
rescue Zyphr::ApiError => e
|
|
1263
|
+
puts "Error when calling SubscribersApi->update_category: #{e}"
|
|
1264
|
+
end
|
|
1265
|
+
```
|
|
1266
|
+
|
|
1267
|
+
#### Using the update_category_with_http_info variant
|
|
1268
|
+
|
|
1269
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1270
|
+
|
|
1271
|
+
> <Array(<CategoryResponse>, Integer, Hash)> update_category_with_http_info(id, update_category_request)
|
|
1272
|
+
|
|
1273
|
+
```ruby
|
|
1274
|
+
begin
|
|
1275
|
+
# Update a category
|
|
1276
|
+
data, status_code, headers = api_instance.update_category_with_http_info(id, update_category_request)
|
|
1277
|
+
p status_code # => 2xx
|
|
1278
|
+
p headers # => { ... }
|
|
1279
|
+
p data # => <CategoryResponse>
|
|
1280
|
+
rescue Zyphr::ApiError => e
|
|
1281
|
+
puts "Error when calling SubscribersApi->update_category_with_http_info: #{e}"
|
|
1282
|
+
end
|
|
1283
|
+
```
|
|
1284
|
+
|
|
1285
|
+
### Parameters
|
|
1286
|
+
|
|
1287
|
+
| Name | Type | Description | Notes |
|
|
1288
|
+
| ---- | ---- | ----------- | ----- |
|
|
1289
|
+
| **id** | **String** | | |
|
|
1290
|
+
| **update_category_request** | [**UpdateCategoryRequest**](UpdateCategoryRequest.md) | | |
|
|
1291
|
+
|
|
1292
|
+
### Return type
|
|
1293
|
+
|
|
1294
|
+
[**CategoryResponse**](CategoryResponse.md)
|
|
1295
|
+
|
|
1296
|
+
### Authorization
|
|
1297
|
+
|
|
1298
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1299
|
+
|
|
1300
|
+
### HTTP request headers
|
|
1301
|
+
|
|
1302
|
+
- **Content-Type**: application/json
|
|
1303
|
+
- **Accept**: application/json
|
|
1304
|
+
|
|
1305
|
+
|
|
1306
|
+
## update_subscriber
|
|
1307
|
+
|
|
1308
|
+
> <SubscriberResponse> update_subscriber(id, update_subscriber_request)
|
|
1309
|
+
|
|
1310
|
+
Update a subscriber
|
|
1311
|
+
|
|
1312
|
+
### Examples
|
|
1313
|
+
|
|
1314
|
+
```ruby
|
|
1315
|
+
require 'time'
|
|
1316
|
+
require 'zyphr'
|
|
1317
|
+
# setup authorization
|
|
1318
|
+
Zyphr.configure do |config|
|
|
1319
|
+
# Configure API key authorization: ApiKeyAuth
|
|
1320
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
1321
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1322
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
1323
|
+
end
|
|
1324
|
+
|
|
1325
|
+
api_instance = Zyphr::SubscribersApi.new
|
|
1326
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
1327
|
+
update_subscriber_request = Zyphr::UpdateSubscriberRequest.new # UpdateSubscriberRequest |
|
|
1328
|
+
|
|
1329
|
+
begin
|
|
1330
|
+
# Update a subscriber
|
|
1331
|
+
result = api_instance.update_subscriber(id, update_subscriber_request)
|
|
1332
|
+
p result
|
|
1333
|
+
rescue Zyphr::ApiError => e
|
|
1334
|
+
puts "Error when calling SubscribersApi->update_subscriber: #{e}"
|
|
1335
|
+
end
|
|
1336
|
+
```
|
|
1337
|
+
|
|
1338
|
+
#### Using the update_subscriber_with_http_info variant
|
|
1339
|
+
|
|
1340
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1341
|
+
|
|
1342
|
+
> <Array(<SubscriberResponse>, Integer, Hash)> update_subscriber_with_http_info(id, update_subscriber_request)
|
|
1343
|
+
|
|
1344
|
+
```ruby
|
|
1345
|
+
begin
|
|
1346
|
+
# Update a subscriber
|
|
1347
|
+
data, status_code, headers = api_instance.update_subscriber_with_http_info(id, update_subscriber_request)
|
|
1348
|
+
p status_code # => 2xx
|
|
1349
|
+
p headers # => { ... }
|
|
1350
|
+
p data # => <SubscriberResponse>
|
|
1351
|
+
rescue Zyphr::ApiError => e
|
|
1352
|
+
puts "Error when calling SubscribersApi->update_subscriber_with_http_info: #{e}"
|
|
1353
|
+
end
|
|
1354
|
+
```
|
|
1355
|
+
|
|
1356
|
+
### Parameters
|
|
1357
|
+
|
|
1358
|
+
| Name | Type | Description | Notes |
|
|
1359
|
+
| ---- | ---- | ----------- | ----- |
|
|
1360
|
+
| **id** | **String** | | |
|
|
1361
|
+
| **update_subscriber_request** | [**UpdateSubscriberRequest**](UpdateSubscriberRequest.md) | | |
|
|
1362
|
+
|
|
1363
|
+
### Return type
|
|
1364
|
+
|
|
1365
|
+
[**SubscriberResponse**](SubscriberResponse.md)
|
|
1366
|
+
|
|
1367
|
+
### Authorization
|
|
1368
|
+
|
|
1369
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1370
|
+
|
|
1371
|
+
### HTTP request headers
|
|
1372
|
+
|
|
1373
|
+
- **Content-Type**: application/json
|
|
1374
|
+
- **Accept**: application/json
|
|
1375
|
+
|
|
1376
|
+
|
|
1377
|
+
## withdraw_subscriber_consent
|
|
1378
|
+
|
|
1379
|
+
> <ConsentWithdrawResponse> withdraw_subscriber_consent(id, opts)
|
|
1380
|
+
|
|
1381
|
+
Withdraw subscriber consent
|
|
1382
|
+
|
|
1383
|
+
Withdraw consent for a subscriber (GDPR right to withdraw).
|
|
1384
|
+
|
|
1385
|
+
### Examples
|
|
1386
|
+
|
|
1387
|
+
```ruby
|
|
1388
|
+
require 'time'
|
|
1389
|
+
require 'zyphr'
|
|
1390
|
+
# setup authorization
|
|
1391
|
+
Zyphr.configure do |config|
|
|
1392
|
+
# Configure API key authorization: ApiKeyAuth
|
|
1393
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
1394
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1395
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
1396
|
+
end
|
|
1397
|
+
|
|
1398
|
+
api_instance = Zyphr::SubscribersApi.new
|
|
1399
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
1400
|
+
opts = {
|
|
1401
|
+
withdraw_subscriber_consent_request: Zyphr::WithdrawSubscriberConsentRequest.new # WithdrawSubscriberConsentRequest |
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
begin
|
|
1405
|
+
# Withdraw subscriber consent
|
|
1406
|
+
result = api_instance.withdraw_subscriber_consent(id, opts)
|
|
1407
|
+
p result
|
|
1408
|
+
rescue Zyphr::ApiError => e
|
|
1409
|
+
puts "Error when calling SubscribersApi->withdraw_subscriber_consent: #{e}"
|
|
1410
|
+
end
|
|
1411
|
+
```
|
|
1412
|
+
|
|
1413
|
+
#### Using the withdraw_subscriber_consent_with_http_info variant
|
|
1414
|
+
|
|
1415
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1416
|
+
|
|
1417
|
+
> <Array(<ConsentWithdrawResponse>, Integer, Hash)> withdraw_subscriber_consent_with_http_info(id, opts)
|
|
1418
|
+
|
|
1419
|
+
```ruby
|
|
1420
|
+
begin
|
|
1421
|
+
# Withdraw subscriber consent
|
|
1422
|
+
data, status_code, headers = api_instance.withdraw_subscriber_consent_with_http_info(id, opts)
|
|
1423
|
+
p status_code # => 2xx
|
|
1424
|
+
p headers # => { ... }
|
|
1425
|
+
p data # => <ConsentWithdrawResponse>
|
|
1426
|
+
rescue Zyphr::ApiError => e
|
|
1427
|
+
puts "Error when calling SubscribersApi->withdraw_subscriber_consent_with_http_info: #{e}"
|
|
1428
|
+
end
|
|
1429
|
+
```
|
|
1430
|
+
|
|
1431
|
+
### Parameters
|
|
1432
|
+
|
|
1433
|
+
| Name | Type | Description | Notes |
|
|
1434
|
+
| ---- | ---- | ----------- | ----- |
|
|
1435
|
+
| **id** | **String** | | |
|
|
1436
|
+
| **withdraw_subscriber_consent_request** | [**WithdrawSubscriberConsentRequest**](WithdrawSubscriberConsentRequest.md) | | [optional] |
|
|
1437
|
+
|
|
1438
|
+
### Return type
|
|
1439
|
+
|
|
1440
|
+
[**ConsentWithdrawResponse**](ConsentWithdrawResponse.md)
|
|
1441
|
+
|
|
1442
|
+
### Authorization
|
|
1443
|
+
|
|
1444
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth)
|
|
1445
|
+
|
|
1446
|
+
### HTTP request headers
|
|
1447
|
+
|
|
1448
|
+
- **Content-Type**: application/json
|
|
1449
|
+
- **Accept**: application/json
|
|
1450
|
+
|