Class: BrazeRuby::API
- Inherits:
-
Object
- Object
- BrazeRuby::API
- Includes:
- Deprecated, Endpoints::EmailStatus, Endpoints::ScheduleMessages, Endpoints::SendMessages, Endpoints::TrackUsers
- Defined in:
- lib/braze_ruby/api.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
#braze_url ⇒ Object
readonly
Returns the value of attribute braze_url.
Instance Method Summary collapse
- #export_users(**payload) ⇒ Object
-
#initialize(api_key, braze_url) ⇒ API
constructor
A new instance of API.
- #list_segments ⇒ Object
Methods included from Endpoints::EmailStatus
#email_status, #email_status_service
Methods included from Endpoints::ScheduleMessages
Methods included from Endpoints::SendMessages
Methods included from Endpoints::TrackUsers
#track_attribute, #track_event, #track_purchase, #track_users
Methods included from Deprecated
#schedule_message, #send_message, #track
Constructor Details
#initialize(api_key, braze_url) ⇒ API
Returns a new instance of API.
26 27 28 29 |
# File 'lib/braze_ruby/api.rb', line 26 def initialize(api_key, braze_url) @api_key = api_key @braze_url = braze_url end |
Instance Attribute Details
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
24 25 26 |
# File 'lib/braze_ruby/api.rb', line 24 def api_key @api_key end |
#braze_url ⇒ Object (readonly)
Returns the value of attribute braze_url.
24 25 26 |
# File 'lib/braze_ruby/api.rb', line 24 def braze_url @braze_url end |
Instance Method Details
#export_users(**payload) ⇒ Object
16 17 18 |
# File 'lib/braze_ruby/api.rb', line 16 def export_users(**payload) BrazeRuby::REST::ExportUsers.new(braze_url).perform(api_key, payload) end |
#list_segments ⇒ Object
20 21 22 |
# File 'lib/braze_ruby/api.rb', line 20 def list_segments BrazeRuby::REST::ListSegments.new(braze_url).perform(api_key) end |