How SuprSend identifies a User
SuprSend identifies users with immutabledistinct_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.
Create User
To create a new user or to update an existing user, you’ll have to fetch user instance. Callsupr_client.user.get_instance to instantiate user object.
Edit User
To Edit user, you need to first fetch user instance, call all the update methods and save changes usinguser.save() method.
Add User Channels
Add User Channels
Use
user.add_* method to add user channels.Remove User Channels
Remove User Channels
Use
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
Remove User Channels in bulk
This method will delete/unset all values in specified channel for user (ex: remove all emails attached to user).
Set Preferred Language
Set Preferred Language
If you want to send notification in user’s preferred language, you can set it by passing language code in this method. This is useful especially for the applications which offer vernacular or multi-lingual support.
Set Preferred Timezone
Set Preferred Timezone
You can set timezone of user using this method. Value for timezone must be from amongst the IANA timezones.
Set
Set
Set is used to set the custom user property or properties. The given key and value will be assigned to the user, overwriting an existing property with the same key if present.
Set Once
Set Once
Works just like
user.set, except it will not override already existing property values. This is useful for properties like first_login_date.Append
Append
This method will append a value to the list for a given property.
Remove
Remove
This method will remove a value from the list for a given property.
Increment
Increment
Add the given number to an existing property on the user. 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 for the value.
Unset
Unset
This will remove a property permanently from user properties.
Bulk Update Users
Bulk operations use UPSERT to create or update users. There isn’t any limit on number-of-records that can be added tobulk_users instance. Use .append() on bulk_users instance to add however-many-records to call in bulk.
Get user details
Delete user
Get list of objects subscribed by user
limit,before,after.
Get lists subscribed by user
limit,before,after.