netcup-node
Version:
A node wrapper for the Netcup CCP API (https://www.netcup-wiki.de/wiki/CCP_API)
11 lines (10 loc) • 323 B
JavaScript
import { BASE_URL } from './constants.js';
export function getFormattedUrl(format) {
return `${BASE_URL}?${format}`;
}
export function missingAuth(authData) {
return (authData.apiKey === '' ||
authData.apiPassword === '' ||
authData.customerNumber === '' ||
authData.apiSessionId === '');
}