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:
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
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
Name | Type | Required | Description |
---|---|---|---|
jsUrl | string | Yes | URL with 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"
}