module BrazeAPI::Endpoints::Users::Identify

Methods to call the users/identify endpoint from a client instance

Constants

PATH

Public Instance Methods

identify(user_alias:, external_id:) click to toggle source

The main method calling the endpoint. Called with an object containing the user alias object and the external id of the user being identified.

# File lib/braze_api/endpoints/users/identify.rb, line 12
def identify(user_alias:, external_id:)
  post(
    PATH,
    params: { aliases_to_identify: [
      {
        external_id: external_id,
        user_alias: user_alias
      }
    ] }
  )
end