buildRatingsCollection Site Method

Returns a Collection object instantiated as a Ratings type. Run create_or_update() from the Collection object to complete the build process.

Variable Type Description
title String The title for the Collection.
articleId String A unique article ID you chose to identify a Collection within your site.
url String The canonical absolute URL for this Collection.

Java Example

Collection collection = site.buildRatingsCollection(title, articleId, url);

NodeJS Example

var collection = site.buildRatingsCollection(title, articleId, url);

PHP Example

$collection = site->buildRatingsCollection(title, articleId, url);

Python Example

collection = site.build_ratings_collection(title, articleId, url)

Ruby Example

collection = site.build_ratings_collection(title, articleId, url)

On this page