文档

支持

Vivox Unity SDK

Vivox Unity SDK

撤销应用程序 API 密钥

How to revoke an applicationAPI key.
阅读时间1 分钟最后更新于 13 天前

在开发者门户中的 Organization Settings 页面上启用了 Enable Remote API 复选框时,可以通过使用 cURL、高级 REST 客户端 (ARC) 或 Postman 等工具调用位于
developer-api.vivox.com/api/v1/applications/remote-api/key/revoke
的 REST 终端,来自动执行撤销应用程序 API 密钥的过程。
以下代码演示有关如何使用 cURL 撤销“key-to-revoke”应用程序 API 密钥的示例:
curl "https://developer-api.vivox.com/api/v1/applications/remote-api/key/revoke" -X POST -d"{\"remoteApiUsername\":\"remote-api-username-from-org-settings-page\",\"remoteApiPassword\":\"remote-api-password-from-org-settings-page\",\"issuer\":\"issuer-from-app-details-page\"}"
以下格式的响应指示已成功撤销了密钥:
{"statusCode":200,"data":"some-new-key"}

撤销应用程序 API 密钥 • Vivox Unity SDK • Unity Docs