npm install @scillgame/scill-js
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");
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:
And use it like this:
This diagram highlights the basic data flow and the connections between your application and SCILL.
The client backend is not necessarily required, but should be implemented for security reasons. It makes sure, that the API-Key is not exposed to clients.
SCILL consists of a variety of different APIs that handle different tasks.
SCILLClient class exists in most SCILL SDKs
and adds convenience functions and implements some basic logic for you.