File tree 2 files changed +4
-2
lines changed 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ module.exports = {
33
33
34
34
// the Topcoder v5 url
35
35
TC_API : process . env . TC_API || 'https://api.topcoder-dev.com/v5' ,
36
+ // the Topcoder Beta API url currently v5.1
37
+ TC_BETA_API : process . env . TC_BETA_API || 'https://api.topcoder-dev.com/v5.1' ,
36
38
// the organization id
37
39
ORG_ID : process . env . ORG_ID || '36ed815b-3da1-49f1-a043-aaed0a4e81ad' ,
38
40
// the referenced taxonomy id
Original file line number Diff line number Diff line change @@ -1226,7 +1226,7 @@ async function getTopcoderSkills (criteria) {
1226
1226
const token = await getM2MUbahnToken ( )
1227
1227
try {
1228
1228
const res = await request
1229
- . get ( `${ config . TC_API } /skills` )
1229
+ . get ( `${ config . TC_BETA_API } /skills` )
1230
1230
. query ( {
1231
1231
taxonomyId : config . TOPCODER_TAXONOMY_ID ,
1232
1232
...criteria
@@ -1278,7 +1278,7 @@ async function getAllTopcoderSkills (criteria) {
1278
1278
async function getSkillById ( skillId ) {
1279
1279
const token = await getM2MUbahnToken ( )
1280
1280
const res = await request
1281
- . get ( `${ config . TC_API } /skills/${ skillId } ` )
1281
+ . get ( `${ config . TC_BETA_API } /skills/${ skillId } ` )
1282
1282
. set ( 'Authorization' , `Bearer ${ token } ` )
1283
1283
. set ( 'Content-Type' , 'application/json' )
1284
1284
. set ( 'Accept' , 'application/json' )
You can’t perform that action at this time.
0 commit comments