若 License 相关信息有更新,你可以查询更新后的信息。你可以使用 GetLicense 这个 OpenAPI 实现这一功能。
你可以使用 GetLicense 接口,查询 License 相关的最新信息。
关于调用接口的服务地址、通信协议、字符编码和签名机制,参看调用OpenAPI。
使用 POST 方式发起请求。
以下是接口特有的请求参数。关于其他公共请求参数,参看请求参数。
| 参数名 | 类型 | 必填 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | string | 是 | GetLicense | 接口名称,本接口取值:GetLicense |
| Version | string | 是 | 2020-12-01 | 接口版本,本接口取值:2020-12-01 |
| 参数名 | 类型 | 必填 | 示例值 | 描述 |
|---|---|---|---|---|
| AppId | string | 是 | Your_AppId | 应用的唯一标志 |
| DeviceId | string | 是 | Your_DeviceId | 设备的唯一标识 |
| 参数名 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| LicenseUrl | string | http://xxxx.xxx.license | License 文件下载地址 |
| License | string | Your_License | 将License 原始信息进行 base64 编码后的结果。关于 License 原始信息,参看备注2 |
| 参数名 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| AppId | string | Your_AppId | 应用的唯一标志 |
| Credential | string | Your_Credential | 证书权限加密串 |
| Signature | string | Your_Signature | 加密签名 |
https://rtc.volcengineapi.com?Action=GetLicense&Version=2020-12-01
postscript{
"AppId" : "Your_AppId",
"DeviceId":"Your_DeviceId"
}
json{
"ResponseMetadata": {
"RequestId": "Your_RequestId",
"Action": "GetLicense",
"Version": "2020-12-01",
"Service": "rtc",
"Region": "cn-north-1"
},
"Result": {
"LicenseUrl": "http://xxxx.xxx.license",
"License": "Your_License"
}
}
json