From 55e55f401a694dc8416f3f6c9dc213b41c91108b Mon Sep 17 00:00:00 2001 From: Mark Tearle <mtearle@ucc.asn.au> Date: Mon, 18 Jan 2021 21:53:29 +0800 Subject: [PATCH] Expand getters/setters for desec --- quovadis/quovadis.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/quovadis/quovadis.php b/quovadis/quovadis.php index a26fc44..96c824b 100644 --- a/quovadis/quovadis.php +++ b/quovadis/quovadis.php @@ -13,6 +13,16 @@ function check_username($username) { return is_array(posix_getpwnam($username)); } +function get_desec_txt($name) { + $restService = new RestService(); +// $response = $restService +// ->setEndpoint('https://jsonplaceholder.typicode.com') +// ->get('/posts/1'); + +// curl https://desec.io/api/v1/domains/{name}/rrsets/{subname}/{type}/ \ +// --header "Authorization: Token {token}" +} + function check_api_key($api_key) { // API keys need to be alpha numeric return 1; -- GitLab