We got nominated! Help us out and vote for GitHub as Best Bootstrapped Startup of 2008. (You can vote once a day.) [ hide ]

public
Rubygem
Description: Ruby wrapper for sending SMS messages via the mxtelecom gateway's HTTP API.
Clone URL: git://github.com/coderifous/mxtelecom_api.git
adding more logging
coderifous (author)
Thu Jun 26 11:01:30 -0700 2008
commit  993219c7bd1d3fc44800126dfa842754bdff18ca
tree    7b23badf17d95d68621d737a55ce1ae20b86a49a
parent  b19398a850e4d512a3b950b782aa1a8933d15365
...
28
29
30
31
 
 
32
33
 
 
34
35
36
...
28
29
30
 
31
32
33
34
35
36
37
38
39
0
@@ -28,9 +28,12 @@ module MxtelecomApi
0
     end
0
     
0
     def deliver_sms(phone_number, message, options={})
0
- response = Net::HTTP.get_response(sms_host, setup_sms_params(phone_number, message, options))
0
+ url_path = setup_sms_params(phone_number, message, options)
0
+ response = Net::HTTP.get_response(sms_host, url_path)
0
       if(respond_to?(:logger))
0
         logger.info("Sent SMS to #{user.mobile_phone_number}, with message '#{message}', got back \"#{response.body}\"")
0
+ logger.info("Host: #{sms_host}")
0
+ logger.info("URL: #{url_path}")
0
       end
0
       response
0
     end

Comments

    No one has commented yet.