Class: Callcenter
- Inherits:
-
Object
- Object
- Callcenter
- Defined in:
- lib/call-center-api.rb
Class Method Summary collapse
- .call(callRequest, url) ⇒ RestClient::Response
-
.get_call_info(callIdCrm, url) ⇒ RestClient::Response
get call info from database including these fields callCrm, callId, ipPhone, callNumber, urlRecord, disposition, verb, timeRing, timeTalk, timeTotal.
Class Method Details
.call(callRequest, url) ⇒ RestClient::Response
18 19 20 |
# File 'lib/call-center-api.rb', line 18 def self.call(callRequest, url) return RestClient.post url, {'partner_id' => callRequest.partner_id, 'account_id' => callRequest.account_id, 'account_name' => callRequest.account_name, 'mobile_phone' => callRequest.mobile_phone}.to_json, {content_type: :json, accept: :json} end |
.get_call_info(callIdCrm, url) ⇒ RestClient::Response
get call info from database including these fields callCrm, callId, ipPhone, callNumber, urlRecord, disposition, verb, timeRing, timeTalk, timeTotal
11 12 13 |
# File 'lib/call-center-api.rb', line 11 def self.get_call_info(callIdCrm, url) return RestClient.get url, {:params => {'callIdCrm' => callIdCrm}} end |