Create, update, & manage user profiles and communication channels using NodeJS SDK methods.
distinct_id
. It’s best to map the same identifier in your DB with distinct_id
in SuprSend. Do not use identifiers that can be changed like email or phone number. You can view synced users by searching distinct_id
on Users page.
supr_client.user.get_instance
to instantiate user object.
user.save()
method.
Add User Channels
user.add_*
method to add user channels.Remove User Channels
user.remove_*
method(s) to remove user channels. These methods will detach provided value from the user profile in specified channel.Remove User Channels in bulk
Set Preferred Language
Set Preferred Timezone
Set
Parameters | type |
---|---|
key | string |
value | any |
Set Once
user.set
, except it will not override already existing property values. This is useful for properties like first_login_date.Append
Remove
Increment
Parameters | type |
---|---|
key | string |
value | number (+ or -) |
Unset
Parameters | type |
---|---|
keys | string |
add*/remove*/unset
methods, don’t forget to call the user.save()
request. the changes will be sent to SuprSend only after calling this method.bulk_users
instance. Use append()
on bulk_users
instance to add however-many-records to call in bulk.
limit
,before
,after
.
limit
,before
,after
.