Method: OpenLoad#remote_upload

Defined in:
lib/openload.rb

#remote_upload(url, folder = nil, headers = nil) ⇒ Object

This method make a upload of a link from the web Remember: You need a login and key api to use this method.



46
47
48
49
50
51
52
# File 'lib/openload.rb', line 46

def remote_upload(url, folder = nil , headers = nil)
  if is_logged?
    get_a_request_and_return_in_a_struct("/remotedl/add#{(true)}#{key_parameter}#{http_parameter('url', url)}#{http_parameter('folder',folder)}#{http_parameter('headers', headers)}")
  else
    raise "You need a login and a api key to make remote uploads!"
  end
end