Topic preferences
batchSDK(async api => {
const profile = await api.profile();
await profile.edit(editor => {
editor.setTopicPreferences(["technology", "finance"]) // null to erase
// Alternatively, partially update them with:
editor.addToTopicPreferences(["investing"])
editor.removeFromTopicPreferences(["travel"])
})
});batchSDK(api => {
api.profile().then(profile => {
profile.edit(editor => {
editor.setTopicPreferences(["technology", "finance"]) // null to erase
// Alternatively, partially update them with:
editor.addToTopicPreferences(["investing"])
editor.removeFromTopicPreferences(["travel"])
})
})
});Last updated

