Last active
March 14, 2019 04:23
-
-
Save realStandal/df4dce0065381900db676d86d0039f37 to your computer and use it in GitHub Desktop.
CodersQuest sample leaderboard PUT request. Attempts to update all projects with the supplied scores.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"userToken": "123", // Held in the header but put here to illustrate | |
"username": "test", // Players name | |
"user_score": 2468, // Found by adding all the player's score of each indavidual project together | |
"projects": [ | |
{ | |
"level": 1, | |
"score": 1234, // Remaining time in miliseconds a player had on a level | |
"force_update": false // Boolean to force an update on the held daily, weekly, and monthly score | |
}, | |
{ | |
"level": 2, | |
"score": 1234, // Remaining time in miliseconds a player had on a level | |
"force_update": true // Boolean to force an update on the held daily, weekly, and monthly score | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment