Class: YunTongXun::Calls

Inherits:
Service show all
Defined in:
lib/yuntongxun/service/calls.rb

Constant Summary collapse

CALLBACK =
"/Calls/Callback"

Instance Method Summary collapse

Methods inherited from Service

#base_url, #get_response, #headers, #initialize, #sign

Constructor Details

This class inherits a constructor from YunTongXun::Service

Instance Method Details

#callback(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/yuntongxun/service/calls.rb', line 5

def callback(options = {})
  header = headers(@sub_account_sid)
  sig = sign(@sub_account_sid, @sub_auth_token)
  path = "/#{@version}/SubAccounts/#{@sub_account_sid}/Calls/Callback?sig=#{sig}"
  get_response(header, options, path)
end