module Alidayu::Voice
Constants
- METHOD_HASH
Public Class Methods
double_call(params)
click to toggle source
语音双呼 { caller_num: ”, caller_show_num: ”, called_num: ”, called_show_num: ” }
# File lib/alidayu/voice.rb, line 13 def double_call(params) params[:method] = METHOD_HASH[:voice_double_call] params[:session_time_out] = params.delete(:time_out) response = get_response(params) end
single_call(params)
click to toggle source
语音通知
{ called_num: '', called_show_num: '', voice_code: '' }
# File lib/alidayu/voice.rb, line 22 def single_call(params) params[:method] = METHOD_HASH[:voice_single_call] response = get_response(params) end