Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@azerion/rating

Package Overview
Dependencies
Maintainers
5
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azerion/rating

Rating system for Azerion

latest
npmnpm
Version
1.0.1
Version published
Maintainers
5
Created
Source

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.

FAQs

Package last updated on 18 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts