NetgamingLogo

UnfinishedGames() API

This API request enables the operator to get the game history of all the players for a given time period. For now, RGS API sends up to 30 minutes of data per request.

POST   /games/unfinished-games/

JSON

Content-Type: application/json
Host: https://test-api.netgaming.com/v1/
{
      "api_key": "1pghjl4v5apt2bks",
      "amount_type": "real",
    "player_id": "1",
    "game_type": "slots"
}
Parameters Type Description
api_key String API Key allocated to each frontend
amount_type String Mode using which game was played
player_id String Type of Game (eg: slots, table_games, scratch_cards)
game_type String Mode of Play
For Example: ‘real’ – when playing with real cash ‘freespins’ – when playing with promo_freespin
Response Example
{
   "unfinished_games": {
       "freespins": {
           "headers": ["game_name", "round_id", "amount_type", "num_spins", "spins_left", "timestamp"],
           "data": [
               ["Test Game Name-1", 1001, "real", 10, 10, "2019-07-23 17:20:57"],
               ["Test Game Name-1", 1002, "real", 10, 1, "2019-07-23 17:20:57"],
               ["Test Game Name-2", 1003, "real", 5, 5, "2019-07-23 17:20:57"]
           ]
       },
       "bonus_games": {
           "headers": ["game_name", "round_id", "amount_type", "num_picks", "num_user_picks", "timestamp"],
           "data": [
               ["Test Game Name-1", 1201, "real", 5, 0, "2019-07-23 17:20:57"],
               ["Test Game Name-1", 1202, "real", 1, 0, "2019-07-23 17:20:57"],
               ["Test Game Name-2", 1303, "real", 4, 3, "2019-07-23 17:20:57"]
           ]
       }
   }
}

 

 

 

 

Parameters Type Description
game_history JSON Object Key game_history contains the JSON object as value. Contains 2 keys ‘freespins’ and ‘bonus_games’
game_history[‘freespins’] JSON Object JSON Object with 2 keys freespins and data.
headers JSON List List of table headers
Game Name String Name of the game
Round ID Integer Round ID which triggered free-spins
Amount Type String Mode using which game was played
Num Spins Integer Number of spins initially awarded
Spins Left Integer Number of remaining spins
Date Time String Server UTC time game played at
data JSON List of Lists List of Lists of freespins
game_history[‘bonus_games’] JSON Object JSON Object with 2 keys bonus_games and data.
headers JSON List List of table headers
Game Name String Name of the game
Round ID Integer Round ID which triggered free-spins
Amount Type String Mode using which game was played
Num Picks Integer Number of picks initially awarded
Num of User Picks Integer Number of remaining picks
Date Time String Server UTC time game played at
data JSON List of Lists List of Lists of bonus games