若 License 相关信息有更新,你可以查询更新后的信息。你可以使用 GetLicense 这个 OpenAPI 实现这一功能。

接口行为

你可以使用 GetLicense 接口,查询 License 相关的最新信息。

调用接口

关于调用接口的服务地址、通信协议、字符编码和签名机制,参看调用OpenAPI。

请求方式

使用 POST 方式发起请求。

请求参数

以下是接口特有的请求参数。关于其他公共请求参数,参看请求参数。

Query
参数名类型必填示例值描述
Actionstring是GetLicense接口名称,本接口取值:GetLicense
Versionstring是2020-12-01接口版本,本接口取值:2020-12-01
Body
参数名类型必填示例值描述
AppIdstring是Your_AppId应用的唯一标志
DeviceIdstring是Your_DeviceId设备的唯一标识
返回参数
参数名类型示例值描述
LicenseUrlstringhttp://xxxx.xxx.licenseLicense 文件下载地址
LicensestringYour_License将License 原始信息进行 base64 编码后的结果。关于 License 原始信息,参看备注2
参数名类型示例值描述
AppIdstringYour_AppId应用的唯一标志
CredentialstringYour_Credential证书权限加密串
SignaturestringYour_Signature加密签名
请求示例代码
Query
https://rtc.volcengineapi.com?Action=GetLicense&Version=2020-12-01
postscript
Body
{
    "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