Sha256: df7d4462d443eac75f721503a0c6495b220ceb8178534a811ad6efda4e07fc2d

Contents?: true

Size: 584 Bytes

Versions: 4

Compression:

Stored size: 584 Bytes

Contents

require "httparty"

module HTTPService
  class NaviAI

    def self.start(filepath:, client_id: nil, client_type:, token:, email:, is_last: false, email_count: 0, total_emails:)
      go_url = "#{ENV['parser_url']}/v2/metas"
      HTTParty.post(go_url, body: { client_id: client_id, client_type: client_type, list_meta_path: filepath, token: token, email: email, is_last: is_last, email_count: email_count, total_emails: total_emails }.to_json, timeout: 400)
    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_email_sync-0.0.6 lib/http_service/naviai.rb
navi_email_sync-0.0.5 lib/http_service/naviai.rb
navi_email_sync-0.0.4 lib/http_service/naviai.rb
navi_email_sync-0.0.3 lib/http_service/naviai.rb