Obtain the digital rights management (DRM) license of a video.
Debugging
Authorization information
Request syntax
POST /v2/file/video_drm_license HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example |
---|
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
body | object | No | The request body. | |
drmType | string | Yes | The type of DRM encryption. Valid values:
| widevine |
licenseRequest | string | No | The request that is initiated to obtain the license. | CAES6B8SQgpACioSENGxDhqCLIVwwCBOyPayyWoSENGxDhqCLIVwwCBOyPayyWpI88aJmwYQARoQdRV32 |
Response parameters
Examples
Sample success responses
JSON
format
{
"data": "cb9swCy8P50H9KePsxET3jZ1tm41bDs9HTsxbWnsjf3bsf6QGdiS4kZPhDaskimbNyAfNjmhQRmWFt3AhwNF3",
"states": "0",
"device_info": "\"\""
}
Error codes
For a list of error codes, visit the Service error codes.