添加应用程序 API 密钥

启用启用远程 API复选框后,您可以通过调用位于 developer-api.vivox.com/api/v1/applications/remote-api/key/add 的 REST 端点来使用 cURL、高级 REST 客户端 (ARC) 或 Postman 等工具来自动添加应用程序 API 密钥的流程。

Note: You can have a maximum of two API keys at a time.

以下代码显示了使用 cURL 添加“somenewkey”应用程序 API 密钥的示例

curl "https://developer-api.vivox.com/api/v1/applications/remote-api/key/add" -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\",\"key\":\"somenewkey\"}"

以下格式的响应表示您已成功添加密钥

{"statusCode":200,"data":"some-new-key"}