Hello Constructors!
I need some assistance with implementing this concept to Construct 3.
Actuallu i will catch accessToken, roundId and gameId (from query) when the game opens.
example info (for using):
"roundId": "623050765ae70f4af678e2a1",
"gameId": "6231e6bb7f94b624b3d570cb",
"accessToken": eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI2MjI4OTA4NTczMDM5MDk1MDM1NzU0NDkiLCJpYXQiOjE2NDg1NTUyNzN9.9ICtNHu0EfsmV5GqiVnC9vAhvMCVPeypdO-O5A4RrrA
will be sent with each point increase (put method):
example request:
const headers = {
'Content-Type': 'application/json',
'Authorization': accessToken will be here
};
const data = { roundId, gameId, score }
const response = await axios.put('http://appearncash.com/rounds/completeRoundGame', data, { headers });
The code which i wrote is something like in image 1, could you all please guide me me know how to resolve it?
Here is the link to download the code
https://drive.google.com/file/d/1WFx6wsY3NNLIrKh65A27VoHUf0p83yum/view?usp=sharing
Your response in this regard will highly be appreciated. Thanks in advance!