Method: XBMC::Remote#send_command
- Defined in:
- lib/xbmc/remote.rb
#send_command(method_name, params = {}) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/xbmc/remote.rb', line 11 def send_command(method_name, params={}) HTTParty.post(base_address, :body => {:id => get_id, :method => method_name, :params => params, :jsonrpc => "2.0",}.to_json, :headers => { 'Content-Type' => 'application/json' }, ) end |