Manage User
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.Save()
method.
Here’s a list of all edit methods:
< !— vale Google.Spacing = NO >
After calling
Add/Remove/Unset
methods, don’t forget to calluser.Save()
since user edit is async update and the changes will be sent to SuprSend only after calling this method.< !— vale Google.Spacing = YES >
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.
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