diff --git a/scripts/ChangeCatchAllRoute.sh b/scripts/ChangeCatchAllRoute.sh new file mode 100755 index 0000000..7e3adca --- /dev/null +++ b/scripts/ChangeCatchAllRoute.sh @@ -0,0 +1,29 @@ +#!/bin/bash +# https://documentation.mailgun.com/en/latest/api-routes.html +MG_USER= +MG_URL="https://api.mailgun.net/v3/routes" +MG_APIKEY="api:key-6e4b01ba0681141a509c1c462fca40f4" +MG_ORDER="GET /routes" + +curl -s --user $MG_APIKEY -G \ + $MG_URL + +exit 0 +curl -s --user $MG_APIKEY -G \ + $MG_URL \ + -d skip=1 \ + -d limit=1 + +# curl -s --user 'api:YOUR_API_KEY' -G \ +# https://api.mailgun.net/v3/routes \ +# -d skip=1 \ +# -d limit=1 + + +# curl -s --user $MG_APIKEY \ +# $MG_URL \ +# -F priority=0 \ +# -F description='Recuperation des routes' \ +# -F expression='match_recipient(".*@YOUR_DOMAIN_NAME")' \ +# -F action='forward("http://myhost.com/messages/")' \ +# -F action='stop()' diff --git a/scripts/envoi_message.sh b/scripts/envoi_message.sh index 8f03990..b7f1855 100755 --- a/scripts/envoi_message.sh +++ b/scripts/envoi_message.sh @@ -1,4 +1,7 @@ #!/bin/bash + +# https://documentation.mailgun.com/en/latest/api-routes.html + MG_URL_ROOT="https://api.mailgun.net/v3" MG_URL_EU_ROOT="https://api.eu.mailgun.net/v3" MG_APIKEY="api:key-6e4b01ba0681141a509c1c462fca40f4" diff --git a/scripts/get_route.sh b/scripts/get_route.sh index 5b762bf..22209e1 100755 --- a/scripts/get_route.sh +++ b/scripts/get_route.sh @@ -1,4 +1,7 @@ #!/bin/bash + +# https://documentation.mailgun.com/en/latest/api-routes.html + MG_USER= MG_URL="https://api.mailgun.net/v3/routes" MG_APIKEY="api:key-6e4b01ba0681141a509c1c462fca40f4"