Manage Users
This document will cover the methods to update user information like properties and channels
How Suprsend identifies a user
SuprSend identifies users with immutable 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.
Create user
To create a new user or to update an existing user, you’ll have to fetch user instance. Call supr_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 using user.save()
method.
Here’s a list of all edit methods:
After calling 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 API for updating multiple user profiles
To update multiple user profiles use Bulk API. There isn’t any limit on number-of-records that can be added to bulk_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
You can pass optional query parameters - limit
,before
,after
.
Get lists subscribed by user
You can pass optional query parameters - limit
,before
,after
.
Was this page helpful?