Sha256: 3db1f617b1f3cee69daae619b454153d0942aacbbb866e5cb5812975d6e1c3ee
Contents?: true
Size: 347 Bytes
Versions: 2
Compression:
Stored size: 347 Bytes
Contents
module Ucpaas # sms client api module Sms def send_sms(app_id, tmp_id, mobile, *params) data = { templateSMS: { appId: app_id, templateId: tmp_id, to: mobile, param: params.flatten.map(&:to_s).join(',') } } post '/Messages/templateSMS.json', data end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ucpaas-0.1.4 | lib/ucpaas/sms.rb |
ucpaas-0.1.3 | lib/ucpaas/sms.rb |