Revocar un secreto

Para revocar un secreto de API, debe enviar un mensaje DELETE a la API de gestión de secretos.

Debe tener al menos un secreto de API en todo momento.

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

VONAGE_SECRET_ID

The ID of the secret to delete.

Escriba el código

Añada lo siguiente a revoke-secret.sh:

curl -X DELETE "https://api.nexmo.com/accounts/$ACCOUNT_ID/secrets/$ACCOUNT_SECRET_ID" \
     -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 revoke-secret.sh