Casino API methods
Casino API General
Integration is performed through the implementation of API methods specified in the documentation.
The clients must integrate the following API methods on their side to interact with FUNGAMESS.
The Casino API methods section contains a list of casino games operating methods.
The section includes the following groups of methods:
Name | Description |
---|---|
Outbound Call API | HTTP requests from ThirdPartyPlatform to FUNGAMESS This section contains a list of requests that are necessary to obtain the data – required to work with the casino provider Requests are divided into single-action and multi-action types A single-action request is a request that works with one request and one response A multi-action request is a request that may work with one or more callbacks, in the response to it For example, a request to get the list of games or to start a game Get list games is a request with one action, Start game is a request with several response actions |
Callback API | HTTP requests from FUNGAMESS to ThirdPartyPlatform This section contains a list of requests, required to perform a certain action Requests are divided into callbacks when a request is received from the Client Platform or requests to check or change data Callbacks go through one request and response, when receiving a request from the Client Platform Callbacks to check or change data work the same way, but the initiator is FUNGAMESS For example, a callback at the start of the game and during betting Requests for the Start game, a Session check, Player details and Get balance callbacks are sent for generation of links Betting process would require a Move funds request to be sent to the Client Platform |
Notifications | HTTP requests from FUNGAMESS to ThirdPartyPlatform This section contains a list of requests required for notification of the Client Platform These requests notify about possible limits reach, maintenance or game restrictions |
API methods General
All API methods use one of the following link types:
Name | Description |
---|---|
base_url | The link that is used by ThirdPartyPlatform to contact FUNGAMESS to get or send the required information In order for a certain method to work, a method is added after base_url |
callback_url | The link that FUNGAMESS uses to contact ThirdPartyPlatformto get or send the required information In order for a certain method to work, a method is added after callback_url |
Some requests require authentication so that the party addressed with the request, could idenfity the sender.
For more information about request authentication, see here.
Please, contact tech support if you get errors listed in the table when API methods are used.
Main API methods for the game start
To start the game, methods from the Outbound Call API and Callback API groups will be required. The main methods, for starting games from the Outbound Call API group, are:
Name | Description |
---|---|
Get list providers | Get list of providers who's games will be displayed to players on the platform Getting the list of providers is optional |
Get list games | The game list is used to obtain a link for the launch of a particular game, as well as for the display of a games list to players on the platform |
Start Game | A method for retrieval of a link to the game The player's session status, registration and user balance are verified to obtain the URL link The link to the game is received if verification is successful |
The following methods from the Callback API are also required for the game start, in addition to the methods mentioned above:
Name | Description |
---|---|
Session check | Check of player's session, during the initialization of the game The session remains active, as long as the player is on the page If the session is active, the process of the game start continues |
Player details | Obtaining of user based data If the user is trying to play for the first time, FUNGAMESS registers a new user based on the playerDetails response |
Get balance | Obtained data is based on player's balance If a player has an active bonus, the balance would include both, real and bonus balance |
The following method is used to handle player transactions during the game:
Name | Description |
---|---|
Move funds | Request for Funds Movement This method is used to make transactions for bets placement, crediting winnings, etc |
The detailed process of the game launch and funds movement is shown in the diagram.
Our documentation contains methods for extension of the platform functionality, they work as an addition to basic methods required for initial launch. For example, methods for bonuses management, retrieval of games restrictions lists, etc.