... this.me Docs Reactions

Module

Reactions

Methods to manage reactions for the `Me` class.

View Source modules/reactions.js, line 2

Methods

# static getReactions(reactions) → {Array}

Retrieve all reactions for the identity.
Parameters:
Name Type Description
reactions Array The reactions array to retrieve from.

View Source modules/reactions.js, line 30

The reactions array.
Array

# static react(reactions, type, target, contentopt)

Add a reaction to a target.
Parameters:
Name Type Attributes Default Description
reactions Array The reactions array to update.
type string The type of reaction (e.g., "like", "comment").
target string The target of the reaction (e.g., "PostID").
content string <optional>
null Additional content for the reaction (e.g., a comment).

View Source modules/reactions.js, line 16

If the type or target is invalid.
Error

By neurons.me