Sign in

JavaScript

SCILL provides a JavaScript class that maps REST-APIs and provides convenience functions.

Source Code

You can find the source code to our JavaScript SDK in our public Github repository: https://github.com/scillgame/scill-js. If you encounter any bugs or issues, please let us know in the Issues tab of Github.

NodeJS

Install SCILL JavaScript SDK in your NodeJS project via NPM:

npm install @scillgame/scill-js

In JavaScript, use the SDK like this:

const SCILL = require("@scillgame/scill-js");
const eventsApi = SCILL.getEventsApi("ai728S-1aSdgb9GP#R]Po[P!1Z(HSSTpdULDMUAlYX");

and in TypeScript:

import * as SCILL from '@scillgame/scill-js';
const eventsApi = SCILL.getEventsApi("ai728S-1aSdgb9GP#R]Po[P!1Z(HSSTpdULDMUAlYX");

Browser

We use browserify to create a browser version of the SCILL SDK to be consistent in our development pipeline and API documentation.

Just add this to the head of your HTML document:

<script type="text/javascript" src="https://scill-cdn.web.app/scill.js"></script>

And use it like this:

<script type="text/javascript">
    let eventsApi = SCILL.getEventsApi("ai728S-1aSdgb9GP#R]Po[P!1Z(HSSTpdULDMUAlYX");
</script>