Socialid.comments.getStream

From Social ID Developers
Jump to: navigation, search

Contents

Description

Initializes a Stream object to be used to render a Comments or a Ratings & Reviews widget. It's required to call socialid.login.init to unlock this function.

Usage

 socialid.comments.getStream(groupId, streamId)

Parameters

groupId required The identifier number of the Comments & Review group.
streamId optional The identifier string of the Comments & Review stream. If none is given, the page URL will be used as the default identifier.

Example

This example initializes a Stream object with group id "1" and stream id "productReviews123" and stores this object in a variable for later use:

 var stream = socialid.comments.getStream(1, "productReviews123");
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox