Skip to content

Instantly share code, notes, and snippets.

Avatar

Kai Schwarz papakai

View GitHub Profile
@papakai
papakai / hooks.php
Last active Sep 22, 2020
HEXONET / ISPAPI DNS Templates after Registration or Transfer for WHMCS Registrar Module
View hooks.php
<?php
function ispapi_autoUpdateDNS($vars){
$params = $vars["params"];
if (!$params["dnsmanagement"]){
return;
}
$rrs = ispapi_GetDNS($params);
foreach(["@", "mail", "webmail", "www"] as $h){
$rrs[] = [
@papakai
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.useOTESystem();
cl.setCredentials('test.user', 'test.passw0rd');
const r = await apiclient.request({
COMMAND: "QueryDomainList",