I have a slot game template which is made in construct 2 game engine. I need you to do the following job. Connect to the api server to get the spins and balance. Thanks
RNG API Documentation
-----------------------------------
Overview:
-----------------------------
The RNG API consists of 2 major functions:
- READ function, results in JSON containing
- Game symbols
- Game lines
- Game payouts
- User balance
- SPIN function, results in JSON containing
- Spin result
- Information about wins
- Updated user balance
Technical:
-------------------------------
- URL - api.youlas.com/api3/game/read
- Parameters sent via POST
-- site_key - for multisite environment this is the key specifying which CRM to connect to
(code, use: 93ab6075cfd0b2 for development)
-- user_id - user ID of the player
(UUID, use: ba52216f-acd9-907c-d1a7-5641d0329e74)
-- user_token - user TOKEN code
(UUID, use: 68c4d628-d0f0-4efd-ad22-d2956758c119)
-- game_id - ID of the game requested
(UUID, use: 49e2a8ee-4944-3155-7d19-560cf4275ca1)
-- game_token - TOKEN of the game requested
(code, use: GameToken123)
- URL - api.youlas.com/api3/game/spin
- Parameters sent via POST in addition to parameters required for READ
-- lines - Number of lines for the bet
-- bet - Bet amount