Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit f23cc56

Browse files
committed
v4?
1 parent 3d26cc6 commit f23cc56

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

utils/topcoder-api-helper.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,14 @@ let cachedAccessToken;
3838

3939
// Init the API instances
4040
const projectsClient = topcoderApiProjects.ApiClient.instance;
41-
4241
let challengesClient = topcoderApiChallenges.ApiClient.instance;
43-
challengesClient.timeout=240000;
42+
challengesClient.timeout=480000;
4443

4544
const bearer = projectsClient.authentications.bearer;
4645
bearer.apiKeyPrefix = 'Bearer';
4746
challengesClient.authentications.bearer = bearer;
47+
challengesClient.basePath = = 'http://api.topcoder.com/v4'.replace(/\/+$/, '');
48+
4849
const projectsApiInstance = new topcoderApiProjects.DefaultApi();
4950
const challengesApiInstance = new topcoderApiChallenges.DefaultApi();
5051

0 commit comments

Comments
 (0)