braze.rb contains basic functionalities to interact with Braze endpoint.
Currently, we only include UserTracker module/class.
Beuty/Grooming update event: code
On beauty/grooming profile page, everytime user selects different option will trigger a request to update her/his profile. Right after new profile is updated, a post request to Braze user track endpoint will also be sent.
payload:
{
"api_key": "",
"events": [{
"external_id: "",
"properties": {},
"name": "BEAUTY_PROFILE_UPDATE_EVENT", // for grooming profile, should be "GROOMING_PROFILE_UPDATE_EVENT"
"time": "" //ISO-8601
}]
}