mirarus / teamspeak-dns
TeamSpeak Short DNS Service API
1.0.2
2024-12-16 19:19 UTC
Requires
- php: >=7.3.0
- ext-json: *
- guzzlehttp/guzzle: ^7.9
README
TeamSpeak Short DNS Service API
composer require mirarus/teamspeak-dns
-------------------------------------------------------
require "vendor/autoload.php";
use Mirarus\TeamSpeakDNS\Authorization;
use Mirarus\TeamSpeakDNS\Dns;
$authorization = new Authorization("--myteamspeak.com--email--", "--myteamspeak.com-password--");
$dns = new Dns($authorization);
print_r($dns->list());
stdClass Object
(
[items] => Array
(
[0] => stdClass Object
(
[id] => mirarus
[name] => mirarus
[host] => 127.0.0.1
[port] => 9987
)
)
[count] => 1
)
// [id] => mirarus >>> id >>> update|delete first element
print_r($dns->create("mirarus", '127.0.0.1', 9987)); // status => true | false
print_r($dns->update("mirarus", "mirarusx", '127.0.0.1', 9900)); // status => true | false
print_r($dns->delete("mirarus")); // status => true | false