Class: Africastalking::Talk
- Inherits:
-
Connection
- Object
- Connection
- Africastalking::Talk
- Defined in:
- lib/africastalking/talk.rb
Class Method Summary collapse
- .fetch_queued_calls(phone_number, queue_name = nil) ⇒ Object
- .make_call(from, to) ⇒ Object
- .upload_file(url) ⇒ Object
Methods inherited from Connection
Class Method Details
.fetch_queued_calls(phone_number, queue_name = nil) ⇒ Object
11 12 13 |
# File 'lib/africastalking/talk.rb', line 11 def fetch_queued_calls(phone_number, queue_name=nil) post('/queueStatus', {"username" => Africastalking.config.username, "phoneNumbers" => phone_number, "queueName" => queue_name}) end |
.make_call(from, to) ⇒ Object
7 8 9 |
# File 'lib/africastalking/talk.rb', line 7 def make_call(from, to) post('/call', {"username" => Africastalking.config.username, 'from' => from, 'to' => to}) end |
.upload_file(url) ⇒ Object
15 16 17 |
# File 'lib/africastalking/talk.rb', line 15 def upload_file(url) post('/mediaUpload', {"username" => Africastalking.config.username, 'url' => url}) end |