Sha256: d925010a811ca61d7c9612ab4fcf7fb132b51949d4fdb7e89e11e426f4786570
Contents?: true
Size: 565 Bytes
Versions: 3
Compression:
Stored size: 565 Bytes
Contents
require "httparty" module HTTPService class NaviAI def self.start(filepath:, client_id: nil, client_type:, token:, email:) 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_id: client_id, client_type: client_type, list_meta_path: filepath, token: token, email: email }.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.6 | lib/http_service/naviai.rb |
navi_client-1.3.5 | lib/http_service/naviai.rb |
navi_client-1.3.4 | lib/http_service/naviai.rb |