Method: CtmSms::Session#get

Defined in:
lib/ctm_sms/session.rb

#get(params) ⇒ Object



17
18
19
20
21
22
23
24
# File 'lib/ctm_sms/session.rb', line 17

def get(params)
  uri.query = URI.encode_www_form(params)
  @response = Net::HTTP.get_response(uri)

  p response
  response.body
  # response.body if response.is_a?(Net::HTTPSuccess)
end