Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Parameter “render” defines how you wish to load the data. If you want “plug & play” solution, you are better to use emmbed code returned if render is “html”. You can further modify the response with adding custom css to the classes that are returned so you fit them to your own needs. If you want to build your own logic for frontend and only use data and get pusher key and channel, you can call with render “json” to recieve data in json with which to build and then use pusher credentials to listen to WebSocket events.

Request:

Code Block
languagejson
{
	"api_password": "xapitest",
	"api_login": "xapitest",
	"method": "getBiggestWinners",
	"device":"desktop",
	"render": "html",
	"currency": "EUR"
}

Response example:

Code Block
languagehtml
<div class="lbm-latestwinners item">
                    <div class="heading-title-container">
                        <div class="heading-title">BIG WINNERS</div>
                    </div>
                    <div class="lbmlw-cont"></div>
                </div><script id="data-lbm-cont" type="application/json" defer>[{"multiplier":733.3333333333334,"currencysymbol":"\u20ac","type":"big-win","playerusername":"z09*****","gameid":"126395","gamename":"Nine Tails","gamecategory":"habanero","created":1692601219,"amount":2200,"amount_f":"2,200","image":"\/media\/images\/slots\/small\/ha\/jpg\/ha-nine-tails.jpg"},{"multiplier":66.66666666666667,"currencysymbol":"\u20ac","type":"big-win","playerusername":"z09*****","gameid":"126395","gamename":"Nine Tails","gamecategory":"habanero","created":1692601211,"amount":200,"amount_f":"200","image":"\/media\/images\/slots\/small\/ha\/jpg\/ha-nine-tails.jpg"}]</script>
</script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js" defer>console.log('from regular');</script>
        
        <script src="https://dev-game-launch.pantaloo.com/media/js/GameHub_bigwins.js?<?=Html::version_js();?>" onload="GameHub_bigWins.init(fa359fa3a5a64a8701a1c4ff4392bd73fa**************bd73, '519b58f68fb7d714db3e51**************b3e','topwinners', 'en','.lbmbw-cont','.lbmlw-cont', false, 'https://dev-game-launch.pantaloo.com');" defer>console.log('from regular 2');</script>

Request:

Code Block
languagejson
{
	"api_password": "xapitest",
	"api_login": "xapitest",
	"method": "getBiggestWinners",
	"device":"desktop",
	"render": "json",
	"currency": "EUR"
}

Response example:

Code Block
languagejson
{
	"error": 0,
	"response": {
		"pusher_key": "519b58f68fb7d714db3e51**************b3e",
		"pusher_channel": "fa359fa3a5a64a8701a1c4ff4392bd73fa**************bd73",
		"data": [
			{
				"multiplier": 733.3333333333334,
				"currencysymbol": "€",
				"type": "big-win",
				"playerusername": "z09*****",
				"gameid": "126395",
				"gamename": "Nine Tails",
				"gamecategory": "habanero",
				"created": 1692601219,
				"amount": 2200,
				"amount_f": "2,200",
				"image": "\/media\/images\/slots\/small\/ha\/jpg\/ha-nine-tails.jpg"
			},
			{
				"multiplier": 66.66666666666667,
				"currencysymbol": "€",
				"type": "big-win",
				"playerusername": "z09*****",
				"gameid": "126395",
				"gamename": "Nine Tails",
				"gamecategory": "habanero",
				"created": 1692601211,
				"amount": 200,
				"amount_f": "200",
				"image": "\/media\/images\/slots\/small\/ha\/jpg\/ha-nine-tails.jpg"
			}
		]
	},
	"currency": "EUR"
}

...