Sha256: 6152a47b8d497a52d8fd43c37627a89b41e17ba02037fd078fd993089b8ff255
Contents?: true
Size: 599 Bytes
Versions: 5
Compression:
Stored size: 599 Bytes
Contents
module Mrkt module CrudLists def get_leads_by_list(list_id, fields: nil, batch_size: nil, next_page_token: nil) params = {} params[:fields] = fields if fields params[:batchSize] = batch_size if batch_size params[:nextPageToken] = next_page_token if next_page_token get("/rest/v1/list/#{list_id}/leads.json", params) end def add_leads_to_list(list_id, lead_ids) post("/rest/v1/lists/#{list_id}/leads.json") do |req| params = { input: map_lead_ids(lead_ids) } json_payload(req, params) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems