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:
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
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
Name | Type | Required | Description |
---|---|---|---|
jsUrl | string | Yes | URL with the sport library |
brandId | integer | Yes | Brand ID |
token | string | Yes | JWT token |
theme | string | Yes | Platform color theme |
lang | string | Yes | Platform language |
Example of a successful response
{
"jsUrl": "https://example.com",
"brandId": 123,
"token": "JWT token",
"theme": "dark",
"lang": "en"
}