Sha256: 48b2063d524ec742c405cdbb0391b61369c0953e73d9b3c219166d0bb74260f1

Contents?: true

Size: 487 Bytes

Versions: 1

Compression:

Stored size: 487 Bytes

Contents

module Ucpaas
  # call client api
  module Call
    def dull_call(app_id, from_number, to_number, options = {})
      client = find_or_create_client(app_id, from_number)
      client_number = client['clientNumber']
      data = {
        callback: {
          appId: app_id,
          fromClient: client_number,
          to: to_number
        }.merge(options)
      }
      response = post('/Calls/callBack.json', data)
      response['resp']['callback']
    end

    private
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ucpaas-0.1.4 lib/ucpaas/call.rb