unsubscribeByMarker
Unsubscribe from events on a product. 🔐 This method requires authorization.
Description
Events.unsubscribeByMarker(
marker*,
productId*,
langCode,
threshold
);
Parameters schema
Schema
marker:* string
Event marker
example: test_event
productId:* string
Product id
example: 14
langCode: string
Language code
example: en_US
threshold: number
Threshold value for comparing numerical value
example: 0
Examples
Minimal example
const response = await Events.unsubscribeByMarker('test_event', 1);
Example with attributes
const response = await Events.unsubscribeByMarker('test_event', 1, 'en_US', 0);
Returns nothing if the unsubscription was successful.