saveUserSubscriptions()

Overview

public void function saveUserSubscriptions(
      required string userId
    , required array  topics
)

Saves a users subscription preferences

Arguments

NameTypeRequiredDescription
userIdstringYesID of the user whose subscribed topics we want to save
topicsarrayYesArray of topics to subscribe to