We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 480caef + a614212 commit 14c831fCopy full SHA for 14c831f
src/services/challenges.js
@@ -453,6 +453,18 @@ class ChallengesService {
453
});
454
}
455
456
+ /**
457
+ * Gets marathon matches of the specified user.
458
+ * @param {String} username User whose challenges we want to fetch.
459
+ * @param {Object} filters Optional.
460
+ * @param {Number} params Optional.
461
+ * @return {Promise} Resolves to the api response.
462
+ */
463
+ getUserMarathonMatches(username, filters, params) {
464
+ const endpoint = `/members/${username.toLowerCase()}/mms/`;
465
+ return this.private.getChallenges(endpoint, filters, params);
466
+ }
467
+
468
469
/**
470
* Gets SRM matches related to the user.
0 commit comments