]> git.proxmox.com Git - mirror_acme.sh.git/blob - dnsapi/dns_myapi.sh
Merge pull request #447 from Neilpang/dev
[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/Neilpang/acme.sh
11 #
12 ######## Public functions #####################
13
14 #Usage: dns_myapi_add _acme-challenge.www.domain.com "XKrxpRBosdIKFzxW_CT3KLZNf6q0HG9i01zxXp5CPBs"
15 dns_myapi_add() {
16 fulldomain=$1
17 txtvalue=$2
18 _info "Using myapi"
19 _debug fulldomain "$fulldomain"
20 _debug txtvalue "$txtvalue"
21 _err "Not implemented!"
22 return 1
23 }
24
25 #Usage: fulldomain txtvalue
26 #Remove the txt record afer validation.
27 dns_myapi_rm() {
28 fulldomain=$1
29 txtvalue=$2
30 _info "Using myapi"
31 _debug fulldomain "$fulldomain"
32 _debug txtvalue "$txtvalue"
33 }
34
35 #################### Private functions bellow ##################################