Skip to content

Instantly share code, notes, and snippets.

@realStandal
Last active March 14, 2019 04:23
Show Gist options
  • Save realStandal/6d1d6ff4b456ed5ff739f8d0715988ec to your computer and use it in GitHub Desktop.
Save realStandal/6d1d6ff4b456ed5ff739f8d0715988ec to your computer and use it in GitHub Desktop.
CodersQuest sample leaderboard PUT request
{
"user_token": "123XYZ", // JWT generated when the player logs in (located in the header of the request put here to illustrate)
"username": "test", // Players name
"character": "char_name", // Character used during a particular level
"user_score": 2468, // Found by adding all the player's score of each indavidual project together
"project": {
"level": 1, // Current level of the project (repeated from the path parameter)
"score": 1234, // Remaining time a player had with a particular level (in miliseconds)
},
"force_update": true // boolean to force the backend to update the held value for either the daily, weekly, or monthly high score
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment