magti 0.1.0.beta3 → 0.1.0.beta4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/magti/sms.rb +2 -2
- data/lib/magti/version.rb +1 -1
- metadata +1 -1
data/lib/magti/sms.rb
CHANGED
@@ -25,9 +25,9 @@ module Magti
|
|
25
25
|
raise ArgumentError, 'specify Magti.config(options) with :username, :password, :client and :service keys'
|
26
26
|
end
|
27
27
|
options = options.merge(:to => "995#{mobile}", :text => text)
|
28
|
-
|
28
|
+
http_resp = HTTParty.get(Magti::SMS_SEND_URL, options)
|
29
29
|
resp = Response.new
|
30
|
-
resp.code, resp.id =
|
30
|
+
resp.code, resp.id = http_resp.split(' - ')
|
31
31
|
resp
|
32
32
|
end
|
33
33
|
|
data/lib/magti/version.rb
CHANGED