Sha256: e68d3ffeab07583d1b499171cfd0eca9f265a207185a5eb2d882d16b34993cea
Contents?: true
Size: 374 Bytes
Versions: 1
Compression:
Stored size: 374 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 = '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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
navi_client-1.1.4 | lib/http_service/naviai.rb |