]> git.proxmox.com Git - mirror_acme.sh.git/blob - dnsapi/dns_myapi.sh
Merge pull request #4531 from NCDGHA/bugfix/issue_4530_fix_http_status_503
[mirror_acme.sh.git] / dnsapi / dns_myapi.sh
1 #!/usr/bin/env sh
2
3 #Here is a sample custom api script.
4 #This file name is "dns_myapi.sh"
5 #So, here must be a method dns_myapi_add()
6 #Which will be called by acme.sh to add the txt record to your api system.
7 #returns 0 means success, otherwise error.
8 #
9 #Author: Neilpang
10 #Report Bugs here: https://github.com/acmesh-official/acme.sh
11 #
12 ######## Public functions #####################
13
14 # Please Read this guide first: https://github.com/acmesh-official/acme.sh/wiki/DNS-API-Dev-Guide
15
16 #Usage: dns_myapi_add _acme-challenge.www.domain.com "XKrxpRBosdIKFzxW_CT3KLZNf6q0HG9i01zxXp5CPBs"
17 dns_myapi_add() {
18 fulldomain=$1
19 txtvalue=$2
20 _info "Using myapi"
21 _debug fulldomain "$fulldomain"
22 _debug txtvalue "$txtvalue"
23 _err "Not implemented!"
24 return 1
25 }
26
27 #Usage: fulldomain txtvalue
28 #Remove the txt record after validation.
29 dns_myapi_rm() {
30 fulldomain=$1
31 txtvalue=$2
32 _info "Using myapi"
33 _debug fulldomain "$fulldomain"
34 _debug txtvalue "$txtvalue"
35 }
36
37 #################### Private functions below ##################################