Class: Svix::MessageAttemptAPI

Inherits:
Object
  • Object
show all
Defined in:
lib/svix/message_attempt_api.rb

Instance Method Summary collapse

Constructor Details

#initialize(api_client) ⇒ MessageAttemptAPI

Returns a new instance of MessageAttemptAPI.



5
6
7
# File 'lib/svix/message_attempt_api.rb', line 5

def initialize(api_client)
  @api = MessageAttemptApi.new(api_client)
end

Instance Method Details

#expunge_content(app_id, msg_id, attempt_id) ⇒ Object



43
44
45
# File 'lib/svix/message_attempt_api.rb', line 43

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

#get(app_id, msg_id, attempt_id) ⇒ Object



23
24
25
# File 'lib/svix/message_attempt_api.rb', line 23

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

#list(app_id, msg_id, options = {}) ⇒ Object

DEPRECATED: Please use list_by_msg or list_by_endpoint instead.



10
11
12
13
# File 'lib/svix/message_attempt_api.rb', line 10

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

#list_attempted_destinations(app_id, msg_id, options = {}) ⇒ Object



35
36
37
# File 'lib/svix/message_attempt_api.rb', line 35

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

#list_attempted_messages(app_id, endpoint_id, options = {}) ⇒ Object



31
32
33
# File 'lib/svix/message_attempt_api.rb', line 31

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

#list_attempts_for_endpoint(app_id, endpoint_id, msg_id, options = {}) ⇒ Object



39
40
41
# File 'lib/svix/message_attempt_api.rb', line 39

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

#list_by_endpoint(app_id, endpoint_id, options = {}) ⇒ Object



19
20
21
# File 'lib/svix/message_attempt_api.rb', line 19

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

#list_by_msg(app_id, msg_id, options = {}) ⇒ Object



15
16
17
# File 'lib/svix/message_attempt_api.rb', line 15

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

#resend(app_id, msg_id, endpoint_id, options = {}) ⇒ Object



27
28
29
# File 'lib/svix/message_attempt_api.rb', line 27

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