Retirar el dispositivo de prueba del Agente
Utilice este endpoint para eliminar el dispositivo de prueba del Agente utilizando la API de Channel Manager. Elimina un dispositivo de prueba de un Agente RCS existente.
Ejemplo
A continuación encontrará la descripción de todas las variables utilizadas en cada fragmento de código:
| Clave | Descripción |
|---|---|
CHANNEL_MANAGER_RCS_AGENT_ID | The ID of the RCS agent. |
VONAGE_API_KEY | Your Vonage API key (see it on your dashboard). |
VONAGE_API_SECRET | Your Vonage API secret (also available on your dashboard). |
CHANNEL_MANAGER_RCS_AGENT_TEST_DEVICE_ID | The ID of the test device to remove. |
Requisitos previos
Si no tiene una solicitud, puede crear uno. Asegúrese también de configure sus webhooks.
Escriba el código
Añada lo siguiente a remove-test-device-from-agent.sh:
curl -X DELETE https://api.nexmo.com/v1/channel-manager/rcs/agents/${CHANNEL_MANAGER_RCS_AGENT_ID}/test-devices/${CHANNEL_MANAGER_RCS_AGENT_TEST_DEVICE_ID} \
-u "${VONAGE_API_KEY}:${VONAGE_API_SECRET}"Ejecute su código
Guarde este archivo en su máquina y ejecútelo:
bash remove-test-device-from-agent.sh