Eliminar una plantilla

Una plantilla sólo puede borrarse cuando se han borrado también todos sus fragmentos.

ClaveDescripción
VONAGE_APPLICATION_ID

The Vonage Application ID.

VONAGE_APPLICATION_PRIVATE_KEY_PATH

Private key path.

JWT

Used to authenticate your request. See Authentication for more information, including how to generate a JWT.

TEMPLATE_ID

The custom template ID

Escriba el código

Añada lo siguiente a delete-template.sh:

curl -X DELETE "https://api.nexmo.com/v2/verify/$VERIFY_TEMPLATE_ID" \
  -H "Authorization: Bearer $JWT"\
  -H 'Content-Type: application/json'

Ver fuente completa

Ejecute su código

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

sh delete-template.sh