Sha256: 5ac537df73fad545f6c9c3d74d6dbf8bb3b060716d0986442a0c6e298576106f
Contents?: true
Size: 381 Bytes
Versions: 12
Compression:
Stored size: 381 Bytes
Contents
require "httparty" module HTTPService class NaviAI def self.start(file_path, client_type, token) 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 }.to_json) end end end
Version data entries
12 entries across 12 versions & 1 rubygems