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 a certain data in the response, then init the script from the response and trigger the launcher on the page.
Application initialization is implemented throughout BTRenderer JavaScript class. Thus, it is necessary to create this object before initialization of the application.
Installing BTRenderer script The script, which partners receive from Fungamess via a link, must be launched before any other steps.
Defining container Afterwards, insert a containing element into the body section.

Example:

note

Defining container never use iframe and overflow: hidden | auto | scroll to sport application container and 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 into the header of Content-Security-Policy html doc or in the meta tag.

Request parameters

note

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

Response parameters

NameTypeRequiredDescription
jsUrlstringYesURL with 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"
}