Sha256: 77fdffb199eac6c05c36f8d4a1fa2ed3989001149d4931434fa6a97aa76c1e6f

Contents?: true

Size: 549 Bytes

Versions: 4

Compression:

Stored size: 549 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(url, token)
      HTTParty.post(url, headers: {"Authorization": token})
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
navi_client-1.3.10 lib/http_service/naviai.rb
navi_client-1.3.9 lib/http_service/naviai.rb
navi_client-1.3.8 lib/http_service/naviai.rb
navi_client-1.3.7 lib/http_service/naviai.rb