/Playerloop-javascript

Primary LanguageJavaScriptMIT LicenseMIT

PlayerLoop for javascript

PlayerLoop? What is it?

Playerloop is a tool to help you track player's feedback, bug reports. Go to https://app.playerloop.io/signup to register an account.

How do i use this?

First you need project key, you must create a PlayerLoop account in order to get it. Than include this in your website:

<script src = 'https://mebaddev.github.io/Playerloop-javascript/PlayerLoopAPI.js' defer></script>

Now you can send report with the code below:

// First you must initalize it with your key
init('YOUR TOKEN SECRET HERE')
// To send a report you create a playerData object
// Give it Player ID, Player's email, Player's Handle
// Note: Only Player ID is nesessary, you can leave others blank
let data = new playerData('Player ID','example@gmail.com','Player Handle','Player name');
// 'bug' at the middle is report type. it could only be one of 
createReport('Report Title','bug',data);

IMPORTANT: Your MUST make sure your user accept Playerloop's Privacy Policy before sending there data.