1.0.1 • Published 4 years ago

@azerion/rating v1.0.1

Weekly downloads
2
License
ISC
Repository
-
Last release
4 years ago

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.