#!/usr/bin/env sh
-#Arvan_Token="Apikey xxxx"
+# Arvan_Token="Apikey xxxx"
ARVAN_API_URL="https://napi.arvancloud.ir/cdn/4.0/domains"
-#Author: Vahid Fardi
-#Report Bugs here: https://github.com/Neilpang/acme.sh
+# Author: Vahid Fardi
+# Report Bugs here: https://github.com/Neilpang/acme.sh
#
######## Public functions #####################
_info "response id is $response"
_info "Added, OK"
return 0
- elif _contains "$response" "Record Data is Duplicated"; then
+ elif _contains "$response" "Record Data is duplicate"; then
_info "Already exists, OK"
return 0
else
response="$(_post "$data" "$ARVAN_API_URL/$ep" "" "$mtd")"
elif [ "$mtd" = "POST" ]; then
export _H2="Content-Type: application/json"
+ export _H3="Accept: application/json"
_debug data "$data"
response="$(_post "$data" "$ARVAN_API_URL/$ep" "" "$mtd")"
else