We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b918dc commit 035c50cCopy full SHA for 035c50c
src/services/challenges.js
@@ -385,6 +385,17 @@ class ChallengesService {
385
return finalChallenge;
386
}
387
388
+ /**
389
+ * Gets challenge registrants from Topcoder API.
390
+ * @param {Number|String} challengeId
391
+ * @return {Promise} Resolves to the challenge registrants array.
392
+ */
393
+ async getChallengeRegistrants(challengeId) {
394
+ const challenge = await this.private.api.get(`/challenges/${challengeId}`)
395
+ .then(checkError).then(res => res.content);
396
+ return challenge.registrants;
397
+ }
398
+
399
/**
400
* Gets possible challenge subtracks.
401
* @return {Promise} Resolves to the array of subtrack names.
0 commit comments