Edit in JSFiddle

var SpilData = {
    id: '576742227280291016' // Replace with the value you receive from Spil Games
};

// First, load the API.
GameAPI.loadAPI(function (apiInstance) {

    // this is the award object that will be submitted to Spil Games
    // it should contain an award string value with the same value
    // as the one set on Spil Games' backend. For setting up the award
    // for you game contact the game producer handling your integration.
    var award = {award:'award1'};
    
    //submit the player's score
    GameAPI.Award.submit(award);
}, SpilData);