class BrazeRuby::API

Attributes

api_key[R]
braze_url[R]
options[R]

Public Class Methods

new(api_key, braze_url, options = {}) click to toggle source
# File lib/braze_ruby/api.rb, line 46
def initialize(api_key, braze_url, options = {})
  @api_key = api_key
  @braze_url = braze_url
  @options = options
end

Public Instance Methods

export_users(**payload) click to toggle source
# File lib/braze_ruby/api.rb, line 36
def export_users(**payload)
  BrazeRuby::REST::ExportUsers.new(api_key, braze_url, options).perform(**payload)
end
list_segments() click to toggle source
# File lib/braze_ruby/api.rb, line 40
def list_segments
  BrazeRuby::REST::ListSegments.new(api_key, braze_url, options).perform
end