Module: Cequens::Requests::SendSMSRequest

Defined in:
lib/cequens/requests/send_sms_request.rb

Constant Summary collapse

DEFAULTS =
{ messageType: 'text' }.freeze

Instance Method Summary collapse

Instance Method Details

#fire_requestObject



8
9
10
11
12
13
# File 'lib/cequens/requests/send_sms_request.rb', line 8

def fire_request
  cequens_api_response = Connection.post(request[:path], request[:params], request[:body], request[:options])
  response_body = JSON.parse(cequens_api_response.body)

  Response.new(response_body)
end