API Load

Include the API

Include the Game API (game.js) in the <head> of your HTML game file. Typically the index.html.

After loading the game.js file, ensure you initialise with the SpilData variable (the ID you see below is specific to your game, ensure you get a unique number from Spil Games) then fully initialise the API using the LoadAPI function as seen below.