Unverified Commit f7e12b62 authored by Jan-Philipp Benecke's avatar Jan-Philipp Benecke
Browse files

Update CleverReach REST Endpoint

parent 2a9c56d9
...@@ -54,7 +54,7 @@ cleverreach_deploy() { ...@@ -54,7 +54,7 @@ cleverreach_deploy() {
_certData="{\"cert\":\"$(_json_encode <"$_cfullchain")\", \"key\":\"$(_json_encode <"$_ckey")\"}" _certData="{\"cert\":\"$(_json_encode <"$_cfullchain")\", \"key\":\"$(_json_encode <"$_ckey")\"}"
export _H1="Authorization: Bearer ${_access_token}" export _H1="Authorization: Bearer ${_access_token}"
_add_cert_result="$(_post "$_certData" "https://rest.cleverreach.com/v3/ssl/${_cdomain}" "" "POST" "application/json")" _add_cert_result="$(_post "$_certData" "https://rest.cleverreach.com/v3/ssl" "" "POST" "application/json")"
_debug "Destroying token at CleverReach" _debug "Destroying token at CleverReach"
_post "" "https://rest.cleverreach.com/v3/oauth/token.json" "" "DELETE" "application/json" _post "" "https://rest.cleverreach.com/v3/oauth/token.json" "" "DELETE" "application/json"
......
Markdown is supported
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