Manage Users
This document will cover the methods to create a user or manage user profile within SuprSend
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 users.async_edit
method.
Here’s a list of all edit methods:
After calling add*/remove*/unset
methods, don’t forget to call users.async_edit()
since user edit is async update and the changes will be sent to SuprSend only after calling this method.
Bulk Update Users
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.
Bulk API supported in SDK version 0.2.0 and above:
Bulk API is supported in SuprSend python-sdk version 0.2.0 and above. If you are using an older version, please upgrade to the latest SDK version.
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?