Crear una plantilla

Las plantillas sólo tienen un nombre único y serán la plantilla por defecto cuando se creen.

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.

Escriba el código

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

curl -X POST "https://api.nexmo.com/v2/verify/templates" \
  -H "Authorization: Bearer $JWT" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "my-template"
  }'

Ver fuente completa

Ejecute su código

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

sh create-template.sh