By default, the response doesn’t include the scores of the event leaderboards. To have the response returning with the scores, set the boolean with_scores on the request to true.
constfill_Request=newEventLeaderboardDebugFillRequest();fill_Request.id="leaderboard_1";fill_Request.target_count=50;// Optional target cohort size to fill to, otherwise fill to the max cohort size.
constscores_Request=newEventLeaderboardDebugRandomScoresRequest();scores_Request.id="leaderboard_1";scores_Request.min="1";scores_Request.max="100";scores_Request.subscore_min="1";scores_Request.subscore_max="100";// Fills cohort with debug players
constfill_Leaderboard=awaithiroClient.eventLeaderboardDebugFill(session,fill_Request);console.log(fill_Leaderboard);// Sets randomly generated scores between a range for other players (does not change the user's score)
constscores_Leaderboard=awaithiroClient.eventLeaderboardDebugRandomScores(session,scores_Request);console.log(scores_Leaderboard);// Removes user from their current cohort, allowing re-enrollment
constunenroll_Request=newEventLeaderboardDebugUnenrollRequest();unenroll_Request.id="leaderboard_1";constunenroll_Leaderboard=awaithiroClient.eventLeaderboardDebugUnenroll(session,unenroll_Request);console.log(unenroll_Leaderboard);