Method: Mrkt::CrudCustomObjects#get_custom_objects

Defined in:
lib/mrkt/concerns/crud_custom_objects.rb

#get_custom_objects(name, input, filter_type: 'dedupeFields', fields: nil, next_page_token: nil, batch_size: nil) ⇒ Object



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/mrkt/concerns/crud_custom_objects.rb', line 35

def get_custom_objects(name, input, filter_type: 'dedupeFields', fields: nil, next_page_token: nil, batch_size: nil)
  post_json("/rest/v1/customobjects/#{name}.json?_method=GET") do
    params = {
      input: input,
      filterType: filter_type
    }

    optional = {
      fields: fields,
      nextPageToken: next_page_token,
      batchSize: batch_size
    }

    merge_params(params, optional)
  end
end