Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
changed token api param name
  • Loading branch information
johntdyer committed Aug 11, 2011
1 parent 469c3f7 commit c3eec75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/helpers.rb
Expand Up @@ -8,7 +8,7 @@ def [] (*args)

def send_sms(opts={})
puts "Sending msg [ #{CGI.escape(opts[:msg])} ] => #{opts[:number_to_msg]}"
response = RestClient.get "http://api.tropo.com/1.0/sessions?action=create&token=#{TOKEN_ID}&user_number=#{opts[:number_to_msg]}&msg=#{CGI.escape(opts[:msg])}"
response = RestClient.get "http://api.tropo.com/1.0/sessions?action=create&token=#{TOKEN_ID}&number_to_msg=#{opts[:number_to_msg]}&msg=#{CGI.escape(opts[:msg])}"
if response.eql?(200)
puts "Msg sent HTTP/#{response.code}"
true
Expand Down

0 comments on commit c3eec75

Please sign in to comment.