Class: LoopsSdk::AudienceSegments

Inherits:
Base
  • Object
show all
Defined in:
lib/loops_sdk/audience_segments.rb

Class Method Summary collapse

Class Method Details

.get(audience_segment_id:) ⇒ Object



10
11
12
# File 'lib/loops_sdk/audience_segments.rb', line 10

def get(audience_segment_id:)
  make_request(method: :get, path: "v1/audience-segments/#{audience_segment_id}")
end

.list(perPage: 20, cursor: nil) ⇒ Object



6
7
8
# File 'lib/loops_sdk/audience_segments.rb', line 6

def list(perPage: 20, cursor: nil)
  make_request(method: :get, path: "v1/audience-segments", params: { perPage: perPage, cursor: cursor })
end