Module: YunTongXun::Calls
- Defined in:
- lib/yun_tong_xun/calls.rb
Class Method Summary collapse
Class Method Details
.callback(from, to, options = {}) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/yun_tong_xun/calls.rb', line 9 def callback(from, to, = {}) opts = { sub_account_sid: YunTongXun.option_value(, 'sub_account_sid') || YunTongXun.config.sub_account_sid, sub_account_token: YunTongXun.option_value(, 'sub_account_token') || YunTongXun.config.sub_account_token, func: func, funcdes: 'Callback' } YunTongXun.http_post(opts, .merge(from: from, to: to)) end |
.func ⇒ Object
5 6 7 |
# File 'lib/yun_tong_xun/calls.rb', line 5 def func 'Calls' end |