Sha256: 1b671dc609b11f213319c38f9604c02a175432f6c4881f87c1897b768893336a
Contents?: true
Size: 539 Bytes
Versions: 1
Compression:
Stored size: 539 Bytes
Contents
require "httparty" module HTTPService class NaviAI def self.start(filepath:, client_id: nil, client_type:, token:, email:, is_last: false, email_count:) 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 }.to_json, timeout: 400) end def self.generate_csv(url, token) HTTParty.post(url, headers: {"Authorization": token}) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
navi_email_sync-0.0.2 | lib/http_service/naviai.rb |