acme-dns-01-namedotcom.js/token-test.sh

10 lines
258 B
Bash

#!/bin/bash
set -e
# Before assuming there's something wrong with this plugin,
# you should test that you can use your token with curl first.
echo "USERNAME: '$USERNAME'"
echo "TOKEN: '$TOKEN'"
curl -f -u "$USERNAME:$TOKEN" https://api.name.com/v4/domains