Socialid.comments.getStream
From Social ID Developers
Revision as of 19:06, 3 June 2016 by Ramon.maciel (Talk | contribs)
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");