@orange-games/rating
v0.0.1
Published
Rating system for OrangeGames
Downloads
3
Readme
Rating System
This tool contains function to call the rating system end point.
Getting started
Lets start by installing the package, like most of the other package we will make use of NPM
npm install @orange-games/rating --save-dev
Now lets call get the tool in our project.
import Rating from '@orange-games/rating';
At last let's call the feature!
var rating = new Rating({
siteid: <SITE-ID>,
gameid: <GAME-ID>,
url: <URL>,
debug: false
});
note: all parameters are required.
To use the feature do the following:
rating._saveRating(currentVote, function (err, response) {
if (err) ...
});
note: Use the callback to get the response.