From 43814562f51c74d04f84591a740c8a7101c74415 Mon Sep 17 00:00:00 2001 From: "antoine.leveugle" Date: Wed, 1 Aug 2018 16:23:21 +0200 Subject: [PATCH] feat: add US target support closes #14 --- ovh-api-bash-client.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ovh-api-bash-client.sh b/ovh-api-bash-client.sh index c76e2e0..5d3b701 100755 --- a/ovh-api-bash-client.sh +++ b/ovh-api-bash-client.sh @@ -9,15 +9,17 @@ CONSUMER_KEY_FILE=".ovhConsumerKey" OVH_APPLICATION_FILE=".ovhApplication" LIBS="libs" -TARGETS=(CA EU) +TARGETS=(CA EU US) declare -A API_URLS API_URLS[CA]="https://ca.api.ovh.com/1.0" API_URLS[EU]="https://api.ovh.com/1.0" +API_URLS[US]="https://api.ovhcloud.com/1.0" declare -A API_CREATE_APP_URLS API_CREATE_APP_URLS[CA]="https://ca.api.ovh.com/createApp/" API_CREATE_APP_URLS[EU]="https://api.ovh.com/createApp/" +API_CREATE_APP_URLS[US]="https://api.ovhcloud.com/createApp/" ## https://gist.github.com/TheMengzor/968e5ea87e99d9c41782 # resolve $SOURCE until the file is no longer a symlink