Sha256: c60645323d3a0441e4013c905b771d81d3900c9ba13fc320dc449e28fb44225e
Contents?: true
Size: 427 Bytes
Versions: 1
Compression:
Stored size: 427 Bytes
Contents
require "httparty" module HTTPService class NaviAI def self.start(file_path, client_type, token, current_user=nil) go_url = 'http://localhost:9090/v2/metas' if client_type == 'cloud' go_url = 'http://34.214.134.104:9090/v2/metas' end HTTParty.post(go_url, body: { client_type: client_type, list_meta_path: file_path, token: token, current_user: current_user }.to_json) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
navi_client-1.1.6 | lib/http_service/naviai.rb |