@azerion/rating

Rating system for Azerion

Usage no npm install needed!

<script type="module">
  import azerionRating from 'https://cdn.skypack.dev/@azerion/rating';
</script>

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.