Sha256: e6188f6b374fbad853b4e1cfd58647f93d9c363a1c2a8c9117bfb44804acd347
Contents?: true
Size: 504 Bytes
Versions: 3
Compression:
Stored size: 504 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 def self.generate_csv(email) HTTParty.post("https://api2.navihq.com/generate_csv_input?email=#{email}") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
navi_client-1.3.0 | lib/http_service/naviai.rb |
navi_client-1.2.9 | lib/http_service/naviai.rb |
navi_client-1.2.8 | lib/http_service/naviai.rb |