Method: Segments#get_segments

Defined in:
lib/user/customer-data/segments.rb

#get_segments(options = nil, use_post = true) ⇒ Object

Get segments.

Get a collection of segments.

Parameters

options

(Hash) – List of Resource Collection Options shown above can be used as parameter.

use_post

(Boolean) – Variable to determine if the request is by ‘post’ or ‘get’ functions.

First Example

@data = @cxf_user.get_segments

Second Example

options = { fields: 'id, title', sort: '-id' }
@data = @cxf_user.get_segments(options)

Third Example

options = { fields: 'id, title', sort: '-id' }
@data = @cxf_user.get_segments(options, false)


25
26
27
# File 'lib/user/customer-data/segments.rb', line 25

def get_segments(options = nil, use_post = true)
  get_query_results('/customer-data/segments', options, use_post)
end