Lista de secretos

Esto devolverá todos los secretos, junto con sus id y created_at tiempo. El valor valor del secreto nunca se mostrará

ClaveDescripción
VONAGE_API_KEY

Your Vonage API key (see it on your dashboard).

VONAGE_API_SECRET

Your Vonage API secret (also available on your dashboard).

ACCOUNT_ID

The account ID to target

Escriba el código

Añada lo siguiente a list-secrets.sh:

curl "https://api.nexmo.com/accounts/$ACCOUNT_ID/secrets" -H 'Content-Type: application/json' \
    -u "$VONAGE_API_KEY:$VONAGE_API_SECRET"

Ver fuente completa

Ejecute su código

Guarde este archivo en su máquina y ejecútelo:

bash list-secrets.sh