Skip to content
Snippets Groups Projects
Commit 55e55f40 authored by Mark Tearle's avatar Mark Tearle
Browse files

Expand getters/setters for desec

parent 4b2e7f5a
No related merge requests found
......@@ -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;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment