Sha256: 85846707bdb1b43bc558d18217775fe25aedcecc908299e26cf9e4578789a34b

Contents?: true

Size: 1.65 KB

Versions: 50

Compression:

Stored size: 1.65 KB

Contents

# frozen_string_literal: true

module Svix
  class MessageAttemptAPI
    def initialize(api_client)
      @api = MessageAttemptApi.new(api_client)
    end

    # <b>DEPRECATED:</b> Please use <tt>list_by_msg</tt> or <tt>list_by_endpoint</tt> instead.
    def list(app_id, msg_id, options = {})
      warn "[DEPRECATION] `list` is deprecated.  Please use `list_by_msg` or `list_by_endpoint` instead."
      return self.list_by_msg(app_id, msg_id, options)
    end

    def list_by_msg(app_id, msg_id, options = {})
      return @api.v1_message_attempt_list_by_msg(app_id, msg_id, options)
    end

    def list_by_endpoint(app_id, endpoint_id, options = {})
      return @api.v1_message_attempt_list_by_endpoint(app_id, endpoint_id, options)
    end

    def get(app_id, msg_id, attempt_id)
      return @api.v1_message_attempt_get(app_id, msg_id, attempt_id)
    end

    def resend(app_id, msg_id, endpoint_id, options = {})
      return @api.v1_message_attempt_resend(app_id, msg_id, endpoint_id, options)
    end

    def list_attempted_messages(app_id, endpoint_id, options = {})
      return @api.v1_message_attempt_list_attempted_messages(app_id, endpoint_id, options)
    end

    def list_attempted_destinations(app_id, msg_id, options = {})
      return @api.v1_message_attempt_list_attempted_destinations(app_id, msg_id, options)
    end

    def list_attempts_for_endpoint(app_id, endpoint_id, msg_id, options = {})
      return @api.v1_message_attempt_list_by_endpoint_deprecated(app_id, msg_id, endpoint_id, options)
    end

    def expunge_content(app_id, msg_id, attempt_id)
      return @api.v1_message_attempt_expunge_content(app_id, msg_id, attempt_id)
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
svix-1.56.0 lib/svix/message_attempt_api.rb
svix-1.45.1 lib/svix/message_attempt_api.rb
svix-1.45.0 lib/svix/message_attempt_api.rb
svix-1.44.0 lib/svix/message_attempt_api.rb
svix-1.43.0 lib/svix/message_attempt_api.rb
svix-1.42.0 lib/svix/message_attempt_api.rb
svix-1.41.0 lib/svix/message_attempt_api.rb
svix-1.40.0 lib/svix/message_attempt_api.rb
svix-1.39.0 lib/svix/message_attempt_api.rb
svix-1.38.0 lib/svix/message_attempt_api.rb
svix-1.37.0 lib/svix/message_attempt_api.rb
svix-1.36.0 lib/svix/message_attempt_api.rb
svix-1.35.0 lib/svix/message_attempt_api.rb
svix-1.34.0 lib/svix/message_attempt_api.rb
svix-1.33.0 lib/svix/message_attempt_api.rb
svix-1.32.0 lib/svix/message_attempt_api.rb
svix-1.31.0 lib/svix/message_attempt_api.rb
svix-1.30.0 lib/svix/message_attempt_api.rb
svix-1.29.0 lib/svix/message_attempt_api.rb
svix-1.28.0 lib/svix/message_attempt_api.rb