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

Version Path
navi_client-1.2.7 lib/http_service/naviai.rb
navi_client-1.2.6 lib/http_service/naviai.rb
navi_client-1.2.5 lib/http_service/naviai.rb
navi_client-1.2.4 lib/http_service/naviai.rb
navi_client-1.2.3 lib/http_service/naviai.rb
navi_client-1.2.2 lib/http_service/naviai.rb
navi_client-1.2.1 lib/http_service/naviai.rb
navi_client-1.2.0 lib/http_service/naviai.rb
navi_client-1.1.9 lib/http_service/naviai.rb
navi_client-1.1.8 lib/http_service/naviai.rb
navi_client-1.1.7 lib/http_service/naviai.rb
navi_client-1.1.5 lib/http_service/naviai.rb