Remover o dispositivo de teste do Agente
Use este endpoint para remover o dispositivo de teste do Agente por meio da API do Channel Manager. Ele remove um dispositivo de teste de um Agente RCS existente.
Exemplo
Veja a seguir a descrição de todas as variáveis utilizadas em cada trecho de código:
| Chave | Descrição |
|---|---|
CHANNEL_MANAGER_RCS_AGENT_ID | The ID of the RCS agent. |
VONAGE_API_KEY | Your Vonage API key (see it on |
VONAGE_API_SECRET | Your Vonage API secret (also available on |
CHANNEL_MANAGER_RCS_AGENT_TEST_DEVICE_ID | The ID of the test device to remove. |
Pré-requisitos
Se você não tiver um aplicativo, acesse criar um. Certifique-se também de acessar configure seus webhooks.
Escreva o código
Adicione o seguinte ao arquivo ` remove-test-device-from-agent.sh`:
Copiar
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}"Execute seu código
Salve este arquivo no seu computador e execute-o:
bash remove-test-device-from-agent.sh