Skip to content

Instantly share code, notes, and snippets.

@realStandal
Last active March 14, 2019 04:24
Show Gist options
  • Save realStandal/3176875bca6ee32edced680599350c47 to your computer and use it in GitHub Desktop.
Save realStandal/3176875bca6ee32edced680599350c47 to your computer and use it in GitHub Desktop.
CodersQuest sample leaderboard GET request response
{
"user_token": "123XYZ", // JWT generated when the player logs in (located in the header of the request put here to illustrate)
"username": "test", // Player name
"user_score": 2468, // Found by adding all the player's score of each indavidual project together
"user_proj_scores": [
{
"level": 1,
"score": 1234 // The score in a particular level is found by converting the player's remaining time on a level to miliseconds
},
{
"level": 2,
"score": 1234
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment