Bu Script TeamSpeak sunucularına kısa isimle girebilmenizi sağlayan sistemin api kütüphanesidir.
Minimum PHP Version: 7.3.0
Kod:
Bu Composer paketi ile sisteminize entegre edebilirsiniz.
composer require mirarus/teamspeak-dns
Kod:
require "vendor/autoload.php";
use MirarusTeamSpeakDNSAuthorization;
use MirarusTeamSpeakDNSDns;
$authorization = new Authorization("--myteamspeak.com-email--", "--myteamspeak.com-password--");
$dns = new Dns($authorization);
print_r("list: ");
print_r($dns->list());
print_r("create: ");
print_r($dns->create("mirarus", '127.0.0.1', 9987));
print_r("update: ");
print_r($dns->update("c2V2a3Q=", "mirarus", '127.0.0.1', 9987));
print_r("delete: ");
print_r($dns->delete("c2V2a3Q="));
// c2V2a3Q= -> dns list sonucu elde edilen DNSID 'yi ifade eder.