Module: BurstSms::MessageResponses

Included in:
API
Defined in:
lib/burstsms/message_responses.rb

Defined Under Namespace

Classes: Replies, Response

Instance Method Summary collapse

Instance Method Details

#message_responses(message_id, offset = 0, limit = 50) ⇒ Object



6
7
8
9
# File 'lib/burstsms/message_responses.rb', line 6

def message_responses(message_id, offset=0, limit=50)
  response = post_to_api(message_responses_body(message_id, offset, limit))
  Response.parse(response.body)
end

#message_responses_body(message_id, offset, limit) ⇒ Object



11
12
13
14
15
# File 'lib/burstsms/message_responses.rb', line 11

def message_responses_body(message_id, offset, limit)
  build_request("messages.responses", :message_id => message_id,
                                      :offset => offset,
                                      :limit => limit )
end