module YunTongXun::Voice

Public Class Methods

cancel_call(params) click to toggle source

取消回拨

# File lib/yuntongxun_api/voice.rb, line 25
def cancel_call(params)
  @accounts = 'Accounts'
  @method   = 'Calls/CallCancel'
  params[:appId] = params[:appId] || YunTongXun.config.app_id

  response = get_response(params)
end
double_call(params) click to toggle source

电话回拨

# File lib/yuntongxun_api/voice.rb, line 17
def double_call(params)
  @accounts = 'SubAccounts'
  @method   = 'Calls/Callback'

  response = get_response(params)
end
landing_call(params) click to toggle source

外呼通知

# File lib/yuntongxun_api/voice.rb, line 34
def landing_call(params)
  @accounts = 'Accounts'
  @method   = 'Calls/LandingCalls'
  params[:appId] = params[:appId] || YunTongXun.config.app_id

  response = get_response(params)
end
voice_verify(params) click to toggle source

语音验证

# File lib/yuntongxun_api/voice.rb, line 8
def voice_verify(params)
  @accounts = 'Accounts'
  @method   = 'Calls/VoiceVerify'
  params[:appId] = params[:appId] || YunTongXun.config.app_id

  response = get_response(params)
end