Create, update, & manage objects and their subscriptions using NodeJS SDK.
Add Channels
object_ins.add_*
method(s) to add user channels in a profileRemove Channels
object_ins.remove_*
method(s) to remove channels from an object profileRemove Channels in bulk
object_ins.unset()
method on the object instance. The method accepts the channel key/s (a single key or list of keys)Set Preferred language
Set Preferred Timezone
Set
Parameters | Type | Description |
---|---|---|
arg1 | string/dictionary | Mandatory This param will be string in case where only single property needs to be created/updated. It will be a dictionary in cases where complex objects need to be set in object properties, like multiple properties, arrays, nested properties etc. Should not start with $ or ss_ |
arg2 | any | Optional This will be value that will be attached to key property. Not required in cases where first param is a dictionary. |
Set Once
object_ins.set
, except it will not overwrite existing property values. This is useful for properties like First login dateIncrement
Append
Remove
Unset
Parameters | Type | Description |
---|---|---|
key | string | This property provided will be deleted from object properties |
property_list | array[string] | If list is given all properties included in list will be removed. |
add_*/remove_*/unset
methods, don’t forget to call object_ins.save()
. On call of save(), SDK sends the request to SuprSend platform to update the Object Profile.object_type
. You can also pass listing options in the payload which includes limit
,before
,after