getconfig.js 276 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 async function getconfig(session) { return new Promise(function(resolve, reject) { session.post('/client.do?method=getconfig', (err,res,body) => { if (err) { reject(err) return } resolve(body) }) }) } module.exports = getconfig