Method: Clickatell::API::CommandExecutor#execute
- Defined in:
- lib/clickatell/api/command_executor.rb
#execute(command_name, service, parameters = {}) ⇒ Object
Builds a command object and sends it using HTTP GET. Will output URLs as they are requested to stdout when debugging is enabled.
18 19 20 21 22 |
# File 'lib/clickatell/api/command_executor.rb', line 18 def execute(command_name, service, parameters={}) request_uri = command(command_name, service, parameters) puts "[debug] Sending request to #{request_uri}" if @debug get_response(request_uri).first end |