This commit is contained in:
Myat Zin Wai Maw
2019-12-05 11:06:12 +06:30
parent cab37a6bfb
commit fabf3f613e
5 changed files with 46 additions and 33 deletions

View File

@@ -1,8 +1,8 @@
class VerifyNumber
class VerifyNumber
def self.send_message(phone, pin)
url = "http://smspoh.com/api/http/send?key=5QfyN0OtGsFXnOqwtpVAGZCyPGP28nbX_Nm_oPsUw2ybq714T_951ycz3Ypl5URA&message=Doemal,+Pin+Code:+"+pin.to_s+"&recipients="+ phone.to_s
url = "http://smspoh.com/api/http/send?key=5QfyN0OtGsFXnOqwtpVAGZCyPGP28nbX_Nm_oPsUw2ybq714T_951ycz3Ypl5URA&message=Local Kitchen,+Pin+Code:+"+pin.to_s+"&recipients="+ phone.to_s
begin
@result = HTTParty.get(url.to_str)