Events and User methods
Trigger Events
You can trigger events from client to SuprSend using track
method. This can be used to trigger event-based workflows.
Returns: async -> APIResponse
Update User Profile
Returns: async -> APIResponse
Update User channels
Set user channel related information using following methods. Its recommended to use SuprSend’s Backend SDK’s to set user channels instead of Client SDK’s.
Update User properties
This is the list of available user update methods:
Set Timezone
Set Timezone
This method will set users timezone. Timezone value should be in IANA timezone format.
Set Language
Set Language
This method will set users preferred language. Language value should be in ISO 639-1 Alpha-2 format.
Set
Set
Set is used to set the custom user property or properties. If already property is already present value will be replaced.
Unset
Unset
This method will remove user property. To remove channel pass $email
, $sms
, $whatsapp
.
Append
Append
This method will add a value to the list for a given property.
Remove
Remove
This method will remove a value from the list for a given property.
SetOnce
SetOnce
This method is similar to set method but values once set cannot be updated.
Increment
Increment
Add the given amount to an existing user property. If the user does not already have the associated property, the amount will be added to zero. To reduce a property, provide a negative number as the value.
ss_
or $
are reserved and will be ignored.