response="$(_post "{\"domain\":\"$_domain\",\"update\": {\"type\":\"TXT\",\"name\":\"$fullchallengedomain\",\"content\":\"$txtvalue\",\"ttl\":0}}"$JAPIendpoint"" POST "application/json")"
response="$(_post "{\"domain\":\"${_domain}\",\"update\": {\"type\":\"TXT\",\"name\":\"$fullchallengedomain\",\"content\":\"$txtvalue\",\"ttl\":0}}"$JAPIendpoint"" POST "application/json")"
if ! printf"%s""$response"| grep \"code\":0>/dev/null;then
_err "There was an error updating the TXT record..."
_err "DNS Exit API response: $response"
@ -71,6 +74,7 @@ dns_japi_rm() {
_debug "Full Challenge Domain is: $fullchallengedomain"
response="$(_post "{\"domain\":\"$_domain\",\"delete\": {\"type\":\"TXT\",\"name\":\"$fullchallengedomain\",\"content\":\"$txtvalue\",\"ttl\":0}}"$JAPIendpoint"" POST "application/json")"
response="$(_post "{\"domain\":\"${_domain}\",\"delete\": {\"type\":\"TXT\",\"name\":\"$fullchallengedomain\",\"content\":\"$txtvalue\",\"ttl\":0}}"$JAPIendpoint"" POST "application/json")"
if ! printf"%s""$response"| grep \"code\":0>/dev/null;then
_err "There was an error deleting the TXT record..."