Class: ActFunc::Sms

Inherits:
Object
  • Object
show all
Defined in:
lib/act_func/sms.rb

Constant Summary collapse

URL =
"http://api.cnsms.cn/"

Class Method Summary collapse

Class Method Details

.send(uid, pwd, mobile, content) ⇒ Object



7
8
9
10
# File 'lib/act_func/sms.rb', line 7

def Sms.send(uid, pwd, mobile, content)
  response = Func.post(URL, {'ac' => "send", 'uid' => uid, 'pwd' => pwd, 'mobile' => mobile, 'content' => content})
  return response.body=="100"
end