Sha256: fb9b8cb0dbcef933b57b49caa06a34c07d0b8f97142ac1fe800e3bac1ee9d21c
Contents?: true
Size: 706 Bytes
Versions: 4
Compression:
Stored size: 706 Bytes
Contents
module Mrkt module ImportLeads def import_lead(file, format = 'csv', lookup_field: nil, list_id: nil, partition_name: nil) params = { format: format, file: Faraday::UploadIO.new(file, 'text/csv') } optional = { lookupField: lookup_field, listId: list_id, partitionName: partition_name } post('/bulk/v1/leads.json', params, optional) end def import_lead_status(id) get("/bulk/v1/leads/batch/#{id}.json") end def import_lead_failures(id) get("/bulk/v1/leads/batch/#{id}/failures.json") end def import_lead_warnings(id) get("/bulk/v1/leads/batch/#{id}/warnings.json") end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mrkt-1.0.0 | lib/mrkt/concerns/import_leads.rb |
mrkt-0.11.1 | lib/mrkt/concerns/import_leads.rb |
mrkt-0.11.0 | lib/mrkt/concerns/import_leads.rb |
mrkt-0.10.0 | lib/mrkt/concerns/import_leads.rb |