netcup-node
Version:
A node wrapper for the Netcup CCP API (https://www.netcup-wiki.de/wiki/CCP_API)
16 lines (15 loc) • 533 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.missingAuth = exports.getFormattedUrl = void 0;
const constants_1 = require("./constants");
function getFormattedUrl(format) {
return `${constants_1.BASE_URL}?${format}`;
}
exports.getFormattedUrl = getFormattedUrl;
function missingAuth(authData) {
return (authData.apiKey === '' ||
authData.apiPassword === '' ||
authData.customerNumber === '' ||
authData.apiSessionId === '');
}
exports.missingAuth = missingAuth;