@orange-games/rating

0.0.1 • Public • Published

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.

/@orange-games/rating/

    Package Sidebar

    Install

    npm i @orange-games/rating

    Weekly Downloads

    1

    Version

    0.0.1

    License

    ISC

    Unpacked Size

    7.4 kB

    Total Files

    4

    Last publish

    Collaborators

    • alebles
    • fbrq
    • zbart