Skip to main content

Sport game start

Request

URI: /start?{parameters}

Example usage: https://{base_url}/start?{parameters}

The request is executed using the GET method.

To start the game, you need to send a request to Fungamess, which will return certain data in the response, then initialize the script from the response and trigger the launcher on the page.
Application initialization is implemented through the BTRenderer JavaScript class. Thus, it is necessary to create this object before initializing the application.
Installing the BTRenderer script The script that partners receive from Fungamess via a link must be launched before any other steps.
Defining the container Afterwards, insert a containing element into the body section.

Example:

note

When defining the container, never use iframe and overflow: hidden | auto | scroll for the sport application container or any container higher in the DOM tree (parent div, body, html, etc.)

Whitelist The list of domains should be whitelisted.
wss://*.sptpub.com should be added to the Content-Security-Policy header of the HTML document or in the meta tag.

Request parameters

note

The request to start a sport game contains the same parameters as those used for starting casino games.
To see a list of request parameters, click here.

Response parameters

NameTypeRequiredDescription
jsUrlstringYesURL with the sport library
brandIdintegerYesBrand ID
tokenstringYesJWT token
themestringYesPlatform color theme
langstringYesPlatform language

Example of a successful response

Response: /start?{parameters}
{
"jsUrl": "https://example.com",
"brandId": 123,
"token": "JWT token",
"theme": "dark",
"lang": "en"
}