This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Axios = require("axios"); | |
const readline = require("readline"); | |
const rl = readline.createInterface({ | |
input: process.stdin, | |
output: process.stdout | |
}); | |
const axiosInstance = Axios.create({ | |
baseURL: "https://api.cloudways.com/api/v1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Axios = require("axios"); | |
const { createObjectCsvWriter } = require("csv-writer"); | |
const GITHUB_ACCESS_TOKEN = "<<GITHUB_ACCESS_TOKEN>>"; | |
const ORG_NAME = "<<ORG_NAME>>"; | |
const asyncForEach = async (array, callback) => { | |
for (let index = 0; index < array.length; index++) { | |
await callback(array[index], index, array); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Axios = require("axios"); | |
const { createObjectCsvWriter } = require("csv-writer"); | |
const HELPSCOUT_API_KEY = "<<YOUR_HELPSCOUT_API_KEY>>"; | |
const helpscoutInstance = Axios.create({ | |
baseURL: "https://docsapi.helpscout.net/v1", | |
auth: { | |
username: HELPSCOUT_API_KEY, | |
password: "X" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Axios = require("axios"); | |
const ACCESS_TOKEN = "YOUR_ACCESS_TOKEN"; | |
const GROUP_ID = "GITLAB_GROUP_ID"; | |
const WEBHOOK_URL = "YOUR_WEBHOOK_URL"; | |
const gitlabInstance = Axios.create({ | |
baseURL: "https://gitlab.com/api/v4", | |
headers: { | |
Authorization: `Bearer ${ACCESS_TOKEN}` |