NotificationContent

NotificationContent

# new NotificationContent(contentMap)

Parameters:
Name Type Description
contentMap Object Content parameters
Properties
Name Type Attributes Default Description
text sring <optional>
Text
title sring <optional>
Title
mediaAttachment MediaAttachment <optional>
Attachment
templateName sring <optional>
Template name
templatePlaceholders Object.<string, string> <optional>
{} Template placeholders
action Action <optional>
Action
actionButtons Array.<NotificationButton> <optional>
[] Action buttons
customization NotificationCustomization <optional>
customization
badge NotificationBadge <optional>
badge

Methods

# (static) withTemplate(templateName) → {NotificationContent}

Creates a new NotificationContent instance from the template configured on the GetSocial Dashboard.
Parameters:
Name Type Description
templateName string Name of the template on the GetSocial Dashboard. Case-sensitive.
Returns:
New NotificationContent instance.
Type
NotificationContent

# (static) withText(text) → {NotificationContent}

Creates a new NotificationContent instance.
Parameters:
Name Type Description
text string Notification text.
Returns:
New NotificationContent instance.
Type
NotificationContent