Sha256: f6404eb2224f744f3183ae62a82c2b85c1d23650a03128c557da520d1143770f
Contents?: true
Size: 677 Bytes
Versions: 5
Compression:
Stored size: 677 Bytes
Contents
# frozen_string_literal: true module BrazeRuby module REST class ExportUsers < Base def perform(external_ids: nil, segment_id: nil, **options) return export_users_by_ids(external_ids, options) if external_ids export_users_by_segment(segment_id, options) if segment_id end private def export_users_by_ids(external_ids, options) http.post "/users/export/ids", { external_ids: external_ids }.merge(options) end def export_users_by_segment(segment_id, options) http.post "/users/export/segment", { segment_id: segment_id }.merge(options) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems