Method: NaviClient::Cloud#send_request
- Defined in:
- lib/cloud/navi_cloud_client.rb
#send_request(in_filenames = []) ⇒ Object
send bulk request to navi-ai service with list of input files downloaded from imap server.
67 68 69 70 71 72 73 74 75 |
# File 'lib/cloud/navi_cloud_client.rb', line 67 def send_request(in_filenames = []) unless in_filenames.blank? download_path = config['s3_download_folder'] + "/" + @current_user_email filepath = download_path + "/inputs/" + (Time.now.to_f * 1000).to_s filename = upload_to_s3(filepath, in_filenames.join("\n")) HTTPService::NaviAI.start(filepath: filename, client_id: @id, client_type: @client_type, token: @token, email: @current_user_email) end end |