diff --git a/postman-script/upload-script.js b/postman-script/upload-script.js index 175ac2f..4fe0518 100644 --- a/postman-script/upload-script.js +++ b/postman-script/upload-script.js @@ -115,7 +115,7 @@ async function main() { try { const response = await getCollections(); for (let collection of response.collections) { - if (collection.name.includes(args[3])) { + if (collection.name.includes(args[3]) && collection.id == "b108a9b1-e5ec-4a83-b4f5-02fd7126bbfc") { console.log(collection); const response = await deleteCollection(collection.id); console.log(response); @@ -123,6 +123,7 @@ async function main() { } const upload = await uploadCollection(); console.log(upload); + fs.writeFileSync('postman/links/' + args[3].toLowerCase() + '-link.txt','https://god.gw.postman.com/run-collection/' + upload.collection.uid + '?action=collection%2Ffork&collection-url=entityId%3D' + upload.collection.uid + '%26entityType%3Dcollection%26workspaceId%3D80af54be-a333-4712-af5e-41aa9eccbdd0') } catch (error) { console.error(error); } diff --git a/postman/links/beta-link.txt b/postman/links/beta-link.txt new file mode 100644 index 0000000..097899e --- /dev/null +++ b/postman/links/beta-link.txt @@ -0,0 +1 @@ +https://god.gw.postman.com/run-collection/23226990-18091672-ede8-4a27-a1b8-251d4bda2da1?action=collection%2Ffork&collection-url=entityId%3D23226990-18091672-ede8-4a27-a1b8-251d4bda2da1%26entityType%3Dcollection%26workspaceId%3D80af54be-a333-4712-af5e-41aa9eccbdd0 \ No newline at end of file diff --git a/postman/links/cc-link.txt b/postman/links/cc-link.txt new file mode 100644 index 0000000..5127f55 --- /dev/null +++ b/postman/links/cc-link.txt @@ -0,0 +1 @@ +https://god.gw.postman.com/run-collection/23226990-4ec40b38-cdac-44bf-a07c-8606895d2233?action=collection%2Ffork&collection-url=entityId%3D23226990-4ec40b38-cdac-44bf-a07c-8606895d2233%26entityType%3Dcollection%26workspaceId%3D80af54be-a333-4712-af5e-41aa9eccbdd0 \ No newline at end of file diff --git a/postman/links/v2link.txt b/postman/links/v2link.txt new file mode 100644 index 0000000..22b4989 --- /dev/null +++ b/postman/links/v2link.txt @@ -0,0 +1 @@ +https://god.gw.postman.com/run-collection/23226990-624bf09b-7d1b-4ee6-9833-4b581b41db40?action=collection%2Ffork&collection-url=entityId%3D23226990-624bf09b-7d1b-4ee6-9833-4b581b41db40%26entityType%3Dcollection%26workspaceId%3D80af54be-a333-4712-af5e-41aa9eccbdd0 \ No newline at end of file diff --git a/postman/links/v3-link.txt b/postman/links/v3-link.txt new file mode 100644 index 0000000..4cf685e --- /dev/null +++ b/postman/links/v3-link.txt @@ -0,0 +1 @@ +https://app.getpostman.com/run-collection/23226990-5f6a4855-8012-406f-9456-c8fa6311b080?action=collection%2Ffork&collection-url=entityId%3D23226990-5f6a4855-8012-406f-9456-c8fa6311b080%26entityType%3Dcollection%26workspaceId%3D80af54be-a333-4712-af5e-41aa9eccbdd0 \ No newline at end of file