Skip to content

Instantly share code, notes, and snippets.


Kai Schwarz papakai

View GitHub Profile
papakai / hooks.php
Last active Sep 22, 2020
HEXONET / ISPAPI DNS Templates after Registration or Transfer for WHMCS Registrar Module
View hooks.php
function ispapi_autoUpdateDNS($vars){
$params = $vars["params"];
if (!$params["dnsmanagement"]){
$rrs = ispapi_GetDNS($params);
foreach(["@", "mail", "webmail", "www"] as $h){
$rrs[] = [
papakai / index.js
Last active Sep 24, 2018
@hexonet/ispapi-apiconnector using column and record methods
View index.js
//NOTE: The below source code is not tested. Just a quick reference.
const apiconnector = require('@hexonet/ispapi-apiconnector');
const cl = new apiconnector.APIClient();
cl.setCredentials('test.user', 'test.passw0rd');
const r = await apiclient.request({
COMMAND: "QueryDomainList",